source: ThirdParty/Glpk/trunk/configure @ 2059

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

add URL into .pc field; rerun autotools; remove old file

File size: 773.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyGlpk trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyGlpk trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/include/glpk.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP 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 glpkmajorver glpkminorver COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE GLPKDIR GLPK_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk trunk to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyGlpk trunk:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062  --enable-debug-glpk compile this project (Glpk) with debug options
1063  --enable-doscompile     Under Cygwin, compile so that executables run under
1064                          DOS. Set to mingw to use gcc/g++/ld with
1065                          -mno-cygwin. Set to msvc to use cl/link (or
1066                          icl/link). Default when mentioned: mingw. Default
1067                          when not mentioned: disabled.
1068  --enable-pkg-config     use pkg-config if available (default is yes)
1069  --enable-static[=PKGS]
1070                          build static libraries [default=no]
1071  --disable-dependency-tracking  speeds up one-time build
1072  --enable-dependency-tracking   do not reject slow dependency extractors
1073  --enable-maintainer-mode  enable make rules and dependencies not useful
1074                          (and sometimes confusing) to the casual installer
1075  --enable-shared[=PKGS]
1076                          build shared libraries [default=yes]
1077  --enable-fast-install[=PKGS]
1078                          optimize for fast installation [default=yes]
1079  --disable-libtool-lock  avoid locking (might break parallel builds)
1080  --enable-gnu-packages   compile with GNU packages (disabled by default)
1081  --enable-odbc           enable MathProg ODBC support [default=auto]
1082  --enable-mysql          enable MathProg MySQL support [default=auto]
1083
1084Optional Packages:
1085  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1086  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1087  --with-glpk-verbosity specify the debug verbosity level for project Glpk
1088  --with-glpk-checklevel specify the sanity check level for project Glpk
1089  --with-coin-instdir     prefix of installation directory for precompiled
1090                          COIN packages
1091  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1092  --with-pic              try to use only PIC/non-PIC objects [default=use
1093                          both]
1094  --with-tags[=TAGS]
1095                          include additional configurations [automatic]
1096
1097Some influential environment variables:
1098  CDEFS       Additional -D flags to be used when compiling C code.
1099  ADD_CFLAGS  Additional C compiler options
1100  DBG_CFLAGS  Debug C compiler options
1101  OPT_CFLAGS  Optimize C compiler options
1102  CC          C compiler command
1103  CFLAGS      C compiler flags
1104  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1105              nonstandard directory <lib dir>
1106  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107              headers in a nonstandard directory <include dir>
1108  MPICC       C MPI Compiler
1109  PKG_CONFIG  path to pkg-config utility
1110  CPP         C preprocessor
1111  CXX         C++ compiler command
1112  CXXFLAGS    C++ compiler flags
1113  CXXCPP      C++ preprocessor
1114  F77         Fortran 77 compiler command
1115  FFLAGS      Fortran 77 compiler flags
1116
1117Use these variables to override the choices made by `configure' or to help
1118it to find libraries and programs with nonstandard names/locations.
1119
1120Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1121_ACEOF
1122fi
1123
1124if test "$ac_init_help" = "recursive"; then
1125  # If there are subdirs, report their specific --help.
1126  ac_popdir=`pwd`
1127  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1128    test -d $ac_dir || continue
1129    ac_builddir=.
1130
1131if test "$ac_dir" != .; then
1132  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1133  # A "../" for each directory in $ac_dir_suffix.
1134  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1135else
1136  ac_dir_suffix= ac_top_builddir=
1137fi
1138
1139case $srcdir in
1140  .)  # No --srcdir option.  We are building in place.
1141    ac_srcdir=.
1142    if test -z "$ac_top_builddir"; then
1143       ac_top_srcdir=.
1144    else
1145       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1146    fi ;;
1147  [\\/]* | ?:[\\/]* )  # Absolute path.
1148    ac_srcdir=$srcdir$ac_dir_suffix;
1149    ac_top_srcdir=$srcdir ;;
1150  *) # Relative path.
1151    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1152    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1153esac
1154
1155# Do not use `cd foo && pwd` to compute absolute paths, because
1156# the directories may not exist.
1157case `pwd` in
1158.) ac_abs_builddir="$ac_dir";;
1159*)
1160  case "$ac_dir" in
1161  .) ac_abs_builddir=`pwd`;;
1162  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1163  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1164  esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_builddir=${ac_top_builddir}.;;
1168*)
1169  case ${ac_top_builddir}. in
1170  .) ac_abs_top_builddir=$ac_abs_builddir;;
1171  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1172  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1173  esac;;
1174esac
1175case $ac_abs_builddir in
1176.) ac_abs_srcdir=$ac_srcdir;;
1177*)
1178  case $ac_srcdir in
1179  .) ac_abs_srcdir=$ac_abs_builddir;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1181  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1182  esac;;
1183esac
1184case $ac_abs_builddir in
1185.) ac_abs_top_srcdir=$ac_top_srcdir;;
1186*)
1187  case $ac_top_srcdir in
1188  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1189  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1190  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1191  esac;;
1192esac
1193
1194    cd $ac_dir
1195    # Check for guested configure; otherwise get Cygnus style configure.
1196    if test -f $ac_srcdir/configure.gnu; then
1197      echo
1198      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1199    elif test -f $ac_srcdir/configure; then
1200      echo
1201      $SHELL $ac_srcdir/configure  --help=recursive
1202    elif test -f $ac_srcdir/configure.ac ||
1203           test -f $ac_srcdir/configure.in; then
1204      echo
1205      $ac_configure --help
1206    else
1207      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1208    fi
1209    cd $ac_popdir
1210  done
1211fi
1212
1213test -n "$ac_init_help" && exit 0
1214if $ac_init_version; then
1215  cat <<\_ACEOF
1216ThirdPartyGlpk configure trunk
1217generated by GNU Autoconf 2.59
1218
1219Copyright (C) 2003 Free Software Foundation, Inc.
1220This configure script is free software; the Free Software Foundation
1221gives unlimited permission to copy, distribute and modify it.
1222
1223
1224Copyright 2007-2010 Stefan Vigerske and others.
1225All Rights Reserved.
1226This file is part of the open source package Coin which is distributed
1227under the Eclipse Public License.
1228_ACEOF
1229  exit 0
1230fi
1231exec 5>config.log
1232cat >&5 <<_ACEOF
1233This file contains any messages produced by compilers while
1234running configure, to aid debugging if configure makes a mistake.
1235
1236It was created by ThirdPartyGlpk $as_me trunk, which was
1237generated by GNU Autoconf 2.59.  Invocation command line was
1238
1239  $ $0 $@
1240
1241_ACEOF
1242{
1243cat <<_ASUNAME
1244## --------- ##
1245## Platform. ##
1246## --------- ##
1247
1248hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1249uname -m = `(uname -m) 2>/dev/null || echo unknown`
1250uname -r = `(uname -r) 2>/dev/null || echo unknown`
1251uname -s = `(uname -s) 2>/dev/null || echo unknown`
1252uname -v = `(uname -v) 2>/dev/null || echo unknown`
1253
1254/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1255/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1256
1257/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1258/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1259/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1260hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1261/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1262/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1263/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1264
1265_ASUNAME
1266
1267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1268for as_dir in $PATH
1269do
1270  IFS=$as_save_IFS
1271  test -z "$as_dir" && as_dir=.
1272  echo "PATH: $as_dir"
1273done
1274
1275} >&5
1276
1277cat >&5 <<_ACEOF
1278
1279
1280## ----------- ##
1281## Core tests. ##
1282## ----------- ##
1283
1284_ACEOF
1285
1286
1287# Keep a trace of the command line.
1288# Strip out --no-create and --no-recursion so they do not pile up.
1289# Strip out --silent because we don't want to record it for future runs.
1290# Also quote any args containing shell meta-characters.
1291# Make two passes to allow for proper duplicate-argument suppression.
1292ac_configure_args=
1293ac_configure_args0=
1294ac_configure_args1=
1295ac_sep=
1296ac_must_keep_next=false
1297for ac_pass in 1 2
1298do
1299  for ac_arg
1300  do
1301    case $ac_arg in
1302    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1303    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1304    | -silent | --silent | --silen | --sile | --sil)
1305      continue ;;
1306    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1307      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1308    esac
1309    case $ac_pass in
1310    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1311    2)
1312      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1313      if test $ac_must_keep_next = true; then
1314        ac_must_keep_next=false # Got value, back to normal.
1315      else
1316        case $ac_arg in
1317          *=* | --config-cache | -C | -disable-* | --disable-* \
1318          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1319          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1320          | -with-* | --with-* | -without-* | --without-* | --x)
1321            case "$ac_configure_args0 " in
1322              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1323            esac
1324            ;;
1325          -* ) ac_must_keep_next=true ;;
1326        esac
1327      fi
1328      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1329      # Get rid of the leading space.
1330      ac_sep=" "
1331      ;;
1332    esac
1333  done
1334done
1335$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1336$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1337
1338# When interrupted or exit'd, cleanup temporary files, and complete
1339# config.log.  We remove comments because anyway the quotes in there
1340# would cause problems or look ugly.
1341# WARNING: Be sure not to use single quotes in there, as some shells,
1342# such as our DU 5.0 friend, will then `close' the trap.
1343trap 'exit_status=$?
1344  # Save into config.log some information that might help in debugging.
1345  {
1346    echo
1347
1348    cat <<\_ASBOX
1349## ---------------- ##
1350## Cache variables. ##
1351## ---------------- ##
1352_ASBOX
1353    echo
1354    # The following way of writing the cache mishandles newlines in values,
1355{
1356  (set) 2>&1 |
1357    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1358    *ac_space=\ *)
1359      sed -n \
1360        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1361          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1362      ;;
1363    *)
1364      sed -n \
1365        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1366      ;;
1367    esac;
1368}
1369    echo
1370
1371    cat <<\_ASBOX
1372## ----------------- ##
1373## Output variables. ##
1374## ----------------- ##
1375_ASBOX
1376    echo
1377    for ac_var in $ac_subst_vars
1378    do
1379      eval ac_val=$`echo $ac_var`
1380      echo "$ac_var='"'"'$ac_val'"'"'"
1381    done | sort
1382    echo
1383
1384    if test -n "$ac_subst_files"; then
1385      cat <<\_ASBOX
1386## ------------- ##
1387## Output files. ##
1388## ------------- ##
1389_ASBOX
1390      echo
1391      for ac_var in $ac_subst_files
1392      do
1393        eval ac_val=$`echo $ac_var`
1394        echo "$ac_var='"'"'$ac_val'"'"'"
1395      done | sort
1396      echo
1397    fi
1398
1399    if test -s confdefs.h; then
1400      cat <<\_ASBOX
1401## ----------- ##
1402## confdefs.h. ##
1403## ----------- ##
1404_ASBOX
1405      echo
1406      sed "/^$/d" confdefs.h | sort
1407      echo
1408    fi
1409    test "$ac_signal" != 0 &&
1410      echo "$as_me: caught signal $ac_signal"
1411    echo "$as_me: exit $exit_status"
1412  } >&5
1413  rm -f core *.core &&
1414  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1415    exit $exit_status
1416     ' 0
1417for ac_signal in 1 2 13 15; do
1418  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1419done
1420ac_signal=0
1421
1422# confdefs.h avoids OS command line length limits that DEFS can exceed.
1423rm -rf conftest* confdefs.h
1424# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1425echo >confdefs.h
1426
1427# Predefined preprocessor variables.
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_NAME "$PACKAGE_NAME"
1431_ACEOF
1432
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_VERSION "$PACKAGE_VERSION"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_STRING "$PACKAGE_STRING"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1451_ACEOF
1452
1453
1454# Let the site file select an alternate cache file if it wants to.
1455# Prefer explicitly selected file to automatically selected ones.
1456if test -z "$CONFIG_SITE"; then
1457  if test "x$prefix" != xNONE; then
1458    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1459  else
1460    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1461  fi
1462fi
1463for ac_site_file in $CONFIG_SITE; do
1464  if test -r "$ac_site_file"; then
1465    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1466echo "$as_me: loading site script $ac_site_file" >&6;}
1467    sed 's/^/| /' "$ac_site_file" >&5
1468    . "$ac_site_file"
1469  fi
1470done
1471
1472if test -r "$cache_file"; then
1473  # Some versions of bash will fail to source /dev/null (special
1474  # files actually), so we avoid doing that.
1475  if test -f "$cache_file"; then
1476    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1477echo "$as_me: loading cache $cache_file" >&6;}
1478    case $cache_file in
1479      [\\/]* | ?:[\\/]* ) . $cache_file;;
1480      *)                      . ./$cache_file;;
1481    esac
1482  fi
1483else
1484  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1485echo "$as_me: creating cache $cache_file" >&6;}
1486  >$cache_file
1487fi
1488
1489# Check that the precious variables saved in the cache have kept the same
1490# value.
1491ac_cache_corrupted=false
1492for ac_var in `(set) 2>&1 |
1493               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1494  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1495  eval ac_new_set=\$ac_env_${ac_var}_set
1496  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1497  eval ac_new_val="\$ac_env_${ac_var}_value"
1498  case $ac_old_set,$ac_new_set in
1499    set,)
1500      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1501echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1502      ac_cache_corrupted=: ;;
1503    ,set)
1504      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1505echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1506      ac_cache_corrupted=: ;;
1507    ,);;
1508    *)
1509      if test "x$ac_old_val" != "x$ac_new_val"; then
1510        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1511echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1512        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1513echo "$as_me:   former value:  $ac_old_val" >&2;}
1514        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1515echo "$as_me:   current value: $ac_new_val" >&2;}
1516        ac_cache_corrupted=:
1517      fi;;
1518  esac
1519  # Pass precious variables to config.status.
1520  if test "$ac_new_set" = set; then
1521    case $ac_new_val in
1522    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1523      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1524    *) ac_arg=$ac_var=$ac_new_val ;;
1525    esac
1526    case " $ac_configure_args " in
1527      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1528      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1529    esac
1530  fi
1531done
1532if $ac_cache_corrupted; then
1533  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1534echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1535  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1536echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1537   { (exit 1); exit 1; }; }
1538fi
1539
1540ac_ext=c
1541ac_cpp='$CPP $CPPFLAGS'
1542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1544ac_compiler_gnu=$ac_cv_c_compiler_gnu
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575# List one file in the package so that the configure script can test
1576# whether the package is actually there
1577
1578
1579# Where should everything be installed by default?  Here, we want it
1580# to be installed directly in 'bin', 'lib', 'include' subdirectories
1581# of the directory where configure is run.  The default would be
1582# /usr/local.
1583
1584
1585
1586# As backup, we make sure we don't loose an FLIBS if it has been set
1587# by the user
1588save_FLIBS="$FLIBS"
1589
1590# A useful makefile conditional that is always false
1591
1592
1593if false; then
1594  ALWAYS_FALSE_TRUE=
1595  ALWAYS_FALSE_FALSE='#'
1596else
1597  ALWAYS_FALSE_TRUE='#'
1598  ALWAYS_FALSE_FALSE=
1599fi
1600
1601
1602# We set the following variable so that we know later in AC_COIN_FINALIZE
1603# that we are in a project main directory
1604coin_projectdir=yes
1605
1606# Set the project's version number
1607if test "xGlpk" != x; then
1608
1609cat >>confdefs.h <<_ACEOF
1610#define GLPK_VERSION "$PACKAGE_VERSION"
1611_ACEOF
1612
1613fi
1614
1615# Set the project's SVN revision number. The complicated sed expression
1616# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1617# as a single number.
1618# Extract the first word of "svnversion", so it can be a program name with args.
1619set dummy svnversion; ac_word=$2
1620echo "$as_me:$LINENO: checking for $ac_word" >&5
1621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622if test "${ac_cv_prog_have_svnversion+set}" = set; then
1623  echo $ECHO_N "(cached) $ECHO_C" >&6
1624else
1625  if test -n "$have_svnversion"; then
1626  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1627else
1628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629for as_dir in $PATH
1630do
1631  IFS=$as_save_IFS
1632  test -z "$as_dir" && as_dir=.
1633  for ac_exec_ext in '' $ac_executable_extensions; do
1634  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635    ac_cv_prog_have_svnversion="yes"
1636    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637    break 2
1638  fi
1639done
1640done
1641
1642  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1643fi
1644fi
1645have_svnversion=$ac_cv_prog_have_svnversion
1646if test -n "$have_svnversion"; then
1647  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1648echo "${ECHO_T}$have_svnversion" >&6
1649else
1650  echo "$as_me:$LINENO: result: no" >&5
1651echo "${ECHO_T}no" >&6
1652fi
1653
1654if test "x$have_svnversion" = xyes && test "xGlpk" != x; then
1655
1656  svn_rev_tmp=`cd $srcdir/$coin_has_glpk ; svnversion`
1657  GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1658  if test $GLPK_SVN_REV != exported; then
1659
1660cat >>confdefs.h <<_ACEOF
1661#define GLPK_SVN_REV $GLPK_SVN_REV
1662_ACEOF
1663
1664  fi
1665fi
1666
1667# Capture libtool library version, if given.
1668
1669
1670
1671#############################################################################
1672#                         Standard build tool stuff                         #
1673#############################################################################
1674
1675# Get the system type
1676ac_aux_dir=
1677for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1678  if test -f $ac_dir/install-sh; then
1679    ac_aux_dir=$ac_dir
1680    ac_install_sh="$ac_aux_dir/install-sh -c"
1681    break
1682  elif test -f $ac_dir/install.sh; then
1683    ac_aux_dir=$ac_dir
1684    ac_install_sh="$ac_aux_dir/install.sh -c"
1685    break
1686  elif test -f $ac_dir/shtool; then
1687    ac_aux_dir=$ac_dir
1688    ac_install_sh="$ac_aux_dir/shtool install -c"
1689    break
1690  fi
1691done
1692if test -z "$ac_aux_dir"; then
1693  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1694echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1695   { (exit 1); exit 1; }; }
1696fi
1697ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1698ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1699ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1700
1701# Make sure we can run config.sub.
1702$ac_config_sub sun4 >/dev/null 2>&1 ||
1703  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1704echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1705   { (exit 1); exit 1; }; }
1706
1707echo "$as_me:$LINENO: checking build system type" >&5
1708echo $ECHO_N "checking build system type... $ECHO_C" >&6
1709if test "${ac_cv_build+set}" = set; then
1710  echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712  ac_cv_build_alias=$build_alias
1713test -z "$ac_cv_build_alias" &&
1714  ac_cv_build_alias=`$ac_config_guess`
1715test -z "$ac_cv_build_alias" &&
1716  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1717echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1718   { (exit 1); exit 1; }; }
1719ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1720  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1721echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1722   { (exit 1); exit 1; }; }
1723
1724fi
1725echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1726echo "${ECHO_T}$ac_cv_build" >&6
1727build=$ac_cv_build
1728build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1729build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1730build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1731
1732
1733
1734#turn off warnings and pedantic mode since it seem to make trouble on solaris platform
1735#and we couldn't fix it anyway
1736coin_skip_warn_cflags=yes
1737
1738# Check if user wants to produce debugging code
1739
1740echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1741echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1742
1743# Check whether --enable-debug or --disable-debug was given.
1744if test "${enable_debug+set}" = set; then
1745  enableval="$enable_debug"
1746  case "${enableval}" in
1747   yes) coin_debug_compile=true
1748        if test "${enable_shared+set}" = set; then :; else
1749          enable_shared=no
1750        fi
1751        ;;
1752   no)  coin_debug_compile=false
1753        ;;
1754   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1755echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1756   { (exit 1); exit 1; }; }
1757        ;;
1758esac
1759else
1760  coin_debug_compile=false
1761fi;
1762
1763# Check whether --enable-debug-glpk or --disable-debug-glpk was given.
1764if test "${enable_debug_glpk+set}" = set; then
1765  enableval="$enable_debug_glpk"
1766  case "${enableval}" in
1767    yes) coin_debug_compile=true
1768         enable_shared=no
1769         ;;
1770    no)  coin_debug_compile=false
1771         ;;
1772    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-glpk" >&5
1773echo "$as_me: error: bad value ${enableval} for --enable-debug-glpk" >&2;}
1774   { (exit 1); exit 1; }; }
1775         ;;
1776 esac
1777else
1778  :
1779fi;
1780
1781 # m4_ifvaln([Glpk],
1782
1783if test $coin_debug_compile = true; then
1784  echo "$as_me:$LINENO: result: yes" >&5
1785echo "${ECHO_T}yes" >&6
1786else
1787  echo "$as_me:$LINENO: result: no" >&5
1788echo "${ECHO_T}no" >&6
1789fi
1790
1791
1792# Check whether --with-glpk-verbosity or --without-glpk-verbosity was given.
1793if test "${with_glpk_verbosity+set}" = set; then
1794  withval="$with_glpk_verbosity"
1795  if test "$withval" = yes; then
1796                withval=1
1797              fi
1798              coin_glpk_verbosity=$withval
1799else
1800  coin_glpk_verbosity=0
1801fi;
1802
1803cat >>confdefs.h <<_ACEOF
1804#define COIN_GLPK_VERBOSITY $coin_glpk_verbosity
1805_ACEOF
1806
1807
1808
1809# Check whether --with-glpk-checklevel or --without-glpk-checklevel was given.
1810if test "${with_glpk_checklevel+set}" = set; then
1811  withval="$with_glpk_checklevel"
1812  if test "$withval" = yes; then
1813                withval=1
1814              fi
1815              coin_glpk_checklevel=$withval
1816else
1817  coin_glpk_checklevel=0
1818fi;
1819
1820cat >>confdefs.h <<_ACEOF
1821#define COIN_GLPK_CHECKLEVEL $coin_glpk_checklevel
1822_ACEOF
1823
1824
1825# We use the following variable to have a string with the upper case
1826# version of the project name
1827COIN_PRJCT=GLPK
1828
1829
1830 # m4_ifvaln([Glpk],
1831
1832
1833
1834# Get the name of the C compiler
1835case $build in
1836  *-mingw*)
1837    if test "${LD+set}" = set; then :; else
1838      LD=link
1839    fi
1840    ;;
1841 esac
1842 case $enable_doscompile in
1843   msvc)
1844     if test "x${LD+set}" = xset; then :; else
1845       LD=link
1846     fi
1847     ;;
1848 esac
1849
1850
1851 # Check whether --enable-doscompile or --disable-doscompile was given.
1852if test "${enable_doscompile+set}" = set; then
1853  enableval="$enable_doscompile"
1854  if test "$enable_doscompile" != no; then
1855     case $build in
1856       *-cygwin* | *-mingw*) ;;
1857       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1858echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1859   { (exit 1); exit 1; }; } ;;
1860     esac
1861   fi
1862else
1863  enable_doscompile=no
1864fi;
1865 case "$enable_doscompile" in
1866   mingw)
1867     case $build in
1868       *-mingw*) enable_doscompile=no ;;
1869     esac
1870     ;;
1871   msvc|no) ;;
1872   yes) enable_doscompile=mingw ;;
1873   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1874                    Try configure --help=recursive." >&5
1875echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1876                    Try configure --help=recursive." >&2;}
1877   { (exit 1); exit 1; }; }
1878      ;;
1879  esac
1880  if test "$enable_doscompile" != no ; then
1881    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1882echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1883  fi
1884
1885
1886
1887
1888ac_ext=c
1889ac_cpp='$CPP $CPPFLAGS'
1890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1892ac_compiler_gnu=$ac_cv_c_compiler_gnu
1893
1894
1895# For consistency, we set the C compiler to the same value of the C++
1896# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1897if test x"$CXX" != x; then
1898  case "$CXX" in
1899    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1900      if test x"$CC" = x; then
1901        CC="$CXX"
1902        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1903echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1904      fi
1905      ;;
1906  esac
1907fi
1908
1909# add automake conditional so we can recognize cl compiler in makefile
1910coin_cc_is_cl=false
1911if test x"$CXX" != x; then
1912  case "$CXX" in
1913    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1914      coin_cc_is_cl=true
1915      ;;
1916  esac
1917fi
1918
1919
1920if test $coin_cc_is_cl = true; then
1921  COIN_CC_IS_CL_TRUE=
1922  COIN_CC_IS_CL_FALSE='#'
1923else
1924  COIN_CC_IS_CL_TRUE='#'
1925  COIN_CC_IS_CL_FALSE=
1926fi
1927
1928
1929
1930
1931
1932
1933
1934coin_has_cc=yes
1935
1936save_cflags="$CFLAGS"
1937
1938# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1939# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1940# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1941# compiler. In this case, put cc after gcc.
1942
1943case $build in
1944  *-cygwin* | *-mingw*)
1945             if test "$enable_doscompile" = msvc ; then
1946               comps="icl cl"
1947             else
1948               comps="gcc cl"
1949             fi ;;
1950  *-*-solaris*)
1951             # Extract the first word of "cc", so it can be a program name with args.
1952set dummy cc; ac_word=$2
1953echo "$as_me:$LINENO: checking for $ac_word" >&5
1954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1956  echo $ECHO_N "(cached) $ECHO_C" >&6
1957else
1958  if test -n "$sol_cc_compiler"; then
1959  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1960else
1961  ac_prog_rejected=no
1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963for as_dir in $PATH
1964do
1965  IFS=$as_save_IFS
1966  test -z "$as_dir" && as_dir=.
1967  for ac_exec_ext in '' $ac_executable_extensions; do
1968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1970       ac_prog_rejected=yes
1971       continue
1972     fi
1973    ac_cv_prog_sol_cc_compiler="cc"
1974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975    break 2
1976  fi
1977done
1978done
1979
1980if test $ac_prog_rejected = yes; then
1981  # We found a bogon in the path, so make sure we never use it.
1982  set dummy $ac_cv_prog_sol_cc_compiler
1983  shift
1984  if test $# != 0; then
1985    # We chose a different compiler from the bogus one.
1986    # However, it has the same basename, so the bogon will be chosen
1987    # first if we set sol_cc_compiler to just the basename; use the full file name.
1988    shift
1989    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1990  fi
1991fi
1992fi
1993fi
1994sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1995if test -n "$sol_cc_compiler"; then
1996  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1997echo "${ECHO_T}$sol_cc_compiler" >&6
1998else
1999  echo "$as_me:$LINENO: result: no" >&5
2000echo "${ECHO_T}no" >&6
2001fi
2002
2003             if test "$sol_cc_compiler" = "cc" ; then
2004               comps="cc xlc gcc pgcc icc"
2005             else
2006               comps="xlc gcc pgcc icc cc"
2007             fi
2008             ;;
2009  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2010  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2011  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2012esac
2013
2014# We delete the cached value, since the test might not have been
2015# performed with our choice of compilers earlier
2016$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2017# AC_MSG_NOTICE([C compiler candidates: $comps])
2018ac_ext=c
2019ac_cpp='$CPP $CPPFLAGS'
2020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023if test -n "$ac_tool_prefix"; then
2024  for ac_prog in $comps
2025  do
2026    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2028echo "$as_me:$LINENO: checking for $ac_word" >&5
2029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2030if test "${ac_cv_prog_CC+set}" = set; then
2031  echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033  if test -n "$CC"; then
2034  ac_cv_prog_CC="$CC" # Let the user override the test.
2035else
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039  IFS=$as_save_IFS
2040  test -z "$as_dir" && as_dir=.
2041  for ac_exec_ext in '' $ac_executable_extensions; do
2042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2044    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045    break 2
2046  fi
2047done
2048done
2049
2050fi
2051fi
2052CC=$ac_cv_prog_CC
2053if test -n "$CC"; then
2054  echo "$as_me:$LINENO: result: $CC" >&5
2055echo "${ECHO_T}$CC" >&6
2056else
2057  echo "$as_me:$LINENO: result: no" >&5
2058echo "${ECHO_T}no" >&6
2059fi
2060
2061    test -n "$CC" && break
2062  done
2063fi
2064if test -z "$CC"; then
2065  ac_ct_CC=$CC
2066  for ac_prog in $comps
2067do
2068  # Extract the first word of "$ac_prog", so it can be a program name with args.
2069set dummy $ac_prog; ac_word=$2
2070echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073  echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075  if test -n "$ac_ct_CC"; then
2076  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077else
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081  IFS=$as_save_IFS
2082  test -z "$as_dir" && as_dir=.
2083  for ac_exec_ext in '' $ac_executable_extensions; do
2084  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085    ac_cv_prog_ac_ct_CC="$ac_prog"
2086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087    break 2
2088  fi
2089done
2090done
2091
2092fi
2093fi
2094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
2096  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6
2098else
2099  echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
2101fi
2102
2103  test -n "$ac_ct_CC" && break
2104done
2105
2106  CC=$ac_ct_CC
2107fi
2108
2109
2110test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2111See \`config.log' for more details." >&5
2112echo "$as_me: error: no acceptable C compiler found in \$PATH
2113See \`config.log' for more details." >&2;}
2114   { (exit 1); exit 1; }; }
2115
2116# Provide some information about the compiler.
2117echo "$as_me:$LINENO:" \
2118     "checking for C compiler version" >&5
2119ac_compiler=`set X $ac_compile; echo $2`
2120{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2121  (eval $ac_compiler --version </dev/null >&5) 2>&5
2122  ac_status=$?
2123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124  (exit $ac_status); }
2125{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2126  (eval $ac_compiler -v </dev/null >&5) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }
2130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2131  (eval $ac_compiler -V </dev/null >&5) 2>&5
2132  ac_status=$?
2133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134  (exit $ac_status); }
2135
2136cat >conftest.$ac_ext <<_ACEOF
2137/* confdefs.h.  */
2138_ACEOF
2139cat confdefs.h >>conftest.$ac_ext
2140cat >>conftest.$ac_ext <<_ACEOF
2141/* end confdefs.h.  */
2142
2143int
2144main ()
2145{
2146
2147  ;
2148  return 0;
2149}
2150_ACEOF
2151ac_clean_files_save=$ac_clean_files
2152ac_clean_files="$ac_clean_files a.out a.exe b.out"
2153# Try to create an executable without -o first, disregard a.out.
2154# It will help us diagnose broken compilers, and finding out an intuition
2155# of exeext.
2156echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2157echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2158ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2159if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2160  (eval $ac_link_default) 2>&5
2161  ac_status=$?
2162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163  (exit $ac_status); }; then
2164  # Find the output, starting from the most likely.  This scheme is
2165# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2166# resort.
2167
2168# Be careful to initialize this variable, since it used to be cached.
2169# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2170ac_cv_exeext=
2171# b.out is created by i960 compilers.
2172for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2173do
2174  test -f "$ac_file" || continue
2175  case $ac_file in
2176    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2177        ;;
2178    conftest.$ac_ext )
2179        # This is the source file.
2180        ;;
2181    [ab].out )
2182        # We found the default executable, but exeext='' is most
2183        # certainly right.
2184        break;;
2185    *.* )
2186        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187        # FIXME: I believe we export ac_cv_exeext for Libtool,
2188        # but it would be cool to find out if it's true.  Does anybody
2189        # maintain Libtool? --akim.
2190        export ac_cv_exeext
2191        break;;
2192    * )
2193        break;;
2194  esac
2195done
2196else
2197  echo "$as_me: failed program was:" >&5
2198sed 's/^/| /' conftest.$ac_ext >&5
2199
2200{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201See \`config.log' for more details." >&5
2202echo "$as_me: error: C compiler cannot create executables
2203See \`config.log' for more details." >&2;}
2204   { (exit 77); exit 77; }; }
2205fi
2206
2207ac_exeext=$ac_cv_exeext
2208echo "$as_me:$LINENO: result: $ac_file" >&5
2209echo "${ECHO_T}$ac_file" >&6
2210
2211# Check the compiler produces executables we can run.  If not, either
2212# the compiler is broken, or we cross compile.
2213echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2215# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216# If not cross compiling, check that we can run a simple program.
2217if test "$cross_compiling" != yes; then
2218  if { ac_try='./$ac_file'
2219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220  (eval $ac_try) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }; }; then
2224    cross_compiling=no
2225  else
2226    if test "$cross_compiling" = maybe; then
2227        cross_compiling=yes
2228    else
2229        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2230If you meant to cross compile, use \`--host'.
2231See \`config.log' for more details." >&5
2232echo "$as_me: error: cannot run C compiled programs.
2233If you meant to cross compile, use \`--host'.
2234See \`config.log' for more details." >&2;}
2235   { (exit 1); exit 1; }; }
2236    fi
2237  fi
2238fi
2239echo "$as_me:$LINENO: result: yes" >&5
2240echo "${ECHO_T}yes" >&6
2241
2242rm -f a.out a.exe conftest$ac_cv_exeext b.out
2243ac_clean_files=$ac_clean_files_save
2244# Check the compiler produces executables we can run.  If not, either
2245# the compiler is broken, or we cross compile.
2246echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2247echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2248echo "$as_me:$LINENO: result: $cross_compiling" >&5
2249echo "${ECHO_T}$cross_compiling" >&6
2250
2251echo "$as_me:$LINENO: checking for suffix of executables" >&5
2252echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2254  (eval $ac_link) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); }; then
2258  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2259# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2260# work properly (i.e., refer to `conftest.exe'), while it won't with
2261# `rm'.
2262for ac_file in conftest.exe conftest conftest.*; do
2263  test -f "$ac_file" || continue
2264  case $ac_file in
2265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2266    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2267          export ac_cv_exeext
2268          break;;
2269    * ) break;;
2270  esac
2271done
2272else
2273  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274See \`config.log' for more details." >&5
2275echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276See \`config.log' for more details." >&2;}
2277   { (exit 1); exit 1; }; }
2278fi
2279
2280rm -f conftest$ac_cv_exeext
2281echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282echo "${ECHO_T}$ac_cv_exeext" >&6
2283
2284rm -f conftest.$ac_ext
2285EXEEXT=$ac_cv_exeext
2286ac_exeext=$EXEEXT
2287echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2289if test "${ac_cv_objext+set}" = set; then
2290  echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292  cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h.  */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h.  */
2298
2299int
2300main ()
2301{
2302
2303  ;
2304  return 0;
2305}
2306_ACEOF
2307rm -f conftest.o conftest.obj
2308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309  (eval $ac_compile) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; then
2313  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2314  case $ac_file in
2315    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2316    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2317       break;;
2318  esac
2319done
2320else
2321  echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2325See \`config.log' for more details." >&5
2326echo "$as_me: error: cannot compute suffix of object files: cannot compile
2327See \`config.log' for more details." >&2;}
2328   { (exit 1); exit 1; }; }
2329fi
2330
2331rm -f conftest.$ac_cv_objext conftest.$ac_ext
2332fi
2333echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2334echo "${ECHO_T}$ac_cv_objext" >&6
2335OBJEXT=$ac_cv_objext
2336ac_objext=$OBJEXT
2337echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2338echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2339if test "${ac_cv_c_compiler_gnu+set}" = set; then
2340  echo $ECHO_N "(cached) $ECHO_C" >&6
2341else
2342  cat >conftest.$ac_ext <<_ACEOF
2343/* confdefs.h.  */
2344_ACEOF
2345cat confdefs.h >>conftest.$ac_ext
2346cat >>conftest.$ac_ext <<_ACEOF
2347/* end confdefs.h.  */
2348
2349int
2350main ()
2351{
2352#ifndef __GNUC__
2353       choke me
2354#endif
2355
2356  ;
2357  return 0;
2358}
2359_ACEOF
2360rm -f conftest.$ac_objext
2361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362  (eval $ac_compile) 2>conftest.er1
2363  ac_status=$?
2364  grep -v '^ *+' conftest.er1 >conftest.err
2365  rm -f conftest.er1
2366  cat conftest.err >&5
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); } &&
2369         { ac_try='test -z "$ac_c_werror_flag"
2370                         || test ! -s conftest.err'
2371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372  (eval $ac_try) 2>&5
2373  ac_status=$?
2374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375  (exit $ac_status); }; } &&
2376         { ac_try='test -s conftest.$ac_objext'
2377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378  (eval $ac_try) 2>&5
2379  ac_status=$?
2380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381  (exit $ac_status); }; }; then
2382  ac_compiler_gnu=yes
2383else
2384  echo "$as_me: failed program was:" >&5
2385sed 's/^/| /' conftest.$ac_ext >&5
2386
2387ac_compiler_gnu=no
2388fi
2389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2390ac_cv_c_compiler_gnu=$ac_compiler_gnu
2391
2392fi
2393echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2394echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2395GCC=`test $ac_compiler_gnu = yes && echo yes`
2396ac_test_CFLAGS=${CFLAGS+set}
2397ac_save_CFLAGS=$CFLAGS
2398CFLAGS="-g"
2399echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2400echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2401if test "${ac_cv_prog_cc_g+set}" = set; then
2402  echo $ECHO_N "(cached) $ECHO_C" >&6
2403else
2404  cat >conftest.$ac_ext <<_ACEOF
2405/* confdefs.h.  */
2406_ACEOF
2407cat confdefs.h >>conftest.$ac_ext
2408cat >>conftest.$ac_ext <<_ACEOF
2409/* end confdefs.h.  */
2410
2411int
2412main ()
2413{
2414
2415  ;
2416  return 0;
2417}
2418_ACEOF
2419rm -f conftest.$ac_objext
2420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421  (eval $ac_compile) 2>conftest.er1
2422  ac_status=$?
2423  grep -v '^ *+' conftest.er1 >conftest.err
2424  rm -f conftest.er1
2425  cat conftest.err >&5
2426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427  (exit $ac_status); } &&
2428         { ac_try='test -z "$ac_c_werror_flag"
2429                         || test ! -s conftest.err'
2430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431  (eval $ac_try) 2>&5
2432  ac_status=$?
2433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434  (exit $ac_status); }; } &&
2435         { ac_try='test -s conftest.$ac_objext'
2436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437  (eval $ac_try) 2>&5
2438  ac_status=$?
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); }; }; then
2441  ac_cv_prog_cc_g=yes
2442else
2443  echo "$as_me: failed program was:" >&5
2444sed 's/^/| /' conftest.$ac_ext >&5
2445
2446ac_cv_prog_cc_g=no
2447fi
2448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2449fi
2450echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2451echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2452if test "$ac_test_CFLAGS" = set; then
2453  CFLAGS=$ac_save_CFLAGS
2454elif test $ac_cv_prog_cc_g = yes; then
2455  if test "$GCC" = yes; then
2456    CFLAGS="-g -O2"
2457  else
2458    CFLAGS="-g"
2459  fi
2460else
2461  if test "$GCC" = yes; then
2462    CFLAGS="-O2"
2463  else
2464    CFLAGS=
2465  fi
2466fi
2467echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2468echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2469if test "${ac_cv_prog_cc_stdc+set}" = set; then
2470  echo $ECHO_N "(cached) $ECHO_C" >&6
2471else
2472  ac_cv_prog_cc_stdc=no
2473ac_save_CC=$CC
2474cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h.  */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h.  */
2480#include <stdarg.h>
2481#include <stdio.h>
2482#include <sys/types.h>
2483#include <sys/stat.h>
2484/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2485struct buf { int x; };
2486FILE * (*rcsopen) (struct buf *, struct stat *, int);
2487static char *e (p, i)
2488     char **p;
2489     int i;
2490{
2491  return p[i];
2492}
2493static char *f (char * (*g) (char **, int), char **p, ...)
2494{
2495  char *s;
2496  va_list v;
2497  va_start (v,p);
2498  s = g (p, va_arg (v,int));
2499  va_end (v);
2500  return s;
2501}
2502
2503/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2504   function prototypes and stuff, but not '\xHH' hex character constants.
2505   These don't provoke an error unfortunately, instead are silently treated
2506   as 'x'.  The following induces an error, until -std1 is added to get
2507   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2508   array size at least.  It's necessary to write '\x00'==0 to get something
2509   that's true only with -std1.  */
2510int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2511
2512int test (int i, double x);
2513struct s1 {int (*f) (int a);};
2514struct s2 {int (*f) (double a);};
2515int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2516int argc;
2517char **argv;
2518int
2519main ()
2520{
2521return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2522  ;
2523  return 0;
2524}
2525_ACEOF
2526# Don't try gcc -ansi; that turns off useful extensions and
2527# breaks some systems' header files.
2528# AIX                   -qlanglvl=ansi
2529# Ultrix and OSF/1      -std1
2530# HP-UX 10.20 and later -Ae
2531# HP-UX older versions  -Aa -D_HPUX_SOURCE
2532# SVR4                  -Xc -D__EXTENSIONS__
2533for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2534do
2535  CC="$ac_save_CC $ac_arg"
2536  rm -f conftest.$ac_objext
2537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538  (eval $ac_compile) 2>conftest.er1
2539  ac_status=$?
2540  grep -v '^ *+' conftest.er1 >conftest.err
2541  rm -f conftest.er1
2542  cat conftest.err >&5
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); } &&
2545         { ac_try='test -z "$ac_c_werror_flag"
2546                         || test ! -s conftest.err'
2547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548  (eval $ac_try) 2>&5
2549  ac_status=$?
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); }; } &&
2552         { ac_try='test -s conftest.$ac_objext'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; }; then
2558  ac_cv_prog_cc_stdc=$ac_arg
2559break
2560else
2561  echo "$as_me: failed program was:" >&5
2562sed 's/^/| /' conftest.$ac_ext >&5
2563
2564fi
2565rm -f conftest.err conftest.$ac_objext
2566done
2567rm -f conftest.$ac_ext conftest.$ac_objext
2568CC=$ac_save_CC
2569
2570fi
2571
2572case "x$ac_cv_prog_cc_stdc" in
2573  x|xno)
2574    echo "$as_me:$LINENO: result: none needed" >&5
2575echo "${ECHO_T}none needed" >&6 ;;
2576  *)
2577    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2578echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2579    CC="$CC $ac_cv_prog_cc_stdc" ;;
2580esac
2581
2582# Some people use a C++ compiler to compile C.  Since we use `exit',
2583# in C++ we need to declare it.  In case someone uses the same compiler
2584# for both compiling C and C++ we need to have the C++ compiler decide
2585# the declaration of exit, since it's the most demanding environment.
2586cat >conftest.$ac_ext <<_ACEOF
2587#ifndef __cplusplus
2588  choke me
2589#endif
2590_ACEOF
2591rm -f conftest.$ac_objext
2592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593  (eval $ac_compile) 2>conftest.er1
2594  ac_status=$?
2595  grep -v '^ *+' conftest.er1 >conftest.err
2596  rm -f conftest.er1
2597  cat conftest.err >&5
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); } &&
2600         { ac_try='test -z "$ac_c_werror_flag"
2601                         || test ! -s conftest.err'
2602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603  (eval $ac_try) 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }; } &&
2607         { ac_try='test -s conftest.$ac_objext'
2608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609  (eval $ac_try) 2>&5
2610  ac_status=$?
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); }; }; then
2613  for ac_declaration in \
2614   '' \
2615   'extern "C" void std::exit (int) throw (); using std::exit;' \
2616   'extern "C" void std::exit (int); using std::exit;' \
2617   'extern "C" void exit (int) throw ();' \
2618   'extern "C" void exit (int);' \
2619   'void exit (int);'
2620do
2621  cat >conftest.$ac_ext <<_ACEOF
2622/* confdefs.h.  */
2623_ACEOF
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h.  */
2627$ac_declaration
2628#include <stdlib.h>
2629int
2630main ()
2631{
2632exit (42);
2633  ;
2634  return 0;
2635}
2636_ACEOF
2637rm -f conftest.$ac_objext
2638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639  (eval $ac_compile) 2>conftest.er1
2640  ac_status=$?
2641  grep -v '^ *+' conftest.er1 >conftest.err
2642  rm -f conftest.er1
2643  cat conftest.err >&5
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); } &&
2646         { ac_try='test -z "$ac_c_werror_flag"
2647                         || test ! -s conftest.err'
2648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649  (eval $ac_try) 2>&5
2650  ac_status=$?
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); }; } &&
2653         { ac_try='test -s conftest.$ac_objext'
2654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655  (eval $ac_try) 2>&5
2656  ac_status=$?
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); }; }; then
2659  :
2660else
2661  echo "$as_me: failed program was:" >&5
2662sed 's/^/| /' conftest.$ac_ext >&5
2663
2664continue
2665fi
2666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2667  cat >conftest.$ac_ext <<_ACEOF
2668/* confdefs.h.  */
2669_ACEOF
2670cat confdefs.h >>conftest.$ac_ext
2671cat >>conftest.$ac_ext <<_ACEOF
2672/* end confdefs.h.  */
2673$ac_declaration
2674int
2675main ()
2676{
2677exit (42);
2678  ;
2679  return 0;
2680}
2681_ACEOF
2682rm -f conftest.$ac_objext
2683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684  (eval $ac_compile) 2>conftest.er1
2685  ac_status=$?
2686  grep -v '^ *+' conftest.er1 >conftest.err
2687  rm -f conftest.er1
2688  cat conftest.err >&5
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); } &&
2691         { ac_try='test -z "$ac_c_werror_flag"
2692                         || test ! -s conftest.err'
2693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694  (eval $ac_try) 2>&5
2695  ac_status=$?
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); }; } &&
2698         { ac_try='test -s conftest.$ac_objext'
2699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700  (eval $ac_try) 2>&5
2701  ac_status=$?
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); }; }; then
2704  break
2705else
2706  echo "$as_me: failed program was:" >&5
2707sed 's/^/| /' conftest.$ac_ext >&5
2708
2709fi
2710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2711done
2712rm -f conftest*
2713if test -n "$ac_declaration"; then
2714  echo '#ifdef __cplusplus' >>confdefs.h
2715  echo $ac_declaration      >>confdefs.h
2716  echo '#endif'             >>confdefs.h
2717fi
2718
2719else
2720  echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723fi
2724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2725ac_ext=c
2726ac_cpp='$CPP $CPPFLAGS'
2727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731if test -z "$CC" ; then
2732  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2733echo "$as_me: error: Failed to find a C compiler!" >&2;}
2734   { (exit 1); exit 1; }; }
2735fi
2736# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2737case "$CC" in
2738  cl* | */cl* | CL* | */CL* )
2739    if test "$ac_cv_prog_cc_g" = yes ; then
2740      ac_cv_prog_cc_g=no
2741      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2742echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2743    fi ;;
2744esac
2745CFLAGS="$save_cflags"
2746
2747# Check if a project specific CFLAGS variable has been set
2748if test x$COIN_PRJCT != x; then
2749  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2750  if test x$coin_tmp = xset; then
2751    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2752  fi
2753fi
2754
2755if test x"$CFLAGS" = x; then
2756
2757  coin_add_cflags=
2758  coin_opt_cflags=
2759  coin_dbg_cflags=
2760  coin_warn_cflags=
2761
2762  if test "$GCC" = "yes"; then
2763    case "$CC" in
2764      icc* | */icc*)
2765        ;;
2766      *)
2767        coin_opt_cflags="-O3"
2768        coin_add_cflags="-pipe"
2769        coin_dbg_cflags="-g"
2770        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2771        case $build in
2772          *-darwin*)
2773            ;;
2774          *)
2775            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2776            ;;
2777        esac
2778        case $enable_doscompile in
2779          mingw)
2780            CFLAGS="-mno-cygwin"
2781            cat >conftest.$ac_ext <<_ACEOF
2782/* confdefs.h.  */
2783_ACEOF
2784cat confdefs.h >>conftest.$ac_ext
2785cat >>conftest.$ac_ext <<_ACEOF
2786/* end confdefs.h.  */
2787
2788int
2789main ()
2790{
2791int i=0; i++;
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796rm -f conftest.$ac_objext conftest$ac_exeext
2797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2798  (eval $ac_link) 2>conftest.er1
2799  ac_status=$?
2800  grep -v '^ *+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } &&
2805         { ac_try='test -z "$ac_c_werror_flag"
2806                         || test ! -s conftest.err'
2807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808  (eval $ac_try) 2>&5
2809  ac_status=$?
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); }; } &&
2812         { ac_try='test -s conftest$ac_exeext'
2813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814  (eval $ac_try) 2>&5
2815  ac_status=$?
2816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817  (exit $ac_status); }; }; then
2818  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2819else
2820  echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823fi
2824rm -f conftest.err conftest.$ac_objext \
2825      conftest$ac_exeext conftest.$ac_ext
2826            CFLAGS=
2827          ;;
2828        esac
2829    esac
2830  fi
2831  if test -z "$coin_opt_cflags"; then
2832    case $build in
2833      *-cygwin* | *-mingw*)
2834        case "$CC" in
2835          cl* | */cl* | CL* | */CL*)
2836            coin_opt_cflags='-MT -O2'
2837            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2838            coin_dbg_cflags='-MTd'
2839            ;;
2840          icl* | */icl* | ICL* | */ICL*)
2841            coin_opt_cflags='-MT -Ox'
2842            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2843            coin_dbg_cflags='-MTd -debug'
2844            ;;
2845        esac
2846        ;;
2847      *-linux-*)
2848        case "$CC" in
2849          icc* | */icc*)
2850            coin_opt_cflags="-O3 -ip -mp1"
2851            coin_add_cflags=""
2852            coin_dbg_cflags="-g"
2853            # Check if -i_dynamic is necessary (for new glibc library)
2854            CFLAGS=
2855            cat >conftest.$ac_ext <<_ACEOF
2856/* confdefs.h.  */
2857_ACEOF
2858cat confdefs.h >>conftest.$ac_ext
2859cat >>conftest.$ac_ext <<_ACEOF
2860/* end confdefs.h.  */
2861
2862int
2863main ()
2864{
2865int i=0; i++;
2866  ;
2867  return 0;
2868}
2869_ACEOF
2870rm -f conftest.$ac_objext conftest$ac_exeext
2871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2872  (eval $ac_link) 2>conftest.er1
2873  ac_status=$?
2874  grep -v '^ *+' conftest.er1 >conftest.err
2875  rm -f conftest.er1
2876  cat conftest.err >&5
2877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878  (exit $ac_status); } &&
2879         { ac_try='test -z "$ac_c_werror_flag"
2880                         || test ! -s conftest.err'
2881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882  (eval $ac_try) 2>&5
2883  ac_status=$?
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); }; } &&
2886         { ac_try='test -s conftest$ac_exeext'
2887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888  (eval $ac_try) 2>&5
2889  ac_status=$?
2890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); }; }; then
2892  :
2893else
2894  echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897coin_add_cflags="-i_dynamic $coin_add_cflags"
2898fi
2899rm -f conftest.err conftest.$ac_objext \
2900      conftest$ac_exeext conftest.$ac_ext
2901            ;;
2902          pgcc* | */pgcc*)
2903            coin_opt_cflags="-fast"
2904            coin_add_cflags="-Kieee -pc 64"
2905            coin_dbg_cflags="-g"
2906            ;;
2907        esac
2908        ;;
2909      *-ibm-*)
2910        case "$CC" in
2911          xlc* | */xlc* | mpxlc* | */mpxlc*)
2912            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2913            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2914            coin_dbg_cflags="-g"
2915          ;;
2916        esac
2917        ;;
2918      *-hp-*)
2919        coin_opt_cflags="-O"
2920        coin_add_cflags="-Ae"
2921        coin_dbg_cflags="-g"
2922        ;;
2923      *-*-solaris*)
2924        coin_opt_cflags="-xO4"
2925        coin_dbg_cflags="-g"
2926        ;;
2927      *-sgi-*)
2928        coin_opt_cflags="-O -OPT:Olimit=0"
2929        coin_dbg_cflags="-g"
2930        ;;
2931    esac
2932  fi
2933
2934  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2935    coin_dbg_cflags="-g"
2936  fi
2937
2938  if test -z "$coin_opt_cflags"; then
2939    # Try if -O option works if nothing else is set
2940    CFLAGS="-O"
2941    cat >conftest.$ac_ext <<_ACEOF
2942/* confdefs.h.  */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h.  */
2947
2948int
2949main ()
2950{
2951int i=0; i++;
2952  ;
2953  return 0;
2954}
2955_ACEOF
2956rm -f conftest.$ac_objext conftest$ac_exeext
2957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2958  (eval $ac_link) 2>conftest.er1
2959  ac_status=$?
2960  grep -v '^ *+' conftest.er1 >conftest.err
2961  rm -f conftest.er1
2962  cat conftest.err >&5
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); } &&
2965         { ac_try='test -z "$ac_c_werror_flag"
2966                         || test ! -s conftest.err'
2967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968  (eval $ac_try) 2>&5
2969  ac_status=$?
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); }; } &&
2972         { ac_try='test -s conftest$ac_exeext'
2973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974  (eval $ac_try) 2>&5
2975  ac_status=$?
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); }; }; then
2978  coin_opt_cflags="-O"
2979else
2980  echo "$as_me: failed program was:" >&5
2981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983fi
2984rm -f conftest.err conftest.$ac_objext \
2985      conftest$ac_exeext conftest.$ac_ext
2986  fi
2987
2988  # if PM doesn't want the warning messages, take them out
2989  if test x"$coin_skip_warn_cflags" = xyes; then
2990    coin_warn_cflags=
2991  fi
2992
2993  if test x${DBG_CFLAGS+set} != xset; then
2994    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2995  fi
2996  if test x${OPT_CFLAGS+set} != xset; then
2997    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2998  fi
2999
3000  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3001  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3002
3003  if test "$coin_debug_compile" = "true"; then
3004    CFLAGS="$DBG_CFLAGS"
3005  else
3006    CFLAGS="$OPT_CFLAGS"
3007  fi
3008else
3009  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3010  if test x${DBG_CFLAGS+set} != xset; then
3011    DBG_CFLAGS="$CFLAGS"
3012  fi
3013  if test x${OPT_CFLAGS+set} != xset; then
3014    OPT_CFLAGS="$CFLAGS"
3015  fi
3016fi
3017
3018# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3019
3020case "$CFLAGS" in
3021  *-mno-cygwin*)
3022    if test x${CPPFLAGS+set} != xset ; then
3023      CPPFLAGS="-mno-cygwin"
3024    else
3025      case "$CPPFLAGS" in
3026        *-mno-cygwin*)
3027          ;;
3028        *)
3029          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3030          ;;
3031      esac
3032    fi ;;
3033esac
3034
3035# Try if CFLAGS works
3036save_CFLAGS="$CFLAGS"
3037cat >conftest.$ac_ext <<_ACEOF
3038/* confdefs.h.  */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h.  */
3043
3044int
3045main ()
3046{
3047int i=0; i++;
3048  ;
3049  return 0;
3050}
3051_ACEOF
3052rm -f conftest.$ac_objext conftest$ac_exeext
3053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3054  (eval $ac_link) 2>conftest.er1
3055  ac_status=$?
3056  grep -v '^ *+' conftest.er1 >conftest.err
3057  rm -f conftest.er1
3058  cat conftest.err >&5
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); } &&
3061         { ac_try='test -z "$ac_c_werror_flag"
3062                         || test ! -s conftest.err'
3063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064  (eval $ac_try) 2>&5
3065  ac_status=$?
3066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067  (exit $ac_status); }; } &&
3068         { ac_try='test -s conftest$ac_exeext'
3069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070  (eval $ac_try) 2>&5
3071  ac_status=$?
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); }; }; then
3074  :
3075else
3076  echo "$as_me: failed program was:" >&5
3077sed 's/^/| /' conftest.$ac_ext >&5
3078
3079CFLAGS=
3080fi
3081rm -f conftest.err conftest.$ac_objext \
3082      conftest$ac_exeext conftest.$ac_ext
3083if test -z "$CFLAGS"; then
3084  { 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
3085echo "$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;}
3086  CFLAGS='-O'
3087  cat >conftest.$ac_ext <<_ACEOF
3088/* confdefs.h.  */
3089_ACEOF
3090cat confdefs.h >>conftest.$ac_ext
3091cat >>conftest.$ac_ext <<_ACEOF
3092/* end confdefs.h.  */
3093
3094int
3095main ()
3096{
3097int i=0; i++;
3098  ;
3099  return 0;
3100}
3101_ACEOF
3102rm -f conftest.$ac_objext conftest$ac_exeext
3103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3104  (eval $ac_link) 2>conftest.er1
3105  ac_status=$?
3106  grep -v '^ *+' conftest.er1 >conftest.err
3107  rm -f conftest.er1
3108  cat conftest.err >&5
3109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110  (exit $ac_status); } &&
3111         { ac_try='test -z "$ac_c_werror_flag"
3112                         || test ! -s conftest.err'
3113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114  (eval $ac_try) 2>&5
3115  ac_status=$?
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); }; } &&
3118         { ac_try='test -s conftest$ac_exeext'
3119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120  (eval $ac_try) 2>&5
3121  ac_status=$?
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); }; }; then
3124  :
3125else
3126  echo "$as_me: failed program was:" >&5
3127sed 's/^/| /' conftest.$ac_ext >&5
3128
3129CFLAGS=
3130fi
3131rm -f conftest.err conftest.$ac_objext \
3132      conftest$ac_exeext conftest.$ac_ext
3133  if test -z "$CFLAGS"; then
3134    { 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
3135echo "$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;}
3136  fi
3137fi
3138
3139{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3140echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3141
3142
3143if test x"$MPICC" = x; then :; else
3144  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3145echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3146  CC="$MPICC"
3147fi
3148
3149# Correct the LD variable if we are using the MS or Intel-windows compiler
3150case "$CC" in
3151  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3152    case $build in
3153  *-mingw*)
3154    if test "${LD+set}" = set; then :; else
3155      LD=link
3156    fi
3157    ;;
3158 esac
3159 case $enable_doscompile in
3160   msvc)
3161     if test "x${LD+set}" = xset; then :; else
3162       LD=link
3163     fi
3164     ;;
3165 esac
3166
3167    ;;
3168esac
3169
3170ac_ext=c
3171ac_cpp='$CPP $CPPFLAGS'
3172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175
3176
3177
3178# Check if pkg-config is available (to setup addlibs file)
3179
3180
3181# Check whether --enable-pkg-config or --disable-pkg-config was given.
3182if test "${enable_pkg_config+set}" = set; then
3183  enableval="$enable_pkg_config"
3184  use_pkgconfig="$enableval"
3185else
3186  use_pkgconfig=yes
3187fi;
3188
3189if test $use_pkgconfig = yes ; then
3190  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3191    if test -n "$ac_tool_prefix"; then
3192  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3193set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3194echo "$as_me:$LINENO: checking for $ac_word" >&5
3195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  case $PKG_CONFIG in
3200  [\\/]* | ?:[\\/]*)
3201  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3202  ;;
3203  *)
3204  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207  IFS=$as_save_IFS
3208  test -z "$as_dir" && as_dir=.
3209  for ac_exec_ext in '' $ac_executable_extensions; do
3210  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3212    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213    break 2
3214  fi
3215done
3216done
3217
3218  ;;
3219esac
3220fi
3221PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3222
3223if test -n "$PKG_CONFIG"; then
3224  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3225echo "${ECHO_T}$PKG_CONFIG" >&6
3226else
3227  echo "$as_me:$LINENO: result: no" >&5
3228echo "${ECHO_T}no" >&6
3229fi
3230
3231fi
3232if test -z "$ac_cv_path_PKG_CONFIG"; then
3233  ac_pt_PKG_CONFIG=$PKG_CONFIG
3234  # Extract the first word of "pkg-config", so it can be a program name with args.
3235set dummy pkg-config; ac_word=$2
3236echo "$as_me:$LINENO: checking for $ac_word" >&5
3237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3239  echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241  case $ac_pt_PKG_CONFIG in
3242  [\\/]* | ?:[\\/]*)
3243  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3244  ;;
3245  *)
3246  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249  IFS=$as_save_IFS
3250  test -z "$as_dir" && as_dir=.
3251  for ac_exec_ext in '' $ac_executable_extensions; do
3252  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3254    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255    break 2
3256  fi
3257done
3258done
3259
3260  ;;
3261esac
3262fi
3263ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3264
3265if test -n "$ac_pt_PKG_CONFIG"; then
3266  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3267echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3268else
3269  echo "$as_me:$LINENO: result: no" >&5
3270echo "${ECHO_T}no" >&6
3271fi
3272
3273  PKG_CONFIG=$ac_pt_PKG_CONFIG
3274else
3275  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3276fi
3277
3278  fi
3279  if test -n "$PKG_CONFIG"; then
3280    _pkg_min_version=0.9.0
3281    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3282echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3283    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3284      echo "$as_me:$LINENO: result: yes" >&5
3285echo "${ECHO_T}yes" >&6
3286    else
3287      echo "$as_me:$LINENO: result: no" >&5
3288echo "${ECHO_T}no" >&6
3289      PKG_CONFIG=""
3290    fi
3291  fi
3292
3293  # check if pkg-config supports the short-errors flag
3294  if test -n "$PKG_CONFIG" && \
3295    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3296    pkg_short_errors=" --short-errors "
3297  else
3298    pkg_short_errors=""
3299  fi
3300fi
3301
3302
3303
3304if test -n "$PKG_CONFIG"; then
3305  COIN_HAS_PKGCONFIG_TRUE=
3306  COIN_HAS_PKGCONFIG_FALSE='#'
3307else
3308  COIN_HAS_PKGCONFIG_TRUE='#'
3309  COIN_HAS_PKGCONFIG_FALSE=
3310fi
3311
3312
3313
3314# assemble pkg-config search path for installed projects
3315COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3316
3317# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
3318# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3319# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3320if test "x${prefix}" = xNONE ; then
3321  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3322else
3323  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3324fi
3325
3326
3327# Check whether --with-coin-instdir or --without-coin-instdir was given.
3328if test "${with_coin_instdir+set}" = set; then
3329  withval="$with_coin_instdir"
3330  if test -d "$withval"; then : ; else
3331     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3332echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3333   { (exit 1); exit 1; }; }
3334   fi
3335   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3336
3337fi;
3338
3339
3340
3341# assemble additional pkg-config search paths for uninstalled projects
3342if test x$coin_projectdir = xyes ; then
3343  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3344  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3345  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3346  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
3347  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3348  if test -e ../coin_subdirs.txt ; then
3349    for i in `cat ../coin_subdirs.txt` ; do
3350      if test -d ../$i ; then
3351        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3352      fi
3353      if test -d ../$i/pkgconfig ; then
3354        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3355      fi
3356    done
3357  fi
3358
3359  if test -e ../../coin_subdirs.txt ; then
3360    for i in `cat ../../coin_subdirs.txt` ; do
3361      if test -d ../../$i ; then
3362        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3363      fi
3364      if test -d ../../$i/pkgconfig ; then
3365        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3366      fi
3367    done
3368  fi
3369
3370
3371fi
3372
3373
3374
3375# Initialize automake
3376{
3377
3378
3379
3380# START
3381
3382# Test if force_shared has been set
3383if test "x" = xforce_shared; then
3384  if test x$enable_shared = xno; then
3385    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3386echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3387   { (exit 1); exit 1; }; }
3388  fi
3389  enable_shared=yes;
3390else
3391  # On Cygwin and AIX, building DLLs doesn't work
3392  case $build in
3393    *-cygwin*)
3394      coin_disable_shared=yes
3395      platform=Cygwin
3396    ;;
3397    *-aix*)
3398      coin_disable_shared=yes
3399      platform=AIX
3400    ;;
3401    *-mingw*)
3402      coin_disable_shared=yes
3403      platform="Msys"
3404#      case "$CXX" in
3405#        cl*)
3406#          coin_disable_shared=yes
3407#          platform="Msys with cl"
3408#      ;;
3409#      esac
3410    ;;
3411  esac
3412fi
3413if test x"$coin_disable_shared" = xyes; then
3414  if test x"$enable_shared" = xyes; then
3415    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3416echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3417  fi
3418  enable_shared=no
3419fi
3420# By default, we only want the shared objects to be compiled
3421# Check whether --enable-static or --disable-static was given.
3422if test "${enable_static+set}" = set; then
3423  enableval="$enable_static"
3424  p=${PACKAGE-default}
3425    case $enableval in
3426    yes) enable_static=yes ;;
3427    no) enable_static=no ;;
3428    *)
3429     enable_static=no
3430      # Look at the argument we got.  We use all the common list separators.
3431      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3432      for pkg in $enableval; do
3433        IFS="$lt_save_ifs"
3434        if test "X$pkg" = "X$p"; then
3435          enable_static=yes
3436        fi
3437      done
3438      IFS="$lt_save_ifs"
3439      ;;
3440    esac
3441else
3442  enable_static=no
3443fi;
3444
3445
3446
3447
3448# Initialize automake
3449echo "$as_me:$LINENO: checking for egrep" >&5
3450echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3451if test "${ac_cv_prog_egrep+set}" = set; then
3452  echo $ECHO_N "(cached) $ECHO_C" >&6
3453else
3454  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3455    then ac_cv_prog_egrep='grep -E'
3456    else ac_cv_prog_egrep='egrep'
3457    fi
3458fi
3459echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3460echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3461 EGREP=$ac_cv_prog_egrep
3462
3463
3464am__api_version="1.9"
3465# Find a good install program.  We prefer a C program (faster),
3466# so one script is as good as another.  But avoid the broken or
3467# incompatible versions:
3468# SysV /etc/install, /usr/sbin/install
3469# SunOS /usr/etc/install
3470# IRIX /sbin/install
3471# AIX /bin/install
3472# AmigaOS /C/install, which installs bootblocks on floppy discs
3473# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3474# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3475# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3476# OS/2's system install, which has a completely different semantic
3477# ./install, which can be erroneously created by make from ./install.sh.
3478echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3479echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3480if test -z "$INSTALL"; then
3481if test "${ac_cv_path_install+set}" = set; then
3482  echo $ECHO_N "(cached) $ECHO_C" >&6
3483else
3484  as_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  # Account for people who put trailing slashes in PATH elements.
3490case $as_dir/ in
3491  ./ | .// | /cC/* | \
3492  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3493  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3494  /usr/ucb/* ) ;;
3495  *)
3496    # OSF1 and SCO ODT 3.0 have their own names for install.
3497    # Don't use installbsd from OSF since it installs stuff as root
3498    # by default.
3499    for ac_prog in ginstall scoinst install; do
3500      for ac_exec_ext in '' $ac_executable_extensions; do
3501        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3502          if test $ac_prog = install &&
3503            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3504            # AIX install.  It has an incompatible calling convention.
3505            :
3506          elif test $ac_prog = install &&
3507            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3508            # program-specific install script used by HP pwplus--don't use.
3509            :
3510          else
3511            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3512            break 3
3513          fi
3514        fi
3515      done
3516    done
3517    ;;
3518esac
3519done
3520
3521
3522fi
3523  if test "${ac_cv_path_install+set}" = set; then
3524    INSTALL=$ac_cv_path_install
3525  else
3526    # As a last resort, use the slow shell script.  We don't cache a
3527    # path for INSTALL within a source directory, because that will
3528    # break other packages using the cache if that directory is
3529    # removed, or if the path is relative.
3530    INSTALL=$ac_install_sh
3531  fi
3532fi
3533echo "$as_me:$LINENO: result: $INSTALL" >&5
3534echo "${ECHO_T}$INSTALL" >&6
3535
3536# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3537# It thinks the first close brace ends the variable substitution.
3538test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3539
3540test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3541
3542test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3543
3544echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3545echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3546# Just in case
3547sleep 1
3548echo timestamp > conftest.file
3549# Do `set' in a subshell so we don't clobber the current shell's
3550# arguments.  Must try -L first in case configure is actually a
3551# symlink; some systems play weird games with the mod time of symlinks
3552# (eg FreeBSD returns the mod time of the symlink's containing
3553# directory).
3554if (
3555   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3556   if test "$*" = "X"; then
3557      # -L didn't work.
3558      set X `ls -t $srcdir/configure conftest.file`
3559   fi
3560   rm -f conftest.file
3561   if test "$*" != "X $srcdir/configure conftest.file" \
3562      && test "$*" != "X conftest.file $srcdir/configure"; then
3563
3564      # If neither matched, then we have a broken ls.  This can happen
3565      # if, for instance, CONFIG_SHELL is bash and it inherits a
3566      # broken ls alias from the environment.  This has actually
3567      # happened.  Such a system could not be considered "sane".
3568      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3569alias in your environment" >&5
3570echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3571alias in your environment" >&2;}
3572   { (exit 1); exit 1; }; }
3573   fi
3574
3575   test "$2" = conftest.file
3576   )
3577then
3578   # Ok.
3579   :
3580else
3581   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3582Check your system clock" >&5
3583echo "$as_me: error: newly created file is older than distributed files!
3584Check your system clock" >&2;}
3585   { (exit 1); exit 1; }; }
3586fi
3587echo "$as_me:$LINENO: result: yes" >&5
3588echo "${ECHO_T}yes" >&6
3589test "$program_prefix" != NONE &&
3590  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3591# Use a double $ so make ignores it.
3592test "$program_suffix" != NONE &&
3593  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3594# Double any \ or $.  echo might interpret backslashes.
3595# By default was `s,x,x', remove it if useless.
3596cat <<\_ACEOF >conftest.sed
3597s/[\\$]/&&/g;s/;s,x,x,$//
3598_ACEOF
3599program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3600rm conftest.sed
3601
3602# expand $ac_aux_dir to an absolute path
3603am_aux_dir=`cd $ac_aux_dir && pwd`
3604
3605test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3606# Use eval to expand $SHELL
3607if eval "$MISSING --run true"; then
3608  am_missing_run="$MISSING --run "
3609else
3610  am_missing_run=
3611  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3612echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3613fi
3614
3615if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3616  # We used to keeping the `.' as first argument, in order to
3617  # allow $(mkdir_p) to be used without argument.  As in
3618  #   $(mkdir_p) $(somedir)
3619  # where $(somedir) is conditionally defined.  However this is wrong
3620  # for two reasons:
3621  #  1. if the package is installed by a user who cannot write `.'
3622  #     make install will fail,
3623  #  2. the above comment should most certainly read
3624  #     $(mkdir_p) $(DESTDIR)$(somedir)
3625  #     so it does not work when $(somedir) is undefined and
3626  #     $(DESTDIR) is not.
3627  #  To support the latter case, we have to write
3628  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3629  #  so the `.' trick is pointless.
3630  mkdir_p='mkdir -p --'
3631else
3632  # On NextStep and OpenStep, the `mkdir' command does not
3633  # recognize any option.  It will interpret all options as
3634  # directories to create, and then abort because `.' already
3635  # exists.
3636  for d in ./-p ./--version;
3637  do
3638    test -d $d && rmdir $d
3639  done
3640  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3641  if test -f "$ac_aux_dir/mkinstalldirs"; then
3642    mkdir_p='$(mkinstalldirs)'
3643  else
3644    mkdir_p='$(install_sh) -d'
3645  fi
3646fi
3647
3648for ac_prog in gawk mawk nawk awk
3649do
3650  # Extract the first word of "$ac_prog", so it can be a program name with args.
3651set dummy $ac_prog; ac_word=$2
3652echo "$as_me:$LINENO: checking for $ac_word" >&5
3653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654if test "${ac_cv_prog_AWK+set}" = set; then
3655  echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657  if test -n "$AWK"; then
3658  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3659else
3660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661for as_dir in $PATH
3662do
3663  IFS=$as_save_IFS
3664  test -z "$as_dir" && as_dir=.
3665  for ac_exec_ext in '' $ac_executable_extensions; do
3666  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667    ac_cv_prog_AWK="$ac_prog"
3668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669    break 2
3670  fi
3671done
3672done
3673
3674fi
3675fi
3676AWK=$ac_cv_prog_AWK
3677if test -n "$AWK"; then
3678  echo "$as_me:$LINENO: result: $AWK" >&5
3679echo "${ECHO_T}$AWK" >&6
3680else
3681  echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6
3683fi
3684
3685  test -n "$AWK" && break
3686done
3687
3688echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3689echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3690set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3691if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3692  echo $ECHO_N "(cached) $ECHO_C" >&6
3693else
3694  cat >conftest.make <<\_ACEOF
3695all:
3696        @echo 'ac_maketemp="$(MAKE)"'
3697_ACEOF
3698# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3699eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3700if test -n "$ac_maketemp"; then
3701  eval ac_cv_prog_make_${ac_make}_set=yes
3702else
3703  eval ac_cv_prog_make_${ac_make}_set=no
3704fi
3705rm -f conftest.make
3706fi
3707if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3708  echo "$as_me:$LINENO: result: yes" >&5
3709echo "${ECHO_T}yes" >&6
3710  SET_MAKE=
3711else
3712  echo "$as_me:$LINENO: result: no" >&5
3713echo "${ECHO_T}no" >&6
3714  SET_MAKE="MAKE=${MAKE-make}"
3715fi
3716
3717rm -rf .tst 2>/dev/null
3718mkdir .tst 2>/dev/null
3719if test -d .tst; then
3720  am__leading_dot=.
3721else
3722  am__leading_dot=_
3723fi
3724rmdir .tst 2>/dev/null
3725
3726DEPDIR="${am__leading_dot}deps"
3727
3728          ac_config_commands="$ac_config_commands depfiles"
3729
3730
3731am_make=${MAKE-make}
3732cat > confinc << 'END'
3733am__doit:
3734        @echo done
3735.PHONY: am__doit
3736END
3737# If we don't find an include directive, just comment out the code.
3738echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3739echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3740am__include="#"
3741am__quote=
3742_am_result=none
3743# First try GNU make style include.
3744echo "include confinc" > confmf
3745# We grep out `Entering directory' and `Leaving directory'
3746# messages which can occur if `w' ends up in MAKEFLAGS.
3747# In particular we don't look at `^make:' because GNU make might
3748# be invoked under some other name (usually "gmake"), in which
3749# case it prints its new name instead of `make'.
3750if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3751   am__include=include
3752   am__quote=
3753   _am_result=GNU
3754fi
3755# Now try BSD make style include.
3756if test "$am__include" = "#"; then
3757   echo '.include "confinc"' > confmf
3758   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3759      am__include=.include
3760      am__quote="\""
3761      _am_result=BSD
3762   fi
3763fi
3764
3765
3766echo "$as_me:$LINENO: result: $_am_result" >&5
3767echo "${ECHO_T}$_am_result" >&6
3768rm -f confinc confmf
3769
3770# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3771if test "${enable_dependency_tracking+set}" = set; then
3772  enableval="$enable_dependency_tracking"
3773
3774fi;
3775if test "x$enable_dependency_tracking" != xno; then
3776  am_depcomp="$ac_aux_dir/depcomp"
3777  AMDEPBACKSLASH='\'
3778fi
3779
3780
3781if test "x$enable_dependency_tracking" != xno; then
3782  AMDEP_TRUE=
3783  AMDEP_FALSE='#'
3784else
3785  AMDEP_TRUE='#'
3786  AMDEP_FALSE=
3787fi
3788
3789
3790
3791
3792
3793# AC_MSG_NOTICE([Beginning automake initialisation.])
3794# Stuff for automake
3795# test to see if srcdir already configured
3796if test "`cd $srcdir && pwd`" != "`pwd`" &&
3797   test -f $srcdir/config.status; then
3798  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3799echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3800   { (exit 1); exit 1; }; }
3801fi
3802
3803# test whether we have cygpath
3804if test -z "$CYGPATH_W"; then
3805  if (cygpath --version) >/dev/null 2>/dev/null; then
3806    CYGPATH_W='cygpath -w'
3807  else
3808    CYGPATH_W=echo
3809  fi
3810fi
3811
3812
3813# Define the identity of the package.
3814 PACKAGE='thirdpartyglpk'
3815 VERSION='trunk'
3816
3817
3818cat >>confdefs.h <<_ACEOF
3819#define PACKAGE "$PACKAGE"
3820_ACEOF
3821
3822
3823cat >>confdefs.h <<_ACEOF
3824#define VERSION "$VERSION"
3825_ACEOF
3826
3827# Some tools Automake needs.
3828
3829ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3830
3831
3832AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3833
3834
3835AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3836
3837
3838AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3839
3840
3841MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3842
3843install_sh=${install_sh-"$am_aux_dir/install-sh"}
3844
3845# Installed binaries are usually stripped using `strip' when the user
3846# run `make install-strip'.  However `strip' might not be the right
3847# tool to use in cross-compilation environments, therefore Automake
3848# will honor the `STRIP' environment variable to overrule this program.
3849if test "$cross_compiling" != no; then
3850  if test -n "$ac_tool_prefix"; then
3851  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3852set dummy ${ac_tool_prefix}strip; ac_word=$2
3853echo "$as_me:$LINENO: checking for $ac_word" >&5
3854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3855if test "${ac_cv_prog_STRIP+set}" = set; then
3856  echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858  if test -n "$STRIP"; then
3859  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864  IFS=$as_save_IFS
3865  test -z "$as_dir" && as_dir=.
3866  for ac_exec_ext in '' $ac_executable_extensions; do
3867  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3869    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870    break 2
3871  fi
3872done
3873done
3874
3875fi
3876fi
3877STRIP=$ac_cv_prog_STRIP
3878if test -n "$STRIP"; then
3879  echo "$as_me:$LINENO: result: $STRIP" >&5
3880echo "${ECHO_T}$STRIP" >&6
3881else
3882  echo "$as_me:$LINENO: result: no" >&5
3883echo "${ECHO_T}no" >&6
3884fi
3885
3886fi
3887if test -z "$ac_cv_prog_STRIP"; then
3888  ac_ct_STRIP=$STRIP
3889  # Extract the first word of "strip", so it can be a program name with args.
3890set dummy strip; ac_word=$2
3891echo "$as_me:$LINENO: checking for $ac_word" >&5
3892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3894  echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896  if test -n "$ac_ct_STRIP"; then
3897  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3898else
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902  IFS=$as_save_IFS
3903  test -z "$as_dir" && as_dir=.
3904  for ac_exec_ext in '' $ac_executable_extensions; do
3905  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906    ac_cv_prog_ac_ct_STRIP="strip"
3907    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908    break 2
3909  fi
3910done
3911done
3912
3913  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3914fi
3915fi
3916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3917if test -n "$ac_ct_STRIP"; then
3918  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3919echo "${ECHO_T}$ac_ct_STRIP" >&6
3920else
3921  echo "$as_me:$LINENO: result: no" >&5
3922echo "${ECHO_T}no" >&6
3923fi
3924
3925  STRIP=$ac_ct_STRIP
3926else
3927  STRIP="$ac_cv_prog_STRIP"
3928fi
3929
3930fi
3931INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3932
3933# We need awk for the "check" target.  The system "awk" is bad on
3934# some platforms.
3935# Always define AMTAR for backward compatibility.
3936
3937AMTAR=${AMTAR-"${am_missing_run}tar"}
3938
3939am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3940
3941
3942
3943
3944depcc="$CC"   am_compiler_list=
3945
3946echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3947echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3948if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3949  echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3952  # We make a subdir and do the tests there.  Otherwise we can end up
3953  # making bogus files that we don't know about and never remove.  For
3954  # instance it was reported that on HP-UX the gcc test will end up
3955  # making a dummy file named `D' -- because `-MD' means `put the output
3956  # in D'.
3957  mkdir conftest.dir
3958  # Copy depcomp to subdir because otherwise we won't find it if we're
3959  # using a relative directory.
3960  cp "$am_depcomp" conftest.dir
3961  cd conftest.dir
3962  # We will build objects and dependencies in a subdirectory because
3963  # it helps to detect inapplicable dependency modes.  For instance
3964  # both Tru64's cc and ICC support -MD to output dependencies as a
3965  # side effect of compilation, but ICC will put the dependencies in
3966  # the current directory while Tru64 will put them in the object
3967  # directory.
3968  mkdir sub
3969
3970  am_cv_CC_dependencies_compiler_type=none
3971  if test "$am_compiler_list" = ""; then
3972     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3973  fi
3974  for depmode in $am_compiler_list; do
3975    # Setup a source with many dependencies, because some compilers
3976    # like to wrap large dependency lists on column 80 (with \), and
3977    # we should not choose a depcomp mode which is confused by this.
3978    #
3979    # We need to recreate these files for each test, as the compiler may
3980    # overwrite some of them when testing with obscure command lines.
3981    # This happens at least with the AIX C compiler.
3982    : > sub/conftest.c
3983    for i in 1 2 3 4 5 6; do
3984      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3985      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3986      # Solaris 8's {/usr,}/bin/sh.
3987      touch sub/conftst$i.h
3988    done
3989    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3990
3991    case $depmode in
3992    nosideeffect)
3993      # after this tag, mechanisms are not by side-effect, so they'll
3994      # only be used when explicitly requested
3995      if test "x$enable_dependency_tracking" = xyes; then
3996        continue
3997      else
3998        break
3999      fi
4000      ;;
4001    none) break ;;
4002    esac
4003    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4004    # mode.  It turns out that the SunPro C++ compiler does not properly
4005    # handle `-M -o', and we need to detect this.
4006    if depmode=$depmode \
4007       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4008       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4009       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4010         >/dev/null 2>conftest.err &&
4011       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4012       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4013       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4014      # icc doesn't choke on unknown options, it will just issue warnings
4015      # or remarks (even with -Werror).  So we grep stderr for any message
4016      # that says an option was ignored or not supported.
4017      # When given -MP, icc 7.0 and 7.1 complain thusly:
4018      #   icc: Command line warning: ignoring option '-M'; no argument required
4019      # The diagnosis changed in icc 8.0:
4020      #   icc: Command line remark: option '-MP' not supported
4021      if (grep 'ignoring option' conftest.err ||
4022          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4023        am_cv_CC_dependencies_compiler_type=$depmode
4024        break
4025      fi
4026    fi
4027  done
4028
4029  cd ..
4030  rm -rf conftest.dir
4031else
4032  am_cv_CC_dependencies_compiler_type=none
4033fi
4034
4035fi
4036echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4037echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4038CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4039
4040
4041
4042if
4043  test "x$enable_dependency_tracking" != xno \
4044  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4045  am__fastdepCC_TRUE=
4046  am__fastdepCC_FALSE='#'
4047else
4048  am__fastdepCC_TRUE='#'
4049  am__fastdepCC_FALSE=
4050fi
4051
4052
4053
4054echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4055echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4056    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4057if test "${enable_maintainer_mode+set}" = set; then
4058  enableval="$enable_maintainer_mode"
4059  USE_MAINTAINER_MODE=$enableval
4060else
4061  USE_MAINTAINER_MODE=no
4062fi;
4063  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4064echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4065
4066
4067if test $USE_MAINTAINER_MODE = yes; then
4068  MAINTAINER_MODE_TRUE=
4069  MAINTAINER_MODE_FALSE='#'
4070else
4071  MAINTAINER_MODE_TRUE='#'
4072  MAINTAINER_MODE_FALSE=
4073fi
4074
4075  MAINT=$MAINTAINER_MODE_TRUE
4076
4077
4078
4079coin_have_externals=no
4080if test "$enable_maintainer_mode" = yes; then
4081
4082  # If maintainer mode is chosen, we make sure that the correct versions
4083  # of the tools are used, and that we know where libtool.m4 is (to
4084  # recreate acinclude.m4)
4085
4086
4087  LIBTOOLM4=
4088  # Normally, $HOME
4089  AUTOTOOLS_DFLT=$HOME
4090
4091  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4092echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4093if test "${ac_cv_use_correct_autotools+set}" = set; then
4094  echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096  ac_cv_use_correct_autotools=check
4097fi
4098echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4099echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4100
4101  if test $ac_cv_use_correct_autotools = check; then
4102    ac_cv_use_correct_autotools=yes
4103    # Check if we have autoconf
4104    # Extract the first word of "autoconf", so it can be a program name with args.
4105set dummy autoconf; ac_word=$2
4106echo "$as_me:$LINENO: checking for $ac_word" >&5
4107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4108if test "${ac_cv_prog_have_autoconf+set}" = set; then
4109  echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111  if test -n "$have_autoconf"; then
4112  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4113else
4114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115for as_dir in $PATH
4116do
4117  IFS=$as_save_IFS
4118  test -z "$as_dir" && as_dir=.
4119  for ac_exec_ext in '' $ac_executable_extensions; do
4120  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4121    ac_cv_prog_have_autoconf="yes"
4122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123    break 2
4124  fi
4125done
4126done
4127
4128  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4129fi
4130fi
4131have_autoconf=$ac_cv_prog_have_autoconf
4132if test -n "$have_autoconf"; then
4133  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4134echo "${ECHO_T}$have_autoconf" >&6
4135else
4136  echo "$as_me:$LINENO: result: no" >&5
4137echo "${ECHO_T}no" >&6
4138fi
4139
4140    if test $have_autoconf = no; then
4141      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4142echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4143   { (exit 1); exit 1; }; }
4144    fi
4145
4146    # Check whether autoconf is the correct version
4147    correct_version='2.59'
4148    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4149    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4150echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4151    autoconf --version > confauto.out 2>&1
4152    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4153      echo "$as_me:$LINENO: result: yes" >&5
4154echo "${ECHO_T}yes" >&6
4155    else
4156      rm -f confauto.out
4157      echo "$as_me:$LINENO: result: no" >&5
4158echo "${ECHO_T}no" >&6
4159      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4160echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4161   { (exit 1); exit 1; }; }
4162    fi
4163    rm -f confauto.out
4164
4165    # Check if the executable autoconf is picked up from the correct location
4166    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4167echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4168    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4169    autoconf_dir=`cd $autoconf_dir; pwd`
4170    if test x$AUTOTOOLS_DIR = x; then
4171      want_dir=$AUTOTOOLS_DFLT/bin
4172    else
4173      want_dir=$AUTOTOOLS_DIR/bin
4174    fi
4175    if test $autoconf_dir = `cd $want_dir; pwd`; then
4176      echo "$as_me:$LINENO: result: yes" >&5
4177echo "${ECHO_T}yes" >&6
4178    else
4179      rm -f confauto.out
4180      echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6
4182      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4183echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4184   { (exit 1); exit 1; }; }
4185    fi
4186
4187    # Check if we have automake
4188    # Extract the first word of "automake", so it can be a program name with args.
4189set dummy automake; ac_word=$2
4190echo "$as_me:$LINENO: checking for $ac_word" >&5
4191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4192if test "${ac_cv_prog_have_automake+set}" = set; then
4193  echo $ECHO_N "(cached) $ECHO_C" >&6
4194else
4195  if test -n "$have_automake"; then
4196  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4197else
4198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201  IFS=$as_save_IFS
4202  test -z "$as_dir" && as_dir=.
4203  for ac_exec_ext in '' $ac_executable_extensions; do
4204  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4205    ac_cv_prog_have_automake="yes"
4206    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4207    break 2
4208  fi
4209done
4210done
4211
4212  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4213fi
4214fi
4215have_automake=$ac_cv_prog_have_automake
4216if test -n "$have_automake"; then
4217  echo "$as_me:$LINENO: result: $have_automake" >&5
4218echo "${ECHO_T}$have_automake" >&6
4219else
4220  echo "$as_me:$LINENO: result: no" >&5
4221echo "${ECHO_T}no" >&6
4222fi
4223
4224    if test $have_automake = no; then
4225      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4226echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4227   { (exit 1); exit 1; }; }
4228    fi
4229
4230    # Check whether automake is the correct version
4231    correct_version='1.9.6'
4232    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4233    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4234echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4235    automake --version > confauto.out 2>&1
4236    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4237      echo "$as_me:$LINENO: result: yes" >&5
4238echo "${ECHO_T}yes" >&6
4239    else
4240      rm -f confauto.out
4241      echo "$as_me:$LINENO: result: no" >&5
4242echo "${ECHO_T}no" >&6
4243      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4244echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4245   { (exit 1); exit 1; }; }
4246    fi
4247    rm -f confauto.out
4248
4249    # Check if the executable automake is picked up from the correct location
4250    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4251echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4252    automake_dir=`which automake | sed -e 's=/automake=='`
4253    automake_dir=`cd $automake_dir; pwd`
4254    if test x$AUTOTOOLS_DIR = x; then
4255      want_dir=$AUTOTOOLS_DFLT/bin
4256    else
4257      want_dir=$AUTOTOOLS_DIR/bin
4258    fi
4259    if test $automake_dir = `cd $want_dir; pwd`; then
4260      echo "$as_me:$LINENO: result: yes" >&5
4261echo "${ECHO_T}yes" >&6
4262    else
4263      rm -f confauto.out
4264      echo "$as_me:$LINENO: result: no" >&5
4265echo "${ECHO_T}no" >&6
4266      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4267echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4268   { (exit 1); exit 1; }; }
4269    fi
4270
4271    # Check if this is the correct version of libtool (with escaped dots)
4272    if test x$AUTOTOOLS_DIR = x; then
4273      want_dir=$AUTOTOOLS_DFLT/share
4274    else
4275      want_dir=$AUTOTOOLS_DIR/share
4276    fi
4277    correct_version='1.5.22'
4278    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4279    if test -r $want_dir/libtool/ltmain.sh; then
4280  have_ltmain=yes
4281  :
4282else
4283  have_ltmain=no
4284  :
4285fi
4286
4287    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4288echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4289    if test $have_ltmain = yes; then
4290    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4291        echo "$as_me:$LINENO: result: yes" >&5
4292echo "${ECHO_T}yes" >&6
4293      else
4294        echo "$as_me:$LINENO: result: no" >&5
4295echo "${ECHO_T}no" >&6
4296        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4297echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4298   { (exit 1); exit 1; }; }
4299      fi
4300    else
4301      echo "$as_me:$LINENO: result: no" >&5
4302echo "${ECHO_T}no" >&6
4303      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4304echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4305   { (exit 1); exit 1; }; }
4306    fi
4307  fi
4308
4309  # Check if we can find the libtool file
4310  if test x$AUTOTOOLS_DIR = x; then
4311    want_dir=$AUTOTOOLS_DFLT/share
4312  else
4313    want_dir=$AUTOTOOLS_DIR/share
4314  fi
4315  if test -r $want_dir/aclocal/libtool.m4; then
4316  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4317  :
4318else
4319  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4320echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4321   { (exit 1); exit 1; }; }
4322  :
4323fi
4324
4325
4326  # Check if we have an Externals file
4327  if test -r $srcdir/Externals; then
4328    coin_have_externals=yes
4329  fi
4330  # Check if subversion is installed and understands https
4331  # Extract the first word of "svn", so it can be a program name with args.
4332set dummy svn; ac_word=$2
4333echo "$as_me:$LINENO: checking for $ac_word" >&5
4334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4335if test "${ac_cv_prog_have_svn+set}" = set; then
4336  echo $ECHO_N "(cached) $ECHO_C" >&6
4337else
4338  if test -n "$have_svn"; then
4339  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4340else
4341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH
4343do
4344  IFS=$as_save_IFS
4345  test -z "$as_dir" && as_dir=.
4346  for ac_exec_ext in '' $ac_executable_extensions; do
4347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4348    ac_cv_prog_have_svn="yes"
4349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350    break 2
4351  fi
4352done
4353done
4354
4355  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4356fi
4357fi
4358have_svn=$ac_cv_prog_have_svn
4359if test -n "$have_svn"; then
4360  echo "$as_me:$LINENO: result: $have_svn" >&5
4361echo "${ECHO_T}$have_svn" >&6
4362else
4363  echo "$as_me:$LINENO: result: no" >&5
4364echo "${ECHO_T}no" >&6
4365fi
4366
4367  if test x$have_svn = xyes; then
4368    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4369echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4370if test "${ac_cv_svn_understands_https+set}" = set; then
4371  echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373  svn --version > confauto.out 2>&1
4374                    if $EGREP https confauto.out >/dev/null 2>&1; then
4375                      ac_cv_svn_understands_https=yes
4376                    else
4377                      ac_cv_svn_understands_https=no
4378                      have_svn=no
4379                      ac_cv_prog_have_svn=no
4380                    fi
4381                    rm -f confauto.out
4382fi
4383echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4384echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4385  fi
4386
4387  # Find the location of the BuildTools directory
4388  BUILDTOOLSDIR=
4389  if test -r $srcdir/BuildTools/coin.m4; then
4390    BUILDTOOLSDIR=$srcdir/BuildTools
4391  else
4392    if test -r $srcdir/../BuildTools/coin.m4; then
4393      BUILDTOOLSDIR=$srcdir/../BuildTools
4394    else
4395      if test -r $srcdir/../../BuildTools/coin.m4; then
4396        BUILDTOOLSDIR=$srcdir/../../BuildTools
4397      else
4398        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4399echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4400   { (exit 1); exit 1; }; }
4401      fi
4402    fi
4403  fi
4404
4405
4406  # The following variable is set to the name of the directory where
4407  # the autotool scripts are located
4408
4409  AUX_DIR=$ac_aux_dir
4410fi
4411
4412# helpful variable for the base directory of this package
4413abs_source_dir=`cd $srcdir; pwd`
4414
4415
4416# Stuff for example Makefiles
4417if test x$prefix = xNONE; then
4418  full_prefix=$ac_default_prefix
4419else
4420  full_prefix=$prefix
4421fi
4422full_prefix=`cd $full_prefix ; pwd`
4423
4424abs_lib_dir=$full_prefix/lib
4425
4426abs_include_dir=$full_prefix/include
4427
4428abs_bin_dir=$full_prefix/bin
4429
4430
4431
4432if test $coin_have_externals = yes && test x$have_svn = xyes; then
4433  HAVE_EXTERNALS_TRUE=
4434  HAVE_EXTERNALS_FALSE='#'
4435else
4436  HAVE_EXTERNALS_TRUE='#'
4437  HAVE_EXTERNALS_FALSE=
4438fi
4439
4440
4441# AC_MSG_NOTICE([End automake initialisation.])
4442
4443
4444
4445LIBTOOL=
4446if test -r ../libtool; then
4447  coin_config_dir=..
4448  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4449fi
4450if test "x$LIBTOOL" = x; then
4451  if test -r ../../libtool; then
4452    coin_config_dir=../..
4453    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4454  fi
4455fi
4456
4457if test "x$LIBTOOL" = x; then
4458# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4459  # Stuff for libtool
4460  # Check whether --enable-shared or --disable-shared was given.
4461if test "${enable_shared+set}" = set; then
4462  enableval="$enable_shared"
4463  p=${PACKAGE-default}
4464    case $enableval in
4465    yes) enable_shared=yes ;;
4466    no) enable_shared=no ;;
4467    *)
4468      enable_shared=no
4469      # Look at the argument we got.  We use all the common list separators.
4470      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4471      for pkg in $enableval; do
4472        IFS="$lt_save_ifs"
4473        if test "X$pkg" = "X$p"; then
4474          enable_shared=yes
4475        fi
4476      done
4477      IFS="$lt_save_ifs"
4478      ;;
4479    esac
4480else
4481  enable_shared=yes
4482fi;
4483
4484# Check whether --enable-fast-install or --disable-fast-install was given.
4485if test "${enable_fast_install+set}" = set; then
4486  enableval="$enable_fast_install"
4487  p=${PACKAGE-default}
4488    case $enableval in
4489    yes) enable_fast_install=yes ;;
4490    no) enable_fast_install=no ;;
4491    *)
4492      enable_fast_install=no
4493      # Look at the argument we got.  We use all the common list separators.
4494      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4495      for pkg in $enableval; do
4496        IFS="$lt_save_ifs"
4497        if test "X$pkg" = "X$p"; then
4498          enable_fast_install=yes
4499        fi
4500      done
4501      IFS="$lt_save_ifs"
4502      ;;
4503    esac
4504else
4505  enable_fast_install=yes
4506fi;
4507
4508echo "$as_me:$LINENO: checking host system type" >&5
4509echo $ECHO_N "checking host system type... $ECHO_C" >&6
4510if test "${ac_cv_host+set}" = set; then
4511  echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513  ac_cv_host_alias=$host_alias
4514test -z "$ac_cv_host_alias" &&
4515  ac_cv_host_alias=$ac_cv_build_alias
4516ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4517  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4518echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4519   { (exit 1); exit 1; }; }
4520
4521fi
4522echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4523echo "${ECHO_T}$ac_cv_host" >&6
4524host=$ac_cv_host
4525host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4526host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4527host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4528
4529
4530echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4531echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4532if test "${lt_cv_path_SED+set}" = set; then
4533  echo $ECHO_N "(cached) $ECHO_C" >&6
4534else
4535  # Loop through the user's path and test for sed and gsed.
4536# Then use that list of sed's as ones to test for truncation.
4537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540  IFS=$as_save_IFS
4541  test -z "$as_dir" && as_dir=.
4542  for lt_ac_prog in sed gsed; do
4543    for ac_exec_ext in '' $ac_executable_extensions; do
4544      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4545        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4546      fi
4547    done
4548  done
4549done
4550lt_ac_max=0
4551lt_ac_count=0
4552# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4553# along with /bin/sed that truncates output.
4554for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4555  test ! -f $lt_ac_sed && continue
4556  cat /dev/null > conftest.in
4557  lt_ac_count=0
4558  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4559  # Check for GNU sed and select it if it is found.
4560  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4561    lt_cv_path_SED=$lt_ac_sed
4562    break
4563  fi
4564  while true; do
4565    cat conftest.in conftest.in >conftest.tmp
4566    mv conftest.tmp conftest.in
4567    cp conftest.in conftest.nl
4568    echo >>conftest.nl
4569    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4570    cmp -s conftest.out conftest.nl || break
4571    # 10000 chars as input seems more than enough
4572    test $lt_ac_count -gt 10 && break
4573    lt_ac_count=`expr $lt_ac_count + 1`
4574    if test $lt_ac_count -gt $lt_ac_max; then
4575      lt_ac_max=$lt_ac_count
4576      lt_cv_path_SED=$lt_ac_sed
4577    fi
4578  done
4579done
4580
4581fi
4582
4583SED=$lt_cv_path_SED
4584echo "$as_me:$LINENO: result: $SED" >&5
4585echo "${ECHO_T}$SED" >&6
4586
4587
4588# Check whether --with-gnu-ld or --without-gnu-ld was given.
4589if test "${with_gnu_ld+set}" = set; then
4590  withval="$with_gnu_ld"
4591  test "$withval" = no || with_gnu_ld=yes
4592else
4593  with_gnu_ld=no
4594fi;
4595ac_prog=ld
4596if test "$GCC" = yes; then
4597  # Check if gcc -print-prog-name=ld gives a path.
4598  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4599echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4600  case $host in
4601  *-*-mingw*)
4602    # gcc leaves a trailing carriage return which upsets mingw
4603    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4604  *)
4605    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4606  esac
4607  case $ac_prog in
4608    # Accept absolute paths.
4609    [\\/]* | ?:[\\/]*)
4610      re_direlt='/[^/][^/]*/\.\./'
4611      # Canonicalize the pathname of ld
4612      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4613      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4614        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4615      done
4616      test -z "$LD" && LD="$ac_prog"
4617      ;;
4618  "")
4619    # If it fails, then pretend we aren't using GCC.
4620    ac_prog=ld
4621    ;;
4622  *)
4623    # If it is relative, then search for the first ld in PATH.
4624    with_gnu_ld=unknown
4625    ;;
4626  esac
4627elif test "$with_gnu_ld" = yes; then
4628  echo "$as_me:$LINENO: checking for GNU ld" >&5
4629echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4630else
4631  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4632echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4633fi
4634if test "${lt_cv_path_LD+set}" = set; then
4635  echo $ECHO_N "(cached) $ECHO_C" >&6
4636else
4637  if test -z "$LD"; then
4638  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4639  for ac_dir in $PATH; do
4640    IFS="$lt_save_ifs"
4641    test -z "$ac_dir" && ac_dir=.
4642    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4643      lt_cv_path_LD="$ac_dir/$ac_prog"
4644      # Check to see if the program is GNU ld.  I'd rather use --version,
4645      # but apparently some variants of GNU ld only accept -v.
4646      # Break only if it was the GNU/non-GNU ld that we prefer.
4647      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4648      *GNU* | *'with BFD'*)
4649        test "$with_gnu_ld" != no && break
4650        ;;
4651      *)
4652        test "$with_gnu_ld" != yes && break
4653        ;;
4654      esac
4655    fi
4656  done
4657  IFS="$lt_save_ifs"
4658else
4659  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4660fi
4661fi
4662
4663LD="$lt_cv_path_LD"
4664if test -n "$LD"; then
4665  echo "$as_me:$LINENO: result: $LD" >&5
4666echo "${ECHO_T}$LD" >&6
4667else
4668  echo "$as_me:$LINENO: result: no" >&5
4669echo "${ECHO_T}no" >&6
4670fi
4671test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4672echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4673   { (exit 1); exit 1; }; }
4674echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4675echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4676if test "${lt_cv_prog_gnu_ld+set}" = set; then
4677  echo $ECHO_N "(cached) $ECHO_C" >&6
4678else
4679  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4680case `$LD -v 2>&1 </dev/null` in
4681*GNU* | *'with BFD'*)
4682  lt_cv_prog_gnu_ld=yes
4683  ;;
4684*)
4685  lt_cv_prog_gnu_ld=no
4686  ;;
4687esac
4688fi
4689echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4690echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4691with_gnu_ld=$lt_cv_prog_gnu_ld
4692
4693
4694echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4695echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4696if test "${lt_cv_ld_reload_flag+set}" = set; then
4697  echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699  lt_cv_ld_reload_flag='-r'
4700fi
4701echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4702echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4703reload_flag=$lt_cv_ld_reload_flag
4704case $reload_flag in
4705"" | " "*) ;;
4706*) reload_flag=" $reload_flag" ;;
4707esac
4708reload_cmds='$LD$reload_flag -o $output$reload_objs'
4709case $host_os in
4710  darwin*)
4711    if test "$GCC" = yes; then
4712      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4713    else
4714      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4715    fi
4716    ;;
4717esac
4718
4719echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4720echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4721if test "${lt_cv_path_NM+set}" = set; then
4722  echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724  if test -n "$NM"; then
4725  # Let the user override the test.
4726  lt_cv_path_NM="$NM"
4727else
4728  lt_nm_to_check="${ac_tool_prefix}nm"
4729  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4730    lt_nm_to_check="$lt_nm_to_check nm"
4731  fi
4732  for lt_tmp_nm in $lt_nm_to_check; do
4733    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4734    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4735      IFS="$lt_save_ifs"
4736      test -z "$ac_dir" && ac_dir=.
4737      tmp_nm="$ac_dir/$lt_tmp_nm"
4738      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4739        # Check to see if the nm accepts a BSD-compat flag.
4740        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4741        #   nm: unknown option "B" ignored
4742        # Tru64's nm complains that /dev/null is an invalid object file
4743        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4744        */dev/null* | *'Invalid file or object type'*)
4745          lt_cv_path_NM="$tmp_nm -B"
4746          break
4747          ;;
4748        *)
4749          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4750          */dev/null*)
4751            lt_cv_path_NM="$tmp_nm -p"
4752            break
4753            ;;
4754          *)
4755            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4756            continue # so that we can try to find one that supports BSD flags
4757            ;;
4758          esac
4759          ;;
4760        esac
4761      fi
4762    done
4763    IFS="$lt_save_ifs"
4764  done
4765  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4766fi
4767fi
4768echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4769echo "${ECHO_T}$lt_cv_path_NM" >&6
4770NM="$lt_cv_path_NM"
4771
4772echo "$as_me:$LINENO: checking whether ln -s works" >&5
4773echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4774LN_S=$as_ln_s
4775if test "$LN_S" = "ln -s"; then
4776  echo "$as_me:$LINENO: result: yes" >&5
4777echo "${ECHO_T}yes" >&6
4778else
4779  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4780echo "${ECHO_T}no, using $LN_S" >&6
4781fi
4782
4783echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4784echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4785if test "${lt_cv_deplibs_check_method+set}" = set; then
4786  echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788  lt_cv_file_magic_cmd='$MAGIC_CMD'
4789lt_cv_file_magic_test_file=
4790lt_cv_deplibs_check_method='unknown'
4791# Need to set the preceding variable on all platforms that support
4792# interlibrary dependencies.
4793# 'none' -- dependencies not supported.
4794# `unknown' -- same as none, but documents that we really don't know.
4795# 'pass_all' -- all dependencies passed with no checks.
4796# 'test_compile' -- check by making test program.
4797# 'file_magic [[regex]]' -- check by looking for files in library path
4798# which responds to the $file_magic_cmd with a given extended regex.
4799# If you have `file' or equivalent on your system and you're not sure
4800# whether `pass_all' will *always* work, you probably want this one.
4801
4802case $host_os in
4803aix4* | aix5*)
4804  lt_cv_deplibs_check_method=pass_all
4805  ;;
4806
4807beos*)
4808  lt_cv_deplibs_check_method=pass_all
4809  ;;
4810
4811bsdi[45]*)
4812  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4813  lt_cv_file_magic_cmd='/usr/bin/file -L'
4814  lt_cv_file_magic_test_file=/shlib/libc.so
4815  ;;
4816
4817cygwin*)
4818  # func_win32_libid is a shell function defined in ltmain.sh
4819  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4820  lt_cv_file_magic_cmd='func_win32_libid'
4821  ;;
4822
4823mingw* | pw32*)
4824  # Base MSYS/MinGW do not provide the 'file' command needed by
4825  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4826  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4827  lt_cv_file_magic_cmd='$OBJDUMP -f'
4828  ;;
4829
4830darwin* | rhapsody*)
4831  lt_cv_deplibs_check_method=pass_all
4832  ;;
4833
4834freebsd* | kfreebsd*-gnu | dragonfly*)
4835  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4836    case $host_cpu in
4837    i*86 )
4838      # Not sure whether the presence of OpenBSD here was a mistake.
4839      # Let's accept both of them until this is cleared up.
4840      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4841      lt_cv_file_magic_cmd=/usr/bin/file
4842      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4843      ;;
4844    esac
4845  else
4846    lt_cv_deplibs_check_method=pass_all
4847  fi
4848  ;;
4849
4850gnu*)
4851  lt_cv_deplibs_check_method=pass_all
4852  ;;
4853
4854hpux10.20* | hpux11*)
4855  lt_cv_file_magic_cmd=/usr/bin/file
4856  case $host_cpu in
4857  ia64*)
4858    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4859    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4860    ;;
4861  hppa*64*)
4862    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]'
4863    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4864    ;;
4865  *)
4866    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4867    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4868    ;;
4869  esac
4870  ;;
4871
4872interix3*)
4873  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4874  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4875  ;;
4876
4877irix5* | irix6* | nonstopux*)
4878  case $LD in
4879  *-32|*"-32 ") libmagic=32-bit;;
4880  *-n32|*"-n32 ") libmagic=N32;;
4881  *-64|*"-64 ") libmagic=64-bit;;
4882  *) libmagic=never-match;;
4883  esac
4884  lt_cv_deplibs_check_method=pass_all
4885  ;;
4886
4887# This must be Linux ELF.
4888linux*)
4889  lt_cv_deplibs_check_method=pass_all
4890  ;;
4891
4892netbsd*)
4893  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4894    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4895  else
4896    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4897  fi
4898  ;;
4899
4900newos6*)
4901  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4902  lt_cv_file_magic_cmd=/usr/bin/file
4903  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4904  ;;
4905
4906nto-qnx*)
4907  lt_cv_deplibs_check_method=unknown
4908  ;;
4909
4910openbsd*)
4911  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4912    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4913  else
4914    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4915  fi
4916  ;;
4917
4918osf3* | osf4* | osf5*)
4919  lt_cv_deplibs_check_method=pass_all
4920  ;;
4921
4922solaris*)
4923  lt_cv_deplibs_check_method=pass_all
4924  ;;
4925
4926sysv4 | sysv4.3*)
4927  case $host_vendor in
4928  motorola)
4929    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]'
4930    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4931    ;;
4932  ncr)
4933    lt_cv_deplibs_check_method=pass_all
4934    ;;
4935  sequent)
4936    lt_cv_file_magic_cmd='/bin/file'
4937    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4938    ;;
4939  sni)
4940    lt_cv_file_magic_cmd='/bin/file'
4941    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4942    lt_cv_file_magic_test_file=/lib/libc.so
4943    ;;
4944  siemens)
4945    lt_cv_deplibs_check_method=pass_all
4946    ;;
4947  pc)
4948    lt_cv_deplibs_check_method=pass_all
4949    ;;
4950  esac
4951  ;;
4952
4953sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4954  lt_cv_deplibs_check_method=pass_all
4955  ;;
4956esac
4957
4958fi
4959echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4960echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4961file_magic_cmd=$lt_cv_file_magic_cmd
4962deplibs_check_method=$lt_cv_deplibs_check_method
4963test -z "$deplibs_check_method" && deplibs_check_method=unknown
4964
4965
4966
4967
4968# If no C compiler was specified, use CC.
4969LTCC=${LTCC-"$CC"}
4970
4971# If no C compiler flags were specified, use CFLAGS.
4972LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4973
4974# Allow CC to be a program name with arguments.
4975compiler=$CC
4976
4977# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4978if test "${enable_libtool_lock+set}" = set; then
4979  enableval="$enable_libtool_lock"
4980
4981fi;
4982test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4983
4984# Some flags need to be propagated to the compiler or linker for good
4985# libtool support.
4986case $host in
4987ia64-*-hpux*)
4988  # Find out which ABI we are using.
4989  echo 'int i;' > conftest.$ac_ext
4990  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991  (eval $ac_compile) 2>&5
4992  ac_status=$?
4993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994  (exit $ac_status); }; then
4995    case `/usr/bin/file conftest.$ac_objext` in
4996    *ELF-32*)
4997      HPUX_IA64_MODE="32"
4998      ;;
4999    *ELF-64*)
5000      HPUX_IA64_MODE="64"
5001      ;;
5002    esac
5003  fi
5004  rm -rf conftest*
5005  ;;
5006*-*-irix6*)
5007  # Find out which ABI we are using.
5008  echo '#line 5008 "configure"' > conftest.$ac_ext
5009  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010  (eval $ac_compile) 2>&5
5011  ac_status=$?
5012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013  (exit $ac_status); }; then
5014   if test "$lt_cv_prog_gnu_ld" = yes; then
5015    case `/usr/bin/file conftest.$ac_objext` in
5016    *32-bit*)
5017      LD="${LD-ld} -melf32bsmip"
5018      ;;
5019    *N32*)
5020      LD="${LD-ld} -melf32bmipn32"
5021      ;;
5022    *64-bit*)
5023      LD="${LD-ld} -melf64bmip"
5024      ;;
5025    esac
5026   else
5027    case `/usr/bin/file conftest.$ac_objext` in
5028    *32-bit*)
5029      LD="${LD-ld} -32"
5030      ;;
5031    *N32*)
5032      LD="${LD-ld} -n32"
5033      ;;
5034    *64-bit*)
5035      LD="${LD-ld} -64"
5036      ;;
5037    esac
5038   fi
5039  fi
5040  rm -rf conftest*
5041  ;;
5042
5043x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5044  # Find out which ABI we are using.
5045  echo 'int i;' > conftest.$ac_ext
5046  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5047  (eval $ac_compile) 2>&5
5048  ac_status=$?
5049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050  (exit $ac_status); }; then
5051    case `/usr/bin/file conftest.o` in
5052    *32-bit*)
5053      case $host in
5054        x86_64-*linux*)
5055          LD="${LD-ld} -m elf_i386"
5056          ;;
5057        ppc64-*linux*|powerpc64-*linux*)
5058          LD="${LD-ld} -m elf32ppclinux"
5059          ;;
5060        s390x-*linux*)
5061          LD="${LD-ld} -m elf_s390"
5062          ;;
5063        sparc64-*linux*)
5064          LD="${LD-ld} -m elf32_sparc"
5065          ;;
5066      esac
5067      ;;
5068    *64-bit*)
5069      case $host in
5070        x86_64-*linux*)
5071          LD="${LD-ld} -m elf_x86_64"
5072          ;;
5073        ppc*-*linux*|powerpc*-*linux*)
5074          LD="${LD-ld} -m elf64ppc"
5075          ;;
5076        s390*-*linux*)
5077          LD="${LD-ld} -m elf64_s390"
5078          ;;
5079        sparc*-*linux*)
5080          LD="${LD-ld} -m elf64_sparc"
5081          ;;
5082      esac
5083      ;;
5084    esac
5085  fi
5086  rm -rf conftest*
5087  ;;
5088
5089*-*-sco3.2v5*)
5090  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5091  SAVE_CFLAGS="$CFLAGS"
5092  CFLAGS="$CFLAGS -belf"
5093  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5094echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5095if test "${lt_cv_cc_needs_belf+set}" = set; then
5096  echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098  ac_ext=c
5099ac_cpp='$CPP $CPPFLAGS'
5100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102ac_compiler_gnu=$ac_cv_c_compiler_gnu
5103
5104     cat >conftest.$ac_ext <<_ACEOF
5105/* confdefs.h.  */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h.  */
5110
5111int
5112main ()
5113{
5114
5115  ;
5116  return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext conftest$ac_exeext
5120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5121  (eval $ac_link) 2>conftest.er1
5122  ac_status=$?
5123  grep -v '^ *+' conftest.er1 >conftest.err
5124  rm -f conftest.er1
5125  cat conftest.err >&5
5126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127  (exit $ac_status); } &&
5128         { ac_try='test -z "$ac_c_werror_flag"
5129                         || test ! -s conftest.err'
5130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131  (eval $ac_try) 2>&5
5132  ac_status=$?
5133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134  (exit $ac_status); }; } &&
5135         { ac_try='test -s conftest$ac_exeext'
5136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137  (eval $ac_try) 2>&5
5138  ac_status=$?
5139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140  (exit $ac_status); }; }; then
5141  lt_cv_cc_needs_belf=yes
5142else
5143  echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
5146lt_cv_cc_needs_belf=no
5147fi
5148rm -f conftest.err conftest.$ac_objext \
5149      conftest$ac_exeext conftest.$ac_ext
5150     ac_ext=c
5151ac_cpp='$CPP $CPPFLAGS'
5152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155
5156fi
5157echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5158echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5159  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5160    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5161    CFLAGS="$SAVE_CFLAGS"
5162  fi
5163  ;;
5164sparc*-*solaris*)
5165  # Find out which ABI we are using.
5166  echo 'int i;' > conftest.$ac_ext
5167  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168  (eval $ac_compile) 2>&5
5169  ac_status=$?
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); }; then
5172    case `/usr/bin/file conftest.o` in
5173    *64-bit*)
5174      case $lt_cv_prog_gnu_ld in
5175      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5176      *)    LD="${LD-ld} -64" ;;
5177      esac
5178      ;;
5179    esac
5180  fi
5181  rm -rf conftest*
5182  ;;
5183
5184
5185esac
5186
5187need_locks="$enable_libtool_lock"
5188
5189
5190ac_ext=c
5191ac_cpp='$CPP $CPPFLAGS'
5192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5196echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5197# On Suns, sometimes $CPP names a directory.
5198if test -n "$CPP" && test -d "$CPP"; then
5199  CPP=
5200fi
5201if test -z "$CPP"; then
5202  if test "${ac_cv_prog_CPP+set}" = set; then
5203  echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205      # Double quotes because CPP needs to be expanded
5206    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5207    do
5208      ac_preproc_ok=false
5209for ac_c_preproc_warn_flag in '' yes
5210do
5211  # Use a header file that comes with gcc, so configuring glibc
5212  # with a fresh cross-compiler works.
5213  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214  # <limits.h> exists even on freestanding compilers.
5215  # On the NeXT, cc -E runs the code through the compiler's parser,
5216  # not just through cpp. "Syntax error" is here to catch this case.
5217  cat >conftest.$ac_ext <<_ACEOF
5218/* confdefs.h.  */
5219_ACEOF
5220cat confdefs.h >>conftest.$ac_ext
5221cat >>conftest.$ac_ext <<_ACEOF
5222/* end confdefs.h.  */
5223#ifdef __STDC__
5224# include <limits.h>
5225#else
5226# include <assert.h>
5227#endif
5228                     Syntax error
5229_ACEOF
5230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5231  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5232  ac_status=$?
5233  grep -v '^ *+' conftest.er1 >conftest.err
5234  rm -f conftest.er1
5235  cat conftest.err >&5
5236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237  (exit $ac_status); } >/dev/null; then
5238  if test -s conftest.err; then
5239    ac_cpp_err=$ac_c_preproc_warn_flag
5240    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5241  else
5242    ac_cpp_err=
5243  fi
5244else
5245  ac_cpp_err=yes
5246fi
5247if test -z "$ac_cpp_err"; then
5248  :
5249else
5250  echo "$as_me: failed program was:" >&5
5251sed 's/^/| /' conftest.$ac_ext >&5
5252
5253  # Broken: fails on valid input.
5254continue
5255fi
5256rm -f conftest.err conftest.$ac_ext
5257
5258  # OK, works on sane cases.  Now check whether non-existent headers
5259  # can be detected and how.
5260  cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h.  */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h.  */
5266#include <ac_nonexistent.h>
5267_ACEOF
5268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5270  ac_status=$?
5271  grep -v '^ *+' conftest.er1 >conftest.err
5272  rm -f conftest.er1
5273  cat conftest.err >&5
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); } >/dev/null; then
5276  if test -s conftest.err; then
5277    ac_cpp_err=$ac_c_preproc_warn_flag
5278    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279  else
5280    ac_cpp_err=
5281  fi
5282else
5283  ac_cpp_err=yes
5284fi
5285if test -z "$ac_cpp_err"; then
5286  # Broken: success on invalid input.
5287continue
5288else
5289  echo "$as_me: failed program was:" >&5
5290sed 's/^/| /' conftest.$ac_ext >&5
5291
5292  # Passes both tests.
5293ac_preproc_ok=:
5294break
5295fi
5296rm -f conftest.err conftest.$ac_ext
5297
5298done
5299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5300rm -f conftest.err conftest.$ac_ext
5301if $ac_preproc_ok; then
5302  break
5303fi
5304
5305    done
5306    ac_cv_prog_CPP=$CPP
5307
5308fi
5309  CPP=$ac_cv_prog_CPP
5310else
5311  ac_cv_prog_CPP=$CPP
5312fi
5313echo "$as_me:$LINENO: result: $CPP" >&5
5314echo "${ECHO_T}$CPP" >&6
5315ac_preproc_ok=false
5316for ac_c_preproc_warn_flag in '' yes
5317do
5318  # Use a header file that comes with gcc, so configuring glibc
5319  # with a fresh cross-compiler works.
5320  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5321  # <limits.h> exists even on freestanding compilers.
5322  # On the NeXT, cc -E runs the code through the compiler's parser,
5323  # not just through cpp. "Syntax error" is here to catch this case.
5324  cat >conftest.$ac_ext <<_ACEOF
5325/* confdefs.h.  */
5326_ACEOF
5327cat confdefs.h >>conftest.$ac_ext
5328cat >>conftest.$ac_ext <<_ACEOF
5329/* end confdefs.h.  */
5330#ifdef __STDC__
5331# include <limits.h>
5332#else
5333# include <assert.h>
5334#endif
5335                     Syntax error
5336_ACEOF
5337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5338  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5339  ac_status=$?
5340  grep -v '^ *+' conftest.er1 >conftest.err
5341  rm -f conftest.er1
5342  cat conftest.err >&5
5343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344  (exit $ac_status); } >/dev/null; then
5345  if test -s conftest.err; then
5346    ac_cpp_err=$ac_c_preproc_warn_flag
5347    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5348  else
5349    ac_cpp_err=
5350  fi
5351else
5352  ac_cpp_err=yes
5353fi
5354if test -z "$ac_cpp_err"; then
5355  :
5356else
5357  echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360  # Broken: fails on valid input.
5361continue
5362fi
5363rm -f conftest.err conftest.$ac_ext
5364
5365  # OK, works on sane cases.  Now check whether non-existent headers
5366  # can be detected and how.
5367  cat >conftest.$ac_ext <<_ACEOF
5368/* confdefs.h.  */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h.  */
5373#include <ac_nonexistent.h>
5374_ACEOF
5375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5377  ac_status=$?
5378  grep -v '^ *+' conftest.er1 >conftest.err
5379  rm -f conftest.er1
5380  cat conftest.err >&5
5381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382  (exit $ac_status); } >/dev/null; then
5383  if test -s conftest.err; then
5384    ac_cpp_err=$ac_c_preproc_warn_flag
5385    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5386  else
5387    ac_cpp_err=
5388  fi
5389else
5390  ac_cpp_err=yes
5391fi
5392if test -z "$ac_cpp_err"; then
5393  # Broken: success on invalid input.
5394continue
5395else
5396  echo "$as_me: failed program was:" >&5
5397sed 's/^/| /' conftest.$ac_ext >&5
5398
5399  # Passes both tests.
5400ac_preproc_ok=:
5401break
5402fi
5403rm -f conftest.err conftest.$ac_ext
5404
5405done
5406# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5407rm -f conftest.err conftest.$ac_ext
5408if $ac_preproc_ok; then
5409  :
5410else
5411  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5412See \`config.log' for more details." >&5
5413echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5414See \`config.log' for more details." >&2;}
5415   { (exit 1); exit 1; }; }
5416fi
5417
5418ac_ext=c
5419ac_cpp='$CPP $CPPFLAGS'
5420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5422ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423
5424
5425echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5426echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5427if test "${ac_cv_header_stdc+set}" = set; then
5428  echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430  cat >conftest.$ac_ext <<_ACEOF
5431/* confdefs.h.  */
5432_ACEOF
5433cat confdefs.h >>conftest.$ac_ext
5434cat >>conftest.$ac_ext <<_ACEOF
5435/* end confdefs.h.  */
5436#include <stdlib.h>
5437#include <stdarg.h>
5438#include <string.h>
5439#include <float.h>
5440
5441int
5442main ()
5443{
5444
5445  ;
5446  return 0;
5447}
5448_ACEOF
5449rm -f conftest.$ac_objext
5450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451  (eval $ac_compile) 2>conftest.er1
5452  ac_status=$?
5453  grep -v '^ *+' conftest.er1 >conftest.err
5454  rm -f conftest.er1
5455  cat conftest.err >&5
5456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457  (exit $ac_status); } &&
5458         { ac_try='test -z "$ac_c_werror_flag"
5459                         || test ! -s conftest.err'
5460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461  (eval $ac_try) 2>&5
5462  ac_status=$?
5463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464  (exit $ac_status); }; } &&
5465         { ac_try='test -s conftest.$ac_objext'
5466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467  (eval $ac_try) 2>&5
5468  ac_status=$?
5469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); }; }; then
5471  ac_cv_header_stdc=yes
5472else
5473  echo "$as_me: failed program was:" >&5
5474sed 's/^/| /' conftest.$ac_ext >&5
5475
5476ac_cv_header_stdc=no
5477fi
5478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5479
5480if test $ac_cv_header_stdc = yes; then
5481  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5482  cat >conftest.$ac_ext <<_ACEOF
5483/* confdefs.h.  */
5484_ACEOF
5485cat confdefs.h >>conftest.$ac_ext
5486cat >>conftest.$ac_ext <<_ACEOF
5487/* end confdefs.h.  */
5488#include <string.h>
5489
5490_ACEOF
5491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5492  $EGREP "memchr" >/dev/null 2>&1; then
5493  :
5494else
5495  ac_cv_header_stdc=no
5496fi
5497rm -f conftest*
5498
5499fi
5500
5501if test $ac_cv_header_stdc = yes; then
5502  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5503  cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h.  */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h.  */
5509#include <stdlib.h>
5510
5511_ACEOF
5512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513  $EGREP "free" >/dev/null 2>&1; then
5514  :
5515else
5516  ac_cv_header_stdc=no
5517fi
5518rm -f conftest*
5519
5520fi
5521
5522if test $ac_cv_header_stdc = yes; then
5523  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5524  if test "$cross_compiling" = yes; then
5525  :
5526else
5527  cat >conftest.$ac_ext <<_ACEOF
5528/* confdefs.h.  */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h.  */
5533#include <ctype.h>
5534#if ((' ' & 0x0FF) == 0x020)
5535# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5536# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5537#else
5538# define ISLOWER(c) \
5539                   (('a' <= (c) && (c) <= 'i') \
5540                     || ('j' <= (c) && (c) <= 'r') \
5541                     || ('s' <= (c) && (c) <= 'z'))
5542# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5543#endif
5544
5545#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5546int
5547main ()
5548{
5549  int i;
5550  for (i = 0; i < 256; i++)
5551    if (XOR (islower (i), ISLOWER (i))
5552        || toupper (i) != TOUPPER (i))
5553      exit(2);
5554  exit (0);
5555}
5556_ACEOF
5557rm -f conftest$ac_exeext
5558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5559  (eval $ac_link) 2>&5
5560  ac_status=$?
5561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564  (eval $ac_try) 2>&5
5565  ac_status=$?
5566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567  (exit $ac_status); }; }; then
5568  :
5569else
5570  echo "$as_me: program exited with status $ac_status" >&5
5571echo "$as_me: failed program was:" >&5
5572sed 's/^/| /' conftest.$ac_ext >&5
5573
5574( exit $ac_status )
5575ac_cv_header_stdc=no
5576fi
5577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5578fi
5579fi
5580fi
5581echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5582echo "${ECHO_T}$ac_cv_header_stdc" >&6
5583if test $ac_cv_header_stdc = yes; then
5584
5585cat >>confdefs.h <<\_ACEOF
5586#define STDC_HEADERS 1
5587_ACEOF
5588
5589fi
5590
5591# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5602                  inttypes.h stdint.h unistd.h
5603do
5604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5605echo "$as_me:$LINENO: checking for $ac_header" >&5
5606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5607if eval "test \"\${$as_ac_Header+set}\" = set"; then
5608  echo $ECHO_N "(cached) $ECHO_C" >&6
5609else
5610  cat >conftest.$ac_ext <<_ACEOF
5611/* confdefs.h.  */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h.  */
5616$ac_includes_default
5617
5618#include <$ac_header>
5619_ACEOF
5620rm -f conftest.$ac_objext
5621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5622  (eval $ac_compile) 2>conftest.er1
5623  ac_status=$?
5624  grep -v '^ *+' conftest.er1 >conftest.err
5625  rm -f conftest.er1
5626  cat conftest.err >&5
5627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628  (exit $ac_status); } &&
5629         { ac_try='test -z "$ac_c_werror_flag"
5630                         || test ! -s conftest.err'
5631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632  (eval $ac_try) 2>&5
5633  ac_status=$?
5634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635  (exit $ac_status); }; } &&
5636         { ac_try='test -s conftest.$ac_objext'
5637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638  (eval $ac_try) 2>&5
5639  ac_status=$?
5640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641  (exit $ac_status); }; }; then
5642  eval "$as_ac_Header=yes"
5643else
5644  echo "$as_me: failed program was:" >&5
5645sed 's/^/| /' conftest.$ac_ext >&5
5646
5647eval "$as_ac_Header=no"
5648fi
5649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5650fi
5651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5653if test `eval echo '${'$as_ac_Header'}'` = yes; then
5654  cat >>confdefs.h <<_ACEOF
5655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5656_ACEOF
5657
5658fi
5659
5660done
5661
5662
5663
5664for ac_header in dlfcn.h
5665do
5666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5667if eval "test \"\${$as_ac_Header+set}\" = set"; then
5668  echo "$as_me:$LINENO: checking for $ac_header" >&5
5669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5670if eval "test \"\${$as_ac_Header+set}\" = set"; then
5671  echo $ECHO_N "(cached) $ECHO_C" >&6
5672fi
5673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5675else
5676  # Is the header compilable?
5677echo "$as_me:$LINENO: checking $ac_header usability" >&5
5678echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5679cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h.  */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h.  */
5685$ac_includes_default
5686#include <$ac_header>
5687_ACEOF
5688rm -f conftest.$ac_objext
5689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5690  (eval $ac_compile) 2>conftest.er1
5691  ac_status=$?
5692  grep -v '^ *+' conftest.er1 >conftest.err
5693  rm -f conftest.er1
5694  cat conftest.err >&5
5695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696  (exit $ac_status); } &&
5697         { ac_try='test -z "$ac_c_werror_flag"
5698                         || test ! -s conftest.err'
5699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700  (eval $ac_try) 2>&5
5701  ac_status=$?
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); }; } &&
5704         { ac_try='test -s conftest.$ac_objext'
5705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706  (eval $ac_try) 2>&5
5707  ac_status=$?
5708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709  (exit $ac_status); }; }; then
5710  ac_header_compiler=yes
5711else
5712  echo "$as_me: failed program was:" >&5
5713sed 's/^/| /' conftest.$ac_ext >&5
5714
5715ac_header_compiler=no
5716fi
5717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5719echo "${ECHO_T}$ac_header_compiler" >&6
5720
5721# Is the header present?
5722echo "$as_me:$LINENO: checking $ac_header presence" >&5
5723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5724cat >conftest.$ac_ext <<_ACEOF
5725/* confdefs.h.  */
5726_ACEOF
5727cat confdefs.h >>conftest.$ac_ext
5728cat >>conftest.$ac_ext <<_ACEOF
5729/* end confdefs.h.  */
5730#include <$ac_header>
5731_ACEOF
5732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5733  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5734  ac_status=$?
5735  grep -v '^ *+' conftest.er1 >conftest.err
5736  rm -f conftest.er1
5737  cat conftest.err >&5
5738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739  (exit $ac_status); } >/dev/null; then
5740  if test -s conftest.err; then
5741    ac_cpp_err=$ac_c_preproc_warn_flag
5742    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5743  else
5744    ac_cpp_err=
5745  fi
5746else
5747  ac_cpp_err=yes
5748fi
5749if test -z "$ac_cpp_err"; then
5750  ac_header_preproc=yes
5751else
5752  echo "$as_me: failed program was:" >&5
5753sed 's/^/| /' conftest.$ac_ext >&5
5754
5755  ac_header_preproc=no
5756fi
5757rm -f conftest.err conftest.$ac_ext
5758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5759echo "${ECHO_T}$ac_header_preproc" >&6
5760
5761# So?  What about this header?
5762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5763  yes:no: )
5764    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5766    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5768    ac_header_preproc=yes
5769    ;;
5770  no:yes:* )
5771    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5773    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5774echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5775    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5777    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5778echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5779    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5781    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5783    (
5784      cat <<\_ASBOX
5785## --------------------------------------------------------------- ##
5786## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5787## --------------------------------------------------------------- ##
5788_ASBOX
5789    ) |
5790      sed "s/^/$as_me: WARNING:     /" >&2
5791    ;;
5792esac
5793echo "$as_me:$LINENO: checking for $ac_header" >&5
5794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5795if eval "test \"\${$as_ac_Header+set}\" = set"; then
5796  echo $ECHO_N "(cached) $ECHO_C" >&6
5797else
5798  eval "$as_ac_Header=\$ac_header_preproc"
5799fi
5800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5802
5803fi
5804if test `eval echo '${'$as_ac_Header'}'` = yes; then
5805  cat >>confdefs.h <<_ACEOF
5806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5807_ACEOF
5808
5809fi
5810
5811done
5812
5813ac_ext=cc
5814ac_cpp='$CXXCPP $CPPFLAGS'
5815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5818if test -n "$ac_tool_prefix"; then
5819  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5820  do
5821    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5822set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5823echo "$as_me:$LINENO: checking for $ac_word" >&5
5824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5825if test "${ac_cv_prog_CXX+set}" = set; then
5826  echo $ECHO_N "(cached) $ECHO_C" >&6
5827else
5828  if test -n "$CXX"; then
5829  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5830else
5831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832for as_dir in $PATH
5833do
5834  IFS=$as_save_IFS
5835  test -z "$as_dir" && as_dir=.
5836  for ac_exec_ext in '' $ac_executable_extensions; do
5837  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840    break 2
5841  fi
5842done
5843done
5844
5845fi
5846fi
5847CXX=$ac_cv_prog_CXX
5848if test -n "$CXX"; then
5849  echo "$as_me:$LINENO: result: $CXX" >&5
5850echo "${ECHO_T}$CXX" >&6
5851else
5852  echo "$as_me:$LINENO: result: no" >&5
5853echo "${ECHO_T}no" >&6
5854fi
5855
5856    test -n "$CXX" && break
5857  done
5858fi
5859if test -z "$CXX"; then
5860  ac_ct_CXX=$CXX
5861  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5862do
5863  # Extract the first word of "$ac_prog", so it can be a program name with args.
5864set dummy $ac_prog; ac_word=$2
5865echo "$as_me:$LINENO: checking for $ac_word" >&5
5866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5867if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5868  echo $ECHO_N "(cached) $ECHO_C" >&6
5869else
5870  if test -n "$ac_ct_CXX"; then
5871  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876  IFS=$as_save_IFS
5877  test -z "$as_dir" && as_dir=.
5878  for ac_exec_ext in '' $ac_executable_extensions; do
5879  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880    ac_cv_prog_ac_ct_CXX="$ac_prog"
5881    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882    break 2
5883  fi
5884done
5885done
5886
5887fi
5888fi
5889ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5890if test -n "$ac_ct_CXX"; then
5891  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5892echo "${ECHO_T}$ac_ct_CXX" >&6
5893else
5894  echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6
5896fi
5897
5898  test -n "$ac_ct_CXX" && break
5899done
5900test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5901
5902  CXX=$ac_ct_CXX
5903fi
5904
5905
5906# Provide some information about the compiler.
5907echo "$as_me:$LINENO:" \
5908     "checking for C++ compiler version" >&5
5909ac_compiler=`set X $ac_compile; echo $2`
5910{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5911  (eval $ac_compiler --version </dev/null >&5) 2>&5
5912  ac_status=$?
5913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914  (exit $ac_status); }
5915{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5916  (eval $ac_compiler -v </dev/null >&5) 2>&5
5917  ac_status=$?
5918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919  (exit $ac_status); }
5920{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5921  (eval $ac_compiler -V </dev/null >&5) 2>&5
5922  ac_status=$?
5923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924  (exit $ac_status); }
5925
5926echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5927echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5928if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5929  echo $ECHO_N "(cached) $ECHO_C" >&6
5930else
5931  cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h.  */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h.  */
5937
5938int
5939main ()
5940{
5941#ifndef __GNUC__
5942       choke me
5943#endif
5944
5945  ;
5946  return 0;
5947}
5948_ACEOF
5949rm -f conftest.$ac_objext
5950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951  (eval $ac_compile) 2>conftest.er1
5952  ac_status=$?
5953  grep -v '^ *+' conftest.er1 >conftest.err
5954  rm -f conftest.er1
5955  cat conftest.err >&5
5956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); } &&
5958         { ac_try='test -z "$ac_cxx_werror_flag"
5959                         || test ! -s conftest.err'
5960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961  (eval $ac_try) 2>&5
5962  ac_status=$?
5963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964  (exit $ac_status); }; } &&
5965         { ac_try='test -s conftest.$ac_objext'
5966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5967  (eval $ac_try) 2>&5
5968  ac_status=$?
5969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970  (exit $ac_status); }; }; then
5971  ac_compiler_gnu=yes
5972else
5973  echo "$as_me: failed program was:" >&5
5974sed 's/^/| /' conftest.$ac_ext >&5
5975
5976ac_compiler_gnu=no
5977fi
5978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5979ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5980
5981fi
5982echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5983echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5984GXX=`test $ac_compiler_gnu = yes && echo yes`
5985ac_test_CXXFLAGS=${CXXFLAGS+set}
5986ac_save_CXXFLAGS=$CXXFLAGS
5987CXXFLAGS="-g"
5988echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5989echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5990if test "${ac_cv_prog_cxx_g+set}" = set; then
5991  echo $ECHO_N "(cached) $ECHO_C" >&6
5992else
5993  cat >conftest.$ac_ext <<_ACEOF
5994/* confdefs.h.  */
5995_ACEOF
5996cat confdefs.h >>conftest.$ac_ext
5997cat >>conftest.$ac_ext <<_ACEOF
5998/* end confdefs.h.  */
5999
6000int
6001main ()
6002{
6003
6004  ;
6005  return 0;
6006}
6007_ACEOF
6008rm -f conftest.$ac_objext
6009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6010  (eval $ac_compile) 2>conftest.er1
6011  ac_status=$?
6012  grep -v '^ *+' conftest.er1 >conftest.err
6013  rm -f conftest.er1
6014  cat conftest.err >&5
6015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016  (exit $ac_status); } &&
6017         { ac_try='test -z "$ac_cxx_werror_flag"
6018                         || test ! -s conftest.err'
6019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020  (eval $ac_try) 2>&5
6021  ac_status=$?
6022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023  (exit $ac_status); }; } &&
6024         { ac_try='test -s conftest.$ac_objext'
6025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6026  (eval $ac_try) 2>&5
6027  ac_status=$?
6028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029  (exit $ac_status); }; }; then
6030  ac_cv_prog_cxx_g=yes
6031else
6032  echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
6035ac_cv_prog_cxx_g=no
6036fi
6037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6038fi
6039echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6040echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6041if test "$ac_test_CXXFLAGS" = set; then
6042  CXXFLAGS=$ac_save_CXXFLAGS
6043elif test $ac_cv_prog_cxx_g = yes; then
6044  if test "$GXX" = yes; then
6045    CXXFLAGS="-g -O2"
6046  else
6047    CXXFLAGS="-g"
6048  fi
6049else
6050  if test "$GXX" = yes; then
6051    CXXFLAGS="-O2"
6052  else
6053    CXXFLAGS=
6054  fi
6055fi
6056for ac_declaration in \
6057   '' \
6058   'extern "C" void std::exit (int) throw (); using std::exit;' \
6059   'extern "C" void std::exit (int); using std::exit;' \
6060   'extern "C" void exit (int) throw ();' \
6061   'extern "C" void exit (int);' \
6062   'void exit (int);'
6063do
6064  cat >conftest.$ac_ext <<_ACEOF
6065/* confdefs.h.  */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h.  */
6070$ac_declaration
6071#include <stdlib.h>
6072int
6073main ()
6074{
6075exit (42);
6076  ;
6077  return 0;
6078}
6079_ACEOF
6080rm -f conftest.$ac_objext
6081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6082  (eval $ac_compile) 2>conftest.er1
6083  ac_status=$?
6084  grep -v '^ *+' conftest.er1 >conftest.err
6085  rm -f conftest.er1
6086  cat conftest.err >&5
6087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088  (exit $ac_status); } &&
6089         { ac_try='test -z "$ac_cxx_werror_flag"
6090                         || test ! -s conftest.err'
6091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092  (eval $ac_try) 2>&5
6093  ac_status=$?
6094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095  (exit $ac_status); }; } &&
6096         { ac_try='test -s conftest.$ac_objext'
6097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098  (eval $ac_try) 2>&5
6099  ac_status=$?
6100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101  (exit $ac_status); }; }; then
6102  :
6103else
6104  echo "$as_me: failed program was:" >&5
6105sed 's/^/| /' conftest.$ac_ext >&5
6106
6107continue
6108fi
6109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6110  cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h.  */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h.  */
6116$ac_declaration
6117int
6118main ()
6119{
6120exit (42);
6121  ;
6122  return 0;
6123}
6124_ACEOF
6125rm -f conftest.$ac_objext
6126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127  (eval $ac_compile) 2>conftest.er1
6128  ac_status=$?
6129  grep -v '^ *+' conftest.er1 >conftest.err
6130  rm -f conftest.er1
6131  cat conftest.err >&5
6132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); } &&
6134         { ac_try='test -z "$ac_cxx_werror_flag"
6135                         || test ! -s conftest.err'
6136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137  (eval $ac_try) 2>&5
6138  ac_status=$?
6139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140  (exit $ac_status); }; } &&
6141         { ac_try='test -s conftest.$ac_objext'
6142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143  (eval $ac_try) 2>&5
6144  ac_status=$?
6145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146  (exit $ac_status); }; }; then
6147  break
6148else
6149  echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152fi
6153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6154done
6155rm -f conftest*
6156if test -n "$ac_declaration"; then
6157  echo '#ifdef __cplusplus' >>confdefs.h
6158  echo $ac_declaration      >>confdefs.h
6159  echo '#endif'             >>confdefs.h
6160fi
6161
6162ac_ext=cc
6163ac_cpp='$CXXCPP $CPPFLAGS'
6164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6167
6168depcc="$CXX"  am_compiler_list=
6169
6170echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6171echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6172if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6173  echo $ECHO_N "(cached) $ECHO_C" >&6
6174else
6175  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6176  # We make a subdir and do the tests there.  Otherwise we can end up
6177  # making bogus files that we don't know about and never remove.  For
6178  # instance it was reported that on HP-UX the gcc test will end up
6179  # making a dummy file named `D' -- because `-MD' means `put the output
6180  # in D'.
6181  mkdir conftest.dir
6182  # Copy depcomp to subdir because otherwise we won't find it if we're
6183  # using a relative directory.
6184  cp "$am_depcomp" conftest.dir
6185  cd conftest.dir
6186  # We will build objects and dependencies in a subdirectory because
6187  # it helps to detect inapplicable dependency modes.  For instance
6188  # both Tru64's cc and ICC support -MD to output dependencies as a
6189  # side effect of compilation, but ICC will put the dependencies in
6190  # the current directory while Tru64 will put them in the object
6191  # directory.
6192  mkdir sub
6193
6194  am_cv_CXX_dependencies_compiler_type=none
6195  if test "$am_compiler_list" = ""; then
6196     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6197  fi
6198  for depmode in $am_compiler_list; do
6199    # Setup a source with many dependencies, because some compilers
6200    # like to wrap large dependency lists on column 80 (with \), and
6201    # we should not choose a depcomp mode which is confused by this.
6202    #
6203    # We need to recreate these files for each test, as the compiler may
6204    # overwrite some of them when testing with obscure command lines.
6205    # This happens at least with the AIX C compiler.
6206    : > sub/conftest.c
6207    for i in 1 2 3 4 5 6; do
6208      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6209      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6210      # Solaris 8's {/usr,}/bin/sh.
6211      touch sub/conftst$i.h
6212    done
6213    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6214
6215    case $depmode in
6216    nosideeffect)
6217      # after this tag, mechanisms are not by side-effect, so they'll
6218      # only be used when explicitly requested
6219      if test "x$enable_dependency_tracking" = xyes; then
6220        continue
6221      else
6222        break
6223      fi
6224      ;;
6225    none) break ;;
6226    esac
6227    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6228    # mode.  It turns out that the SunPro C++ compiler does not properly
6229    # handle `-M -o', and we need to detect this.
6230    if depmode=$depmode \
6231       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6232       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6233       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6234         >/dev/null 2>conftest.err &&
6235       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6236       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6237       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6238      # icc doesn't choke on unknown options, it will just issue warnings
6239      # or remarks (even with -Werror).  So we grep stderr for any message
6240      # that says an option was ignored or not supported.
6241      # When given -MP, icc 7.0 and 7.1 complain thusly:
6242      #   icc: Command line warning: ignoring option '-M'; no argument required
6243      # The diagnosis changed in icc 8.0:
6244      #   icc: Command line remark: option '-MP' not supported
6245      if (grep 'ignoring option' conftest.err ||
6246          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6247        am_cv_CXX_dependencies_compiler_type=$depmode
6248        break
6249      fi
6250    fi
6251  done
6252
6253  cd ..
6254  rm -rf conftest.dir
6255else
6256  am_cv_CXX_dependencies_compiler_type=none
6257fi
6258
6259fi
6260echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6261echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6262CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6263
6264
6265
6266if
6267  test "x$enable_dependency_tracking" != xno \
6268  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6269  am__fastdepCXX_TRUE=
6270  am__fastdepCXX_FALSE='#'
6271else
6272  am__fastdepCXX_TRUE='#'
6273  am__fastdepCXX_FALSE=
6274fi
6275
6276
6277
6278
6279if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6280    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6281    (test "X$CXX" != "Xg++"))) ; then
6282  ac_ext=cc
6283ac_cpp='$CXXCPP $CPPFLAGS'
6284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6287echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6288echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6289if test -z "$CXXCPP"; then
6290  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6291  echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293      # Double quotes because CXXCPP needs to be expanded
6294    for CXXCPP in "$CXX -E" "/lib/cpp"
6295    do
6296      ac_preproc_ok=false
6297for ac_cxx_preproc_warn_flag in '' yes
6298do
6299  # Use a header file that comes with gcc, so configuring glibc
6300  # with a fresh cross-compiler works.
6301  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6302  # <limits.h> exists even on freestanding compilers.
6303  # On the NeXT, cc -E runs the code through the compiler's parser,
6304  # not just through cpp. "Syntax error" is here to catch this case.
6305  cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h.  */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h.  */
6311#ifdef __STDC__
6312# include <limits.h>
6313#else
6314# include <assert.h>
6315#endif
6316                     Syntax error
6317_ACEOF
6318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6319  (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
6326  if test -s conftest.err; then
6327    ac_cpp_err=$ac_cxx_preproc_warn_flag
6328    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6329  else
6330    ac_cpp_err=
6331  fi
6332else
6333  ac_cpp_err=yes
6334fi
6335if test -z "$ac_cpp_err"; then
6336  :
6337else
6338  echo "$as_me: failed program was:" >&5
6339sed 's/^/| /' conftest.$ac_ext >&5
6340
6341  # Broken: fails on valid input.
6342continue
6343fi
6344rm -f conftest.err conftest.$ac_ext
6345
6346  # OK, works on sane cases.  Now check whether non-existent headers
6347  # can be detected and how.
6348  cat >conftest.$ac_ext <<_ACEOF
6349/* confdefs.h.  */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
6353/* end confdefs.h.  */
6354#include <ac_nonexistent.h>
6355_ACEOF
6356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6358  ac_status=$?
6359  grep -v '^ *+' conftest.er1 >conftest.err
6360  rm -f conftest.er1
6361  cat conftest.err >&5
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); } >/dev/null; then
6364  if test -s conftest.err; then
6365    ac_cpp_err=$ac_cxx_preproc_warn_flag
6366    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6367  else
6368    ac_cpp_err=
6369  fi
6370else
6371  ac_cpp_err=yes
6372fi
6373if test -z "$ac_cpp_err"; then
6374  # Broken: success on invalid input.
6375continue
6376else
6377  echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380  # Passes both tests.
6381ac_preproc_ok=:
6382break
6383fi
6384rm -f conftest.err conftest.$ac_ext
6385
6386done
6387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6388rm -f conftest.err conftest.$ac_ext
6389if $ac_preproc_ok; then
6390  break
6391fi
6392
6393    done
6394    ac_cv_prog_CXXCPP=$CXXCPP
6395
6396fi
6397  CXXCPP=$ac_cv_prog_CXXCPP
6398else
6399  ac_cv_prog_CXXCPP=$CXXCPP
6400fi
6401echo "$as_me:$LINENO: result: $CXXCPP" >&5
6402echo "${ECHO_T}$CXXCPP" >&6
6403ac_preproc_ok=false
6404for ac_cxx_preproc_warn_flag in '' yes
6405do
6406  # Use a header file that comes with gcc, so configuring glibc
6407  # with a fresh cross-compiler works.
6408  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6409  # <limits.h> exists even on freestanding compilers.
6410  # On the NeXT, cc -E runs the code through the compiler's parser,
6411  # not just through cpp. "Syntax error" is here to catch this case.
6412  cat >conftest.$ac_ext <<_ACEOF
6413/* confdefs.h.  */
6414_ACEOF
6415cat confdefs.h >>conftest.$ac_ext
6416cat >>conftest.$ac_ext <<_ACEOF
6417/* end confdefs.h.  */
6418#ifdef __STDC__
6419# include <limits.h>
6420#else
6421# include <assert.h>
6422#endif
6423                     Syntax error
6424_ACEOF
6425if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6426  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6427  ac_status=$?
6428  grep -v '^ *+' conftest.er1 >conftest.err
6429  rm -f conftest.er1
6430  cat conftest.err >&5
6431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432  (exit $ac_status); } >/dev/null; then
6433  if test -s conftest.err; then
6434    ac_cpp_err=$ac_cxx_preproc_warn_flag
6435    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6436  else
6437    ac_cpp_err=
6438  fi
6439else
6440  ac_cpp_err=yes
6441fi
6442if test -z "$ac_cpp_err"; then
6443  :
6444else
6445  echo "$as_me: failed program was:" >&5
6446sed 's/^/| /' conftest.$ac_ext >&5
6447
6448  # Broken: fails on valid input.
6449continue
6450fi
6451rm -f conftest.err conftest.$ac_ext
6452
6453  # OK, works on sane cases.  Now check whether non-existent headers
6454  # can be detected and how.
6455  cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h.  */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h.  */
6461#include <ac_nonexistent.h>
6462_ACEOF
6463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6464  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6465  ac_status=$?
6466  grep -v '^ *+' conftest.er1 >conftest.err
6467  rm -f conftest.er1
6468  cat conftest.err >&5
6469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470  (exit $ac_status); } >/dev/null; then
6471  if test -s conftest.err; then
6472    ac_cpp_err=$ac_cxx_preproc_warn_flag
6473    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6474  else
6475    ac_cpp_err=
6476  fi
6477else
6478  ac_cpp_err=yes
6479fi
6480if test -z "$ac_cpp_err"; then
6481  # Broken: success on invalid input.
6482continue
6483else
6484  echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487  # Passes both tests.
6488ac_preproc_ok=:
6489break
6490fi
6491rm -f conftest.err conftest.$ac_ext
6492
6493done
6494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6495rm -f conftest.err conftest.$ac_ext
6496if $ac_preproc_ok; then
6497  :
6498else
6499  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6500See \`config.log' for more details." >&5
6501echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6502See \`config.log' for more details." >&2;}
6503   { (exit 1); exit 1; }; }
6504fi
6505
6506ac_ext=cc
6507ac_cpp='$CXXCPP $CPPFLAGS'
6508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6511
6512fi
6513
6514
6515ac_ext=f
6516ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6517ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6519if test -n "$ac_tool_prefix"; then
6520  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6521  do
6522    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6523set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6524echo "$as_me:$LINENO: checking for $ac_word" >&5
6525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6526if test "${ac_cv_prog_F77+set}" = set; then
6527  echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529  if test -n "$F77"; then
6530  ac_cv_prog_F77="$F77" # Let the user override the test.
6531else
6532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533for as_dir in $PATH
6534do
6535  IFS=$as_save_IFS
6536  test -z "$as_dir" && as_dir=.
6537  for ac_exec_ext in '' $ac_executable_extensions; do
6538  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541    break 2
6542  fi
6543done
6544done
6545
6546fi
6547fi
6548F77=$ac_cv_prog_F77
6549if test -n "$F77"; then
6550  echo "$as_me:$LINENO: result: $F77" >&5
6551echo "${ECHO_T}$F77" >&6
6552else
6553  echo "$as_me:$LINENO: result: no" >&5
6554echo "${ECHO_T}no" >&6
6555fi
6556
6557    test -n "$F77" && break
6558  done
6559fi
6560if test -z "$F77"; then
6561  ac_ct_F77=$F77
6562  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6563do
6564  # Extract the first word of "$ac_prog", so it can be a program name with args.
6565set dummy $ac_prog; ac_word=$2
6566echo "$as_me:$LINENO: checking for $ac_word" >&5
6567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6568if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6569  echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571  if test -n "$ac_ct_F77"; then
6572  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6573else
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577  IFS=$as_save_IFS
6578  test -z "$as_dir" && as_dir=.
6579  for ac_exec_ext in '' $ac_executable_extensions; do
6580  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581    ac_cv_prog_ac_ct_F77="$ac_prog"
6582    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583    break 2
6584  fi
6585done
6586done
6587
6588fi
6589fi
6590ac_ct_F77=$ac_cv_prog_ac_ct_F77
6591if test -n "$ac_ct_F77"; then
6592  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6593echo "${ECHO_T}$ac_ct_F77" >&6
6594else
6595  echo "$as_me:$LINENO: result: no" >&5
6596echo "${ECHO_T}no" >&6
6597fi
6598
6599  test -n "$ac_ct_F77" && break
6600done
6601
6602  F77=$ac_ct_F77
6603fi
6604
6605
6606# Provide some information about the compiler.
6607echo "$as_me:6607:" \
6608     "checking for Fortran 77 compiler version" >&5
6609ac_compiler=`set X $ac_compile; echo $2`
6610{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6611  (eval $ac_compiler --version </dev/null >&5) 2>&5
6612  ac_status=$?
6613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614  (exit $ac_status); }
6615{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6616  (eval $ac_compiler -v </dev/null >&5) 2>&5
6617  ac_status=$?
6618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619  (exit $ac_status); }
6620{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6621  (eval $ac_compiler -V </dev/null >&5) 2>&5
6622  ac_status=$?
6623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624  (exit $ac_status); }
6625rm -f a.out
6626
6627# If we don't use `.F' as extension, the preprocessor is not run on the
6628# input file.  (Note that this only needs to work for GNU compilers.)
6629ac_save_ext=$ac_ext
6630ac_ext=F
6631echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6632echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6633if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6634  echo $ECHO_N "(cached) $ECHO_C" >&6
6635else
6636  cat >conftest.$ac_ext <<_ACEOF
6637      program main
6638#ifndef __GNUC__
6639       choke me
6640#endif
6641
6642      end
6643_ACEOF
6644rm -f conftest.$ac_objext
6645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646  (eval $ac_compile) 2>conftest.er1
6647  ac_status=$?
6648  grep -v '^ *+' conftest.er1 >conftest.err
6649  rm -f conftest.er1
6650  cat conftest.err >&5
6651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652  (exit $ac_status); } &&
6653         { ac_try='test -z "$ac_f77_werror_flag"
6654                         || test ! -s conftest.err'
6655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656  (eval $ac_try) 2>&5
6657  ac_status=$?
6658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659  (exit $ac_status); }; } &&
6660         { ac_try='test -s conftest.$ac_objext'
6661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662  (eval $ac_try) 2>&5
6663  ac_status=$?
6664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665  (exit $ac_status); }; }; then
6666  ac_compiler_gnu=yes
6667else
6668  echo "$as_me: failed program was:" >&5
6669sed 's/^/| /' conftest.$ac_ext >&5
6670
6671ac_compiler_gnu=no
6672fi
6673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6675
6676fi
6677echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6678echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6679ac_ext=$ac_save_ext
6680ac_test_FFLAGS=${FFLAGS+set}
6681ac_save_FFLAGS=$FFLAGS
6682FFLAGS=
6683echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6684echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6685if test "${ac_cv_prog_f77_g+set}" = set; then
6686  echo $ECHO_N "(cached) $ECHO_C" >&6
6687else
6688  FFLAGS=-g
6689cat >conftest.$ac_ext <<_ACEOF
6690      program main
6691
6692      end
6693_ACEOF
6694rm -f conftest.$ac_objext
6695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696  (eval $ac_compile) 2>conftest.er1
6697  ac_status=$?
6698  grep -v '^ *+' conftest.er1 >conftest.err
6699  rm -f conftest.er1
6700  cat conftest.err >&5
6701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702  (exit $ac_status); } &&
6703         { ac_try='test -z "$ac_f77_werror_flag"
6704                         || test ! -s conftest.err'
6705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706  (eval $ac_try) 2>&5
6707  ac_status=$?
6708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709  (exit $ac_status); }; } &&
6710         { ac_try='test -s conftest.$ac_objext'
6711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712  (eval $ac_try) 2>&5
6713  ac_status=$?
6714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715  (exit $ac_status); }; }; then
6716  ac_cv_prog_f77_g=yes
6717else
6718  echo "$as_me: failed program was:" >&5
6719sed 's/^/| /' conftest.$ac_ext >&5
6720
6721ac_cv_prog_f77_g=no
6722fi
6723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6724
6725fi
6726echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6727echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6728if test "$ac_test_FFLAGS" = set; then
6729  FFLAGS=$ac_save_FFLAGS
6730elif test $ac_cv_prog_f77_g = yes; then
6731  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6732    FFLAGS="-g -O2"
6733  else
6734    FFLAGS="-g"
6735  fi
6736else
6737  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6738    FFLAGS="-O2"
6739  else
6740    FFLAGS=
6741  fi
6742fi
6743
6744G77=`test $ac_compiler_gnu = yes && echo yes`
6745ac_ext=c
6746ac_cpp='$CPP $CPPFLAGS'
6747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750
6751
6752
6753# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6754
6755# find the maximum length of command line arguments
6756echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6757echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6758if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6759  echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761    i=0
6762  teststring="ABCD"
6763
6764  case $build_os in
6765  msdosdjgpp*)
6766    # On DJGPP, this test can blow up pretty badly due to problems in libc
6767    # (any single argument exceeding 2000 bytes causes a buffer overrun
6768    # during glob expansion).  Even if it were fixed, the result of this
6769    # check would be larger than it should be.
6770    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6771    ;;
6772
6773  gnu*)
6774    # Under GNU Hurd, this test is not required because there is
6775    # no limit to the length of command line arguments.
6776    # Libtool will interpret -1 as no limit whatsoever
6777    lt_cv_sys_max_cmd_len=-1;
6778    ;;
6779
6780  cygwin* | mingw*)
6781    # On Win9x/ME, this test blows up -- it succeeds, but takes
6782    # about 5 minutes as the teststring grows exponentially.
6783    # Worse, since 9x/ME are not pre-emptively multitasking,
6784    # you end up with a "frozen" computer, even though with patience
6785    # the test eventually succeeds (with a max line length of 256k).
6786    # Instead, let's just punt: use the minimum linelength reported by
6787    # all of the supported platforms: 8192 (on NT/2K/XP).
6788    lt_cv_sys_max_cmd_len=8192;
6789    ;;
6790
6791  amigaos*)
6792    # On AmigaOS with pdksh, this test takes hours, literally.
6793    # So we just punt and use a minimum line length of 8192.
6794    lt_cv_sys_max_cmd_len=8192;
6795    ;;
6796
6797  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6798    # This has been around since 386BSD, at least.  Likely further.
6799    if test -x /sbin/sysctl; then
6800      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6801    elif test -x /usr/sbin/sysctl; then
6802      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6803    else
6804      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6805    fi
6806    # And add a safety zone
6807    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6808    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6809    ;;
6810
6811  interix*)
6812    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6813    lt_cv_sys_max_cmd_len=196608
6814    ;;
6815
6816  osf*)
6817    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6818    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6819    # nice to cause kernel panics so lets avoid the loop below.
6820    # First set a reasonable default.
6821    lt_cv_sys_max_cmd_len=16384
6822    #
6823    if test -x /sbin/sysconfig; then
6824      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6825        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6826      esac
6827    fi
6828    ;;
6829  sco3.2v5*)
6830    lt_cv_sys_max_cmd_len=102400
6831    ;;
6832  sysv5* | sco5v6* | sysv4.2uw2*)
6833    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6834    if test -n "$kargmax"; then
6835      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6836    else
6837      lt_cv_sys_max_cmd_len=32768
6838    fi
6839    ;;
6840  *)
6841    # If test is not a shell built-in, we'll probably end up computing a
6842    # maximum length that is only half of the actual maximum length, but
6843    # we can't tell.
6844    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6845    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6846               = "XX$teststring") >/dev/null 2>&1 &&
6847            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6848            lt_cv_sys_max_cmd_len=$new_result &&
6849            test $i != 17 # 1/2 MB should be enough
6850    do
6851      i=`expr $i + 1`
6852      teststring=$teststring$teststring
6853    done
6854    teststring=
6855    # Add a significant safety factor because C++ compilers can tack on massive
6856    # amounts of additional arguments before passing them to the linker.
6857    # It appears as though 1/2 is a usable value.
6858    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6859    ;;
6860  esac
6861
6862fi
6863
6864if test -n $lt_cv_sys_max_cmd_len ; then
6865  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6866echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6867else
6868  echo "$as_me:$LINENO: result: none" >&5
6869echo "${ECHO_T}none" >&6
6870fi
6871
6872
6873
6874
6875# Check for command to grab the raw symbol name followed by C symbol from nm.
6876echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6877echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6878if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6879  echo $ECHO_N "(cached) $ECHO_C" >&6
6880else
6881
6882# These are sane defaults that work on at least a few old systems.
6883# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6884
6885# Character class describing NM global symbol codes.
6886symcode='[BCDEGRST]'
6887
6888# Regexp to match symbols that can be accessed directly from C.
6889sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6890
6891# Transform an extracted symbol line into a proper C declaration
6892lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6893
6894# Transform an extracted symbol line into symbol name and symbol address
6895lt_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'"
6896
6897# Define system-specific variables.
6898case $host_os in
6899aix*)
6900  symcode='[BCDT]'
6901  ;;
6902cygwin* | mingw* | pw32*)
6903  symcode='[ABCDGISTW]'
6904  ;;
6905hpux*) # Its linker distinguishes data from code symbols
6906  if test "$host_cpu" = ia64; then
6907    symcode='[ABCDEGRST]'
6908  fi
6909  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6910  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'"
6911  ;;
6912linux*)
6913  if test "$host_cpu" = ia64; then
6914    symcode='[ABCDGIRSTW]'
6915    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6916    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6917  fi
6918  ;;
6919irix* | nonstopux*)
6920  symcode='[BCDEGRST]'
6921  ;;
6922osf*)
6923  symcode='[BCDEGQRST]'
6924  ;;
6925solaris*)
6926  symcode='[BDRT]'
6927  ;;
6928sco3.2v5*)
6929  symcode='[DT]'
6930  ;;
6931sysv4.2uw2*)
6932  symcode='[DT]'
6933  ;;
6934sysv5* | sco5v6* | unixware* | OpenUNIX*)
6935  symcode='[ABDT]'
6936  ;;
6937sysv4)
6938  symcode='[DFNSTU]'
6939  ;;
6940esac
6941
6942# Handle CRLF in mingw tool chain
6943opt_cr=
6944case $build_os in
6945mingw*)
6946  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6947  ;;
6948esac
6949
6950# If we're using GNU nm, then use its standard symbol codes.
6951case `$NM -V 2>&1` in
6952*GNU* | *'with BFD'*)
6953  symcode='[ABCDGIRSTW]' ;;
6954esac
6955
6956# Try without a prefix undercore, then with it.
6957for ac_symprfx in "" "_"; do
6958
6959  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960  symxfrm="\\1 $ac_symprfx\\2 \\2"
6961
6962  # Write the raw and C identifiers.
6963  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6964
6965  # Check to see that the pipe works correctly.
6966  pipe_works=no
6967
6968  rm -f conftest*
6969  cat > conftest.$ac_ext <<EOF
6970#ifdef __cplusplus
6971extern "C" {
6972#endif
6973char nm_test_var;
6974void nm_test_func(){}
6975#ifdef __cplusplus
6976}
6977#endif
6978int main(){nm_test_var='a';nm_test_func();return(0);}
6979EOF
6980
6981  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6982  (eval $ac_compile) 2>&5
6983  ac_status=$?
6984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985  (exit $ac_status); }; then
6986    # Now try to grab the symbols.
6987    nlist=conftest.nm
6988    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6989  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6990  ac_status=$?
6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); } && test -s "$nlist"; then
6993      # Try sorting and uniquifying the output.
6994      if sort "$nlist" | uniq > "$nlist"T; then
6995        mv -f "$nlist"T "$nlist"
6996      else
6997        rm -f "$nlist"T
6998      fi
6999
7000      # Make sure that we snagged all the symbols we need.
7001      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7002        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7003          cat <<EOF > conftest.$ac_ext
7004#ifdef __cplusplus
7005extern "C" {
7006#endif
7007
7008EOF
7009          # Now generate the symbol file.
7010          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7011
7012          cat <<EOF >> conftest.$ac_ext
7013#if defined (__STDC__) && __STDC__
7014# define lt_ptr_t void *
7015#else
7016# define lt_ptr_t char *
7017# define const
7018#endif
7019
7020/* The mapping between symbol names and symbols. */
7021const struct {
7022  const char *name;
7023  lt_ptr_t address;
7024}
7025lt_preloaded_symbols[] =
7026{
7027EOF
7028          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7029          cat <<\EOF >> conftest.$ac_ext
7030  {0, (lt_ptr_t) 0}
7031};
7032
7033#ifdef __cplusplus
7034}
7035#endif
7036EOF
7037          # Now try linking the two files.
7038          mv conftest.$ac_objext conftstm.$ac_objext
7039          lt_save_LIBS="$LIBS"
7040          lt_save_CFLAGS="$CFLAGS"
7041          LIBS="conftstm.$ac_objext"
7042          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7043          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7044  (eval $ac_link) 2>&5
7045  ac_status=$?
7046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7048            pipe_works=yes
7049          fi
7050          LIBS="$lt_save_LIBS"
7051          CFLAGS="$lt_save_CFLAGS"
7052        else
7053          echo "cannot find nm_test_func in $nlist" >&5
7054        fi
7055      else
7056        echo "cannot find nm_test_var in $nlist" >&5
7057      fi
7058    else
7059      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7060    fi
7061  else
7062    echo "$progname: failed program was:" >&5
7063    cat conftest.$ac_ext >&5
7064  fi
7065  rm -f conftest* conftst*
7066
7067  # Do not use the global_symbol_pipe unless it works.
7068  if test "$pipe_works" = yes; then
7069    break
7070  else
7071    lt_cv_sys_global_symbol_pipe=
7072  fi
7073done
7074
7075fi
7076
7077if test -z "$lt_cv_sys_global_symbol_pipe"; then
7078  lt_cv_sys_global_symbol_to_cdecl=
7079fi
7080if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7081  echo "$as_me:$LINENO: result: failed" >&5
7082echo "${ECHO_T}failed" >&6
7083else
7084  echo "$as_me:$LINENO: result: ok" >&5
7085echo "${ECHO_T}ok" >&6
7086fi
7087
7088echo "$as_me:$LINENO: checking for objdir" >&5
7089echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7090if test "${lt_cv_objdir+set}" = set; then
7091  echo $ECHO_N "(cached) $ECHO_C" >&6
7092else
7093  rm -f .libs 2>/dev/null
7094mkdir .libs 2>/dev/null
7095if test -d .libs; then
7096  lt_cv_objdir=.libs
7097else
7098  # MS-DOS does not allow filenames that begin with a dot.
7099  lt_cv_objdir=_libs
7100fi
7101rmdir .libs 2>/dev/null
7102fi
7103echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7104echo "${ECHO_T}$lt_cv_objdir" >&6
7105objdir=$lt_cv_objdir
7106
7107
7108
7109
7110
7111case $host_os in
7112aix3*)
7113  # AIX sometimes has problems with the GCC collect2 program.  For some
7114  # reason, if we set the COLLECT_NAMES environment variable, the problems
7115  # vanish in a puff of smoke.
7116  if test "X${COLLECT_NAMES+set}" != Xset; then
7117    COLLECT_NAMES=
7118    export COLLECT_NAMES
7119  fi
7120  ;;
7121esac
7122
7123# Sed substitution that helps us do robust quoting.  It backslashifies
7124# metacharacters that are still active within double-quoted strings.
7125Xsed='sed -e 1s/^X//'
7126sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7127
7128# Same as above, but do not quote variable references.
7129double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7130
7131# Sed substitution to delay expansion of an escaped shell variable in a
7132# double_quote_subst'ed string.
7133delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7134
7135# Sed substitution to avoid accidental globbing in evaled expressions
7136no_glob_subst='s/\*/\\\*/g'
7137
7138# Constants:
7139rm="rm -f"
7140
7141# Global variables:
7142default_ofile=libtool
7143can_build_shared=yes
7144
7145# All known linkers require a `.a' archive for static linking (except MSVC,
7146# which needs '.lib').
7147libext=a
7148ltmain="$ac_aux_dir/ltmain.sh"
7149ofile="$default_ofile"
7150with_gnu_ld="$lt_cv_prog_gnu_ld"
7151
7152if test -n "$ac_tool_prefix"; then
7153  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7154set dummy ${ac_tool_prefix}ar; ac_word=$2
7155echo "$as_me:$LINENO: checking for $ac_word" >&5
7156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7157if test "${ac_cv_prog_AR+set}" = set; then
7158  echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160  if test -n "$AR"; then
7161  ac_cv_prog_AR="$AR" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166  IFS=$as_save_IFS
7167  test -z "$as_dir" && as_dir=.
7168  for ac_exec_ext in '' $ac_executable_extensions; do
7169  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170    ac_cv_prog_AR="${ac_tool_prefix}ar"
7171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172    break 2
7173  fi
7174done
7175done
7176
7177fi
7178fi
7179AR=$ac_cv_prog_AR
7180if test -n "$AR"; then
7181  echo "$as_me:$LINENO: result: $AR" >&5
7182echo "${ECHO_T}$AR" >&6
7183else
7184  echo "$as_me:$LINENO: result: no" >&5
7185echo "${ECHO_T}no" >&6
7186fi
7187
7188fi
7189if test -z "$ac_cv_prog_AR"; then
7190  ac_ct_AR=$AR
7191  # Extract the first word of "ar", so it can be a program name with args.
7192set dummy ar; ac_word=$2
7193echo "$as_me:$LINENO: checking for $ac_word" >&5
7194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7195if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7196  echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198  if test -n "$ac_ct_AR"; then
7199  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7200else
7201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204  IFS=$as_save_IFS
7205  test -z "$as_dir" && as_dir=.
7206  for ac_exec_ext in '' $ac_executable_extensions; do
7207  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208    ac_cv_prog_ac_ct_AR="ar"
7209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210    break 2
7211  fi
7212done
7213done
7214
7215  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7216fi
7217fi
7218ac_ct_AR=$ac_cv_prog_ac_ct_AR
7219if test -n "$ac_ct_AR"; then
7220  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7221echo "${ECHO_T}$ac_ct_AR" >&6
7222else
7223  echo "$as_me:$LINENO: result: no" >&5
7224echo "${ECHO_T}no" >&6
7225fi
7226
7227  AR=$ac_ct_AR
7228else
7229  AR="$ac_cv_prog_AR"
7230fi
7231
7232if test -n "$ac_tool_prefix"; then
7233  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7234set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7235echo "$as_me:$LINENO: checking for $ac_word" >&5
7236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7237if test "${ac_cv_prog_RANLIB+set}" = set; then
7238  echo $ECHO_N "(cached) $ECHO_C" >&6
7239else
7240  if test -n "$RANLIB"; then
7241  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7242else
7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244for as_dir in $PATH
7245do
7246  IFS=$as_save_IFS
7247  test -z "$as_dir" && as_dir=.
7248  for ac_exec_ext in '' $ac_executable_extensions; do
7249  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7251    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252    break 2
7253  fi
7254done
7255done
7256
7257fi
7258fi
7259RANLIB=$ac_cv_prog_RANLIB
7260if test -n "$RANLIB"; then
7261  echo "$as_me:$LINENO: result: $RANLIB" >&5
7262echo "${ECHO_T}$RANLIB" >&6
7263else
7264  echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6
7266fi
7267
7268fi
7269if test -z "$ac_cv_prog_RANLIB"; then
7270  ac_ct_RANLIB=$RANLIB
7271  # Extract the first word of "ranlib", so it can be a program name with args.
7272set dummy ranlib; ac_word=$2
7273echo "$as_me:$LINENO: checking for $ac_word" >&5
7274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7275if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7276  echo $ECHO_N "(cached) $ECHO_C" >&6
7277else
7278  if test -n "$ac_ct_RANLIB"; then
7279  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7280else
7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282for as_dir in $PATH
7283do
7284  IFS=$as_save_IFS
7285  test -z "$as_dir" && as_dir=.
7286  for ac_exec_ext in '' $ac_executable_extensions; do
7287  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288    ac_cv_prog_ac_ct_RANLIB="ranlib"
7289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290    break 2
7291  fi
7292done
7293done
7294
7295  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7296fi
7297fi
7298ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7299if test -n "$ac_ct_RANLIB"; then
7300  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7301echo "${ECHO_T}$ac_ct_RANLIB" >&6
7302else
7303  echo "$as_me:$LINENO: result: no" >&5
7304echo "${ECHO_T}no" >&6
7305fi
7306
7307  RANLIB=$ac_ct_RANLIB
7308else
7309  RANLIB="$ac_cv_prog_RANLIB"
7310fi
7311
7312if test -n "$ac_tool_prefix"; then
7313  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7314set dummy ${ac_tool_prefix}strip; ac_word=$2
7315echo "$as_me:$LINENO: checking for $ac_word" >&5
7316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7317if test "${ac_cv_prog_STRIP+set}" = set; then
7318  echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320  if test -n "$STRIP"; then
7321  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7322else
7323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326  IFS=$as_save_IFS
7327  test -z "$as_dir" && as_dir=.
7328  for ac_exec_ext in '' $ac_executable_extensions; do
7329  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332    break 2
7333  fi
7334done
7335done
7336
7337fi
7338fi
7339STRIP=$ac_cv_prog_STRIP
7340if test -n "$STRIP"; then
7341  echo "$as_me:$LINENO: result: $STRIP" >&5
7342echo "${ECHO_T}$STRIP" >&6
7343else
7344  echo "$as_me:$LINENO: result: no" >&5
7345echo "${ECHO_T}no" >&6
7346fi
7347
7348fi
7349if test -z "$ac_cv_prog_STRIP"; then
7350  ac_ct_STRIP=$STRIP
7351  # Extract the first word of "strip", so it can be a program name with args.
7352set dummy strip; ac_word=$2
7353echo "$as_me:$LINENO: checking for $ac_word" >&5
7354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7355if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7356  echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358  if test -n "$ac_ct_STRIP"; then
7359  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364  IFS=$as_save_IFS
7365  test -z "$as_dir" && as_dir=.
7366  for ac_exec_ext in '' $ac_executable_extensions; do
7367  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368    ac_cv_prog_ac_ct_STRIP="strip"
7369    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370    break 2
7371  fi
7372done
7373done
7374
7375  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7376fi
7377fi
7378ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7379if test -n "$ac_ct_STRIP"; then
7380  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7381echo "${ECHO_T}$ac_ct_STRIP" >&6
7382else
7383  echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7385fi
7386
7387  STRIP=$ac_ct_STRIP
7388else
7389  STRIP="$ac_cv_prog_STRIP"
7390fi
7391
7392
7393old_CC="$CC"
7394old_CFLAGS="$CFLAGS"
7395
7396# Set sane defaults for various variables
7397test -z "$AR" && AR=ar
7398test -z "$AR_FLAGS" && AR_FLAGS=cru
7399test -z "$AS" && AS=as
7400test -z "$CC" && CC=cc
7401test -z "$LTCC" && LTCC=$CC
7402test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7403test -z "$DLLTOOL" && DLLTOOL=dlltool
7404test -z "$LD" && LD=ld
7405test -z "$LN_S" && LN_S="ln -s"
7406test -z "$MAGIC_CMD" && MAGIC_CMD=file
7407test -z "$NM" && NM=nm
7408test -z "$SED" && SED=sed
7409test -z "$OBJDUMP" && OBJDUMP=objdump
7410test -z "$RANLIB" && RANLIB=:
7411test -z "$STRIP" && STRIP=:
7412test -z "$ac_objext" && ac_objext=o
7413
7414# Determine commands to create old-style static archives.
7415old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7416old_postinstall_cmds='chmod 644 $oldlib'
7417old_postuninstall_cmds=
7418
7419if test -n "$RANLIB"; then
7420  case $host_os in
7421  openbsd*)
7422    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7423    ;;
7424  *)
7425    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7426    ;;
7427  esac
7428  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7429fi
7430
7431for cc_temp in $compiler""; do
7432  case $cc_temp in
7433    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7434    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7435    \-*) ;;
7436    *) break;;
7437  esac
7438done
7439cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7440
7441
7442# Only perform the check for file, if the check method requires it
7443case $deplibs_check_method in
7444file_magic*)
7445  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7446    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7447echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7448if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7449  echo $ECHO_N "(cached) $ECHO_C" >&6
7450else
7451  case $MAGIC_CMD in
7452[\\/*] |  ?:[\\/]*)
7453  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7454  ;;
7455*)
7456  lt_save_MAGIC_CMD="$MAGIC_CMD"
7457  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7458  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7459  for ac_dir in $ac_dummy; do
7460    IFS="$lt_save_ifs"
7461    test -z "$ac_dir" && ac_dir=.
7462    if test -f $ac_dir/${ac_tool_prefix}file; then
7463      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7464      if test -n "$file_magic_test_file"; then
7465        case $deplibs_check_method in
7466        "file_magic "*)
7467          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7468          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7469          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7470            $EGREP "$file_magic_regex" > /dev/null; then
7471            :
7472          else
7473            cat <<EOF 1>&2
7474
7475*** Warning: the command libtool uses to detect shared libraries,
7476*** $file_magic_cmd, produces output that libtool cannot recognize.
7477*** The result is that libtool may fail to recognize shared libraries
7478*** as such.  This will affect the creation of libtool libraries that
7479*** depend on shared libraries, but programs linked with such libtool
7480*** libraries will work regardless of this problem.  Nevertheless, you
7481*** may want to report the problem to your system manager and/or to
7482*** bug-libtool@gnu.org
7483
7484EOF
7485          fi ;;
7486        esac
7487      fi
7488      break
7489    fi
7490  done
7491  IFS="$lt_save_ifs"
7492  MAGIC_CMD="$lt_save_MAGIC_CMD"
7493  ;;
7494esac
7495fi
7496
7497MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7498if test -n "$MAGIC_CMD"; then
7499  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7500echo "${ECHO_T}$MAGIC_CMD" >&6
7501else
7502  echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6
7504fi
7505
7506if test -z "$lt_cv_path_MAGIC_CMD"; then
7507  if test -n "$ac_tool_prefix"; then
7508    echo "$as_me:$LINENO: checking for file" >&5
7509echo $ECHO_N "checking for file... $ECHO_C" >&6
7510if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7511  echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513  case $MAGIC_CMD in
7514[\\/*] |  ?:[\\/]*)
7515  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7516  ;;
7517*)
7518  lt_save_MAGIC_CMD="$MAGIC_CMD"
7519  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7520  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7521  for ac_dir in $ac_dummy; do
7522    IFS="$lt_save_ifs"
7523    test -z "$ac_dir" && ac_dir=.
7524    if test -f $ac_dir/file; then
7525      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7526      if test -n "$file_magic_test_file"; then
7527        case $deplibs_check_method in
7528        "file_magic "*)
7529          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7530          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7531          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7532            $EGREP "$file_magic_regex" > /dev/null; then
7533            :
7534          else
7535            cat <<EOF 1>&2
7536
7537*** Warning: the command libtool uses to detect shared libraries,
7538*** $file_magic_cmd, produces output that libtool cannot recognize.
7539*** The result is that libtool may fail to recognize shared libraries
7540*** as such.  This will affect the creation of libtool libraries that
7541*** depend on shared libraries, but programs linked with such libtool
7542*** libraries will work regardless of this problem.  Nevertheless, you
7543*** may want to report the problem to your system manager and/or to
7544*** bug-libtool@gnu.org
7545
7546EOF
7547          fi ;;
7548        esac
7549      fi
7550      break
7551    fi
7552  done
7553  IFS="$lt_save_ifs"
7554  MAGIC_CMD="$lt_save_MAGIC_CMD"
7555  ;;
7556esac
7557fi
7558
7559MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7560if test -n "$MAGIC_CMD"; then
7561  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7562echo "${ECHO_T}$MAGIC_CMD" >&6
7563else
7564  echo "$as_me:$LINENO: result: no" >&5
7565echo "${ECHO_T}no" >&6
7566fi
7567
7568  else
7569    MAGIC_CMD=:
7570  fi
7571fi
7572
7573  fi
7574  ;;
7575esac
7576
7577enable_dlopen=no
7578enable_win32_dll=no
7579
7580# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7581if test "${enable_libtool_lock+set}" = set; then
7582  enableval="$enable_libtool_lock"
7583
7584fi;
7585test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7586
7587
7588# Check whether --with-pic or --without-pic was given.
7589if test "${with_pic+set}" = set; then
7590  withval="$with_pic"
7591  pic_mode="$withval"
7592else
7593  pic_mode=default
7594fi;
7595test -z "$pic_mode" && pic_mode=default
7596
7597# Use C for the default configuration in the libtool script
7598tagname=
7599lt_save_CC="$CC"
7600ac_ext=c
7601ac_cpp='$CPP $CPPFLAGS'
7602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7604ac_compiler_gnu=$ac_cv_c_compiler_gnu
7605
7606
7607# Source file extension for C test sources.
7608ac_ext=c
7609
7610# Object file extension for compiled C test sources.
7611objext=o
7612objext=$objext
7613
7614# Code to be used in simple compile tests
7615lt_simple_compile_test_code="int some_variable = 0;\n"
7616
7617# Code to be used in simple link tests
7618lt_simple_link_test_code='int main(){return(0);}\n'
7619
7620
7621# If no C compiler was specified, use CC.
7622LTCC=${LTCC-"$CC"}
7623
7624# If no C compiler flags were specified, use CFLAGS.
7625LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7626
7627# Allow CC to be a program name with arguments.
7628compiler=$CC
7629
7630
7631# save warnings/boilerplate of simple test code
7632ac_outfile=conftest.$ac_objext
7633printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7634eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7635_lt_compiler_boilerplate=`cat conftest.err`
7636$rm conftest*
7637
7638ac_outfile=conftest.$ac_objext
7639printf "$lt_simple_link_test_code" >conftest.$ac_ext
7640eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7641_lt_linker_boilerplate=`cat conftest.err`
7642$rm conftest*
7643
7644
7645## CAVEAT EMPTOR:
7646## There is no encapsulation within the following macros, do not change
7647## the running order or otherwise move them around unless you know exactly
7648## what you are doing...
7649
7650lt_prog_compiler_no_builtin_flag=
7651
7652if test "$GCC" = yes; then
7653  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7654
7655
7656echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7657echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7658if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7659  echo $ECHO_N "(cached) $ECHO_C" >&6
7660else
7661  lt_cv_prog_compiler_rtti_exceptions=no
7662  ac_outfile=conftest.$ac_objext
7663   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7664   lt_compiler_flag="-fno-rtti -fno-exceptions"
7665   # Insert the option either (1) after the last *FLAGS variable, or
7666   # (2) before a word containing "conftest.", or (3) at the end.
7667   # Note that $ac_compile itself does not contain backslashes and begins
7668   # with a dollar sign (not a hyphen), so the echo should work correctly.
7669   # The option is referenced via a variable to avoid confusing sed.
7670   lt_compile=`echo "$ac_compile" | $SED \
7671   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7672   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7673   -e 's:$: $lt_compiler_flag:'`
7674   (eval echo "\"\$as_me:7674: $lt_compile\"" >&5)
7675   (eval "$lt_compile" 2>conftest.err)
7676   ac_status=$?
7677   cat conftest.err >&5
7678   echo "$as_me:7678: \$? = $ac_status" >&5
7679   if (exit $ac_status) && test -s "$ac_outfile"; then
7680     # The compiler can only warn and ignore the option if not recognized
7681     # So say no if there are warnings other than the usual output.
7682     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7683     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7684     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7685       lt_cv_prog_compiler_rtti_exceptions=yes
7686     fi
7687   fi
7688   $rm conftest*
7689
7690fi
7691echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7692echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7693
7694if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7695    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7696else
7697    :
7698fi
7699
7700fi
7701
7702lt_prog_compiler_wl=
7703lt_prog_compiler_pic=
7704lt_prog_compiler_static=
7705
7706echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7707echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7708
7709  if test "$GCC" = yes; then
7710    lt_prog_compiler_wl='-Wl,'
7711    lt_prog_compiler_static='-static'
7712
7713    case $host_os in
7714      aix*)
7715      # All AIX code is PIC.
7716      if test "$host_cpu" = ia64; then
7717        # AIX 5 now supports IA64 processor
7718        lt_prog_compiler_static='-Bstatic'
7719      fi
7720      ;;
7721
7722    amigaos*)
7723      # FIXME: we need at least 68020 code to build shared libraries, but
7724      # adding the `-m68020' flag to GCC prevents building anything better,
7725      # like `-m68040'.
7726      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7727      ;;
7728
7729    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7730      # PIC is the default for these OSes.
7731      ;;
7732
7733    mingw* | pw32* | os2*)
7734      # This hack is so that the source file can tell whether it is being
7735      # built for inclusion in a dll (and should export symbols for example).
7736      lt_prog_compiler_pic='-DDLL_EXPORT'
7737      ;;
7738
7739    darwin* | rhapsody*)
7740      # PIC is the default on this platform
7741      # Common symbols not allowed in MH_DYLIB files
7742      lt_prog_compiler_pic='-fno-common'
7743      ;;
7744
7745    interix3*)
7746      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7747      # Instead, we relocate shared libraries at runtime.
7748      ;;
7749
7750    msdosdjgpp*)
7751      # Just because we use GCC doesn't mean we suddenly get shared libraries
7752      # on systems that don't support them.
7753      lt_prog_compiler_can_build_shared=no
7754      enable_shared=no
7755      ;;
7756
7757    sysv4*MP*)
7758      if test -d /usr/nec; then
7759        lt_prog_compiler_pic=-Kconform_pic
7760      fi
7761      ;;
7762
7763    hpux*)
7764      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7765      # not for PA HP-UX.
7766      case $host_cpu in
7767      hppa*64*|ia64*)
7768        # +Z the default
7769        ;;
7770      *)
7771        lt_prog_compiler_pic='-fPIC'
7772        ;;
7773      esac
7774      ;;
7775
7776    *)
7777      lt_prog_compiler_pic='-fPIC'
7778      ;;
7779    esac
7780  else
7781    # PORTME Check for flag to pass linker flags through the system compiler.
7782    case $host_os in
7783    aix*)
7784      lt_prog_compiler_wl='-Wl,'
7785      if test "$host_cpu" = ia64; then
7786        # AIX 5 now supports IA64 processor
7787        lt_prog_compiler_static='-Bstatic'
7788      else
7789        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7790      fi
7791      ;;
7792      darwin*)
7793        # PIC is the default on this platform
7794        # Common symbols not allowed in MH_DYLIB files
7795       case $cc_basename in
7796         xlc*)
7797         lt_prog_compiler_pic='-qnocommon'
7798         lt_prog_compiler_wl='-Wl,'
7799         ;;
7800       esac
7801       ;;
7802
7803    mingw* | pw32* | os2*)
7804      # This hack is so that the source file can tell whether it is being
7805      # built for inclusion in a dll (and should export symbols for example).
7806      lt_prog_compiler_pic='-DDLL_EXPORT'
7807      ;;
7808
7809    hpux9* | hpux10* | hpux11*)
7810      lt_prog_compiler_wl='-Wl,'
7811      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7812      # not for PA HP-UX.
7813      case $host_cpu in
7814      hppa*64*|ia64*)
7815        # +Z the default
7816        ;;
7817      *)
7818        lt_prog_compiler_pic='+Z'
7819        ;;
7820      esac
7821      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7822      lt_prog_compiler_static='${wl}-a ${wl}archive'
7823      ;;
7824
7825    irix5* | irix6* | nonstopux*)
7826      lt_prog_compiler_wl='-Wl,'
7827      # PIC (with -KPIC) is the default.
7828      lt_prog_compiler_static='-non_shared'
7829      ;;
7830
7831    newsos6)
7832      lt_prog_compiler_pic='-KPIC'
7833      lt_prog_compiler_static='-Bstatic'
7834      ;;
7835
7836    linux*)
7837      case $cc_basename in
7838      icc* | ecc*)
7839        lt_prog_compiler_wl='-Wl,'
7840        lt_prog_compiler_pic='-KPIC'
7841        lt_prog_compiler_static='-static'
7842        ;;
7843      pgcc* | pgf77* | pgf90* | pgf95*)
7844        # Portland Group compilers (*not* the Pentium gcc compiler,
7845        # which looks to be a dead project)
7846        lt_prog_compiler_wl='-Wl,'
7847        lt_prog_compiler_pic='-fpic'
7848        lt_prog_compiler_static='-Bstatic'
7849        ;;
7850      ccc*)
7851        lt_prog_compiler_wl='-Wl,'
7852        # All Alpha code is PIC.
7853        lt_prog_compiler_static='-non_shared'
7854        ;;
7855      esac
7856      ;;
7857
7858    osf3* | osf4* | osf5*)
7859      lt_prog_compiler_wl='-Wl,'
7860      # All OSF/1 code is PIC.
7861      lt_prog_compiler_static='-non_shared'
7862      ;;
7863
7864    solaris*)
7865      lt_prog_compiler_pic='-KPIC'
7866      lt_prog_compiler_static='-Bstatic'
7867      case $cc_basename in
7868      f77* | f90* | f95*)
7869        lt_prog_compiler_wl='-Qoption ld ';;
7870      *)
7871        lt_prog_compiler_wl='-Wl,';;
7872      esac
7873      ;;
7874
7875    sunos4*)
7876      lt_prog_compiler_wl='-Qoption ld '
7877      lt_prog_compiler_pic='-PIC'
7878      lt_prog_compiler_static='-Bstatic'
7879      ;;
7880
7881    sysv4 | sysv4.2uw2* | sysv4.3*)
7882      lt_prog_compiler_wl='-Wl,'
7883      lt_prog_compiler_pic='-KPIC'
7884      lt_prog_compiler_static='-Bstatic'
7885      ;;
7886
7887    sysv4*MP*)
7888      if test -d /usr/nec ;then
7889        lt_prog_compiler_pic='-Kconform_pic'
7890        lt_prog_compiler_static='-Bstatic'
7891      fi
7892      ;;
7893
7894    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7895      lt_prog_compiler_wl='-Wl,'
7896      lt_prog_compiler_pic='-KPIC'
7897      lt_prog_compiler_static='-Bstatic'
7898      ;;
7899
7900    unicos*)
7901      lt_prog_compiler_wl='-Wl,'
7902      lt_prog_compiler_can_build_shared=no
7903      ;;
7904
7905    uts4*)
7906      lt_prog_compiler_pic='-pic'
7907      lt_prog_compiler_static='-Bstatic'
7908      ;;
7909
7910    *)
7911      lt_prog_compiler_can_build_shared=no
7912      ;;
7913    esac
7914  fi
7915
7916echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7917echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7918
7919#
7920# Check to make sure the PIC flag actually works.
7921#
7922if test -n "$lt_prog_compiler_pic"; then
7923
7924echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7925echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7926if test "${lt_prog_compiler_pic_works+set}" = set; then
7927  echo $ECHO_N "(cached) $ECHO_C" >&6
7928else
7929  lt_prog_compiler_pic_works=no
7930  ac_outfile=conftest.$ac_objext
7931   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7932   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7933   # Insert the option either (1) after the last *FLAGS variable, or
7934   # (2) before a word containing "conftest.", or (3) at the end.
7935   # Note that $ac_compile itself does not contain backslashes and begins
7936   # with a dollar sign (not a hyphen), so the echo should work correctly.
7937   # The option is referenced via a variable to avoid confusing sed.
7938   lt_compile=`echo "$ac_compile" | $SED \
7939   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7940   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7941   -e 's:$: $lt_compiler_flag:'`
7942   (eval echo "\"\$as_me:7942: $lt_compile\"" >&5)
7943   (eval "$lt_compile" 2>conftest.err)
7944   ac_status=$?
7945   cat conftest.err >&5
7946   echo "$as_me:7946: \$? = $ac_status" >&5
7947   if (exit $ac_status) && test -s "$ac_outfile"; then
7948     # The compiler can only warn and ignore the option if not recognized
7949     # So say no if there are warnings other than the usual output.
7950     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7951     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7952     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7953       lt_prog_compiler_pic_works=yes
7954     fi
7955   fi
7956   $rm conftest*
7957
7958fi
7959echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7960echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7961
7962if test x"$lt_prog_compiler_pic_works" = xyes; then
7963    case $lt_prog_compiler_pic in
7964     "" | " "*) ;;
7965     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7966     esac
7967else
7968    lt_prog_compiler_pic=
7969     lt_prog_compiler_can_build_shared=no
7970fi
7971
7972fi
7973case $host_os in
7974  # For platforms which do not support PIC, -DPIC is meaningless:
7975  *djgpp*)
7976    lt_prog_compiler_pic=
7977    ;;
7978  *)
7979    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7980    ;;
7981esac
7982
7983#
7984# Check to make sure the static flag actually works.
7985#
7986wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7987echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7988echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7989if test "${lt_prog_compiler_static_works+set}" = set; then
7990  echo $ECHO_N "(cached) $ECHO_C" >&6
7991else
7992  lt_prog_compiler_static_works=no
7993   save_LDFLAGS="$LDFLAGS"
7994   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7995   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7996   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7997     # The linker can only warn and ignore the option if not recognized
7998     # So say no if there are warnings
7999     if test -s conftest.err; then
8000       # Append any errors to the config.log.
8001       cat conftest.err 1>&5
8002       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8003       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8004       if diff conftest.exp conftest.er2 >/dev/null; then
8005         lt_prog_compiler_static_works=yes
8006       fi
8007     else
8008       lt_prog_compiler_static_works=yes
8009     fi
8010   fi
8011   $rm conftest*
8012   LDFLAGS="$save_LDFLAGS"
8013
8014fi
8015echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8016echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8017
8018if test x"$lt_prog_compiler_static_works" = xyes; then
8019    :
8020else
8021    lt_prog_compiler_static=
8022fi
8023
8024
8025echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8026echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8027if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8028  echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030  lt_cv_prog_compiler_c_o=no
8031   $rm -r conftest 2>/dev/null
8032   mkdir conftest
8033   cd conftest
8034   mkdir out
8035   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8036
8037   lt_compiler_flag="-o out/conftest2.$ac_objext"
8038   # Insert the option either (1) after the last *FLAGS variable, or
8039   # (2) before a word containing "conftest.", or (3) at the end.
8040   # Note that $ac_compile itself does not contain backslashes and begins
8041   # with a dollar sign (not a hyphen), so the echo should work correctly.
8042   lt_compile=`echo "$ac_compile" | $SED \
8043   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8044   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8045   -e 's:$: $lt_compiler_flag:'`
8046   (eval echo "\"\$as_me:8046: $lt_compile\"" >&5)
8047   (eval "$lt_compile" 2>out/conftest.err)
8048   ac_status=$?
8049   cat out/conftest.err >&5
8050   echo "$as_me:8050: \$? = $ac_status" >&5
8051   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8052   then
8053     # The compiler can only warn and ignore the option if not recognized
8054     # So say no if there are warnings
8055     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8056     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8057     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8058       lt_cv_prog_compiler_c_o=yes
8059     fi
8060   fi
8061   chmod u+w . 2>&5
8062   $rm conftest*
8063   # SGI C++ compiler will create directory out/ii_files/ for
8064   # template instantiation
8065   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8066   $rm out/* && rmdir out
8067   cd ..
8068   rmdir conftest
8069   $rm conftest*
8070
8071fi
8072echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8073echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8074
8075
8076hard_links="nottested"
8077if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8078  # do not overwrite the value of need_locks provided by the user
8079  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8080echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8081  hard_links=yes
8082  $rm conftest*
8083  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8084  touch conftest.a
8085  ln conftest.a conftest.b 2>&5 || hard_links=no
8086  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8087  echo "$as_me:$LINENO: result: $hard_links" >&5
8088echo "${ECHO_T}$hard_links" >&6
8089  if test "$hard_links" = no; then
8090    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8091echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8092    need_locks=warn
8093  fi
8094else
8095  need_locks=no
8096fi
8097
8098echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8099echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8100
8101  runpath_var=
8102  allow_undefined_flag=
8103  enable_shared_with_static_runtimes=no
8104  archive_cmds=
8105  archive_expsym_cmds=
8106  old_archive_From_new_cmds=
8107  old_archive_from_expsyms_cmds=
8108  export_dynamic_flag_spec=
8109  whole_archive_flag_spec=
8110  thread_safe_flag_spec=
8111  hardcode_libdir_flag_spec=
8112  hardcode_libdir_flag_spec_ld=
8113  hardcode_libdir_separator=
8114  hardcode_direct=no
8115  hardcode_minus_L=no
8116  hardcode_shlibpath_var=unsupported
8117  link_all_deplibs=unknown
8118  hardcode_automatic=no
8119  module_cmds=
8120  module_expsym_cmds=
8121  always_export_symbols=no
8122  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8123  # include_expsyms should be a list of space-separated symbols to be *always*
8124  # included in the symbol list
8125  include_expsyms=
8126  # exclude_expsyms can be an extended regexp of symbols to exclude
8127  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8128  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8129  # as well as any symbol that contains `d'.
8130  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8131  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8132  # platforms (ab)use it in PIC code, but their linkers get confused if
8133  # the symbol is explicitly referenced.  Since portable code cannot
8134  # rely on this symbol name, it's probably fine to never include it in
8135  # preloaded symbol tables.
8136  extract_expsyms_cmds=
8137  # Just being paranoid about ensuring that cc_basename is set.
8138  for cc_temp in $compiler""; do
8139  case $cc_temp in
8140    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8141    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8142    \-*) ;;
8143    *) break;;
8144  esac
8145done
8146cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8147
8148  case $host_os in
8149  cygwin* | mingw* | pw32*)
8150    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8151    # When not using gcc, we currently assume that we are using
8152    # Microsoft Visual C++.
8153    if test "$GCC" != yes; then
8154      with_gnu_ld=no
8155    fi
8156    ;;
8157  interix*)
8158    # we just hope/assume this is gcc and not c89 (= MSVC++)
8159    with_gnu_ld=yes
8160    ;;
8161  openbsd*)
8162    with_gnu_ld=no
8163    ;;
8164  esac
8165
8166  ld_shlibs=yes
8167  if test "$with_gnu_ld" = yes; then
8168    # If archive_cmds runs LD, not CC, wlarc should be empty
8169    wlarc='${wl}'
8170
8171    # Set some defaults for GNU ld with shared library support. These
8172    # are reset later if shared libraries are not supported. Putting them
8173    # here allows them to be overridden if necessary.
8174    runpath_var=LD_RUN_PATH
8175    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8176    export_dynamic_flag_spec='${wl}--export-dynamic'
8177    # ancient GNU ld didn't support --whole-archive et. al.
8178    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8179        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8180      else
8181        whole_archive_flag_spec=
8182    fi
8183    supports_anon_versioning=no
8184    case `$LD -v 2>/dev/null` in
8185      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8186      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8187      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8188      *\ 2.11.*) ;; # other 2.11 versions
8189      *) supports_anon_versioning=yes ;;
8190    esac
8191
8192    # See if GNU ld supports shared libraries.
8193    case $host_os in
8194    aix3* | aix4* | aix5*)
8195      # On AIX/PPC, the GNU linker is very broken
8196      if test "$host_cpu" != ia64; then
8197        ld_shlibs=no
8198        cat <<EOF 1>&2
8199
8200*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8201*** to be unable to reliably create shared libraries on AIX.
8202*** Therefore, libtool is disabling shared libraries support.  If you
8203*** really care for shared libraries, you may want to modify your PATH
8204*** so that a non-GNU linker is found, and then restart.
8205
8206EOF
8207      fi
8208      ;;
8209
8210    amigaos*)
8211      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)'
8212      hardcode_libdir_flag_spec='-L$libdir'
8213      hardcode_minus_L=yes
8214
8215      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8216      # that the semantics of dynamic libraries on AmigaOS, at least up
8217      # to version 4, is to share data among multiple programs linked
8218      # with the same dynamic library.  Since this doesn't match the
8219      # behavior of shared libraries on other platforms, we can't use
8220      # them.
8221      ld_shlibs=no
8222      ;;
8223
8224    beos*)
8225      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8226        allow_undefined_flag=unsupported
8227        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8228        # support --undefined.  This deserves some investigation.  FIXME
8229        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230      else
8231        ld_shlibs=no
8232      fi
8233      ;;
8234
8235    cygwin* | mingw* | pw32*)
8236      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8237      # as there is no search path for DLLs.
8238      hardcode_libdir_flag_spec='-L$libdir'
8239      allow_undefined_flag=unsupported
8240      always_export_symbols=no
8241      enable_shared_with_static_runtimes=yes
8242      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8243
8244      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8245        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8246        # If the export-symbols file already is a .def file (1st line
8247        # is EXPORTS), use it as is; otherwise, prepend...
8248        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8249          cp $export_symbols $output_objdir/$soname.def;
8250        else
8251          echo EXPORTS > $output_objdir/$soname.def;
8252          cat $export_symbols >> $output_objdir/$soname.def;
8253        fi~
8254        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8255      else
8256        ld_shlibs=no
8257      fi
8258      ;;
8259
8260    interix3*)
8261      hardcode_direct=no
8262      hardcode_shlibpath_var=no
8263      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8264      export_dynamic_flag_spec='${wl}-E'
8265      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8266      # Instead, shared libraries are loaded at an image base (0x10000000 by
8267      # default) and relocated if they conflict, which is a slow very memory
8268      # consuming and fragmenting process.  To avoid this, we pick a random,
8269      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8270      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8271      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8272      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'
8273      ;;
8274
8275    linux*)
8276      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8277        tmp_addflag=
8278        case $cc_basename,$host_cpu in
8279        pgcc*)                          # Portland Group C compiler
8280          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'
8281          tmp_addflag=' $pic_flag'
8282          ;;
8283        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8284          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'
8285          tmp_addflag=' $pic_flag -Mnomain' ;;
8286        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8287          tmp_addflag=' -i_dynamic' ;;
8288        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8289          tmp_addflag=' -i_dynamic -nofor_main' ;;
8290        ifc* | ifort*)                  # Intel Fortran compiler
8291          tmp_addflag=' -nofor_main' ;;
8292        esac
8293        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8294
8295        if test $supports_anon_versioning = yes; then
8296          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8297  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8298  $echo "local: *; };" >> $output_objdir/$libname.ver~
8299          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8300        fi
8301      else
8302        ld_shlibs=no
8303      fi
8304      ;;
8305
8306    netbsd*)
8307      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8308        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8309        wlarc=
8310      else
8311        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8313      fi
8314      ;;
8315
8316    solaris*)
8317      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8318        ld_shlibs=no
8319        cat <<EOF 1>&2
8320
8321*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8322*** create shared libraries on Solaris systems.  Therefore, libtool
8323*** is disabling shared libraries support.  We urge you to upgrade GNU
8324*** binutils to release 2.9.1 or newer.  Another option is to modify
8325*** your PATH or compiler configuration so that the native linker is
8326*** used, and then restart.
8327
8328EOF
8329      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8330        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8331        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8332      else
8333        ld_shlibs=no
8334      fi
8335      ;;
8336
8337    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8338      case `$LD -v 2>&1` in
8339        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8340        ld_shlibs=no
8341        cat <<_LT_EOF 1>&2
8342
8343*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8344*** reliably create shared libraries on SCO systems.  Therefore, libtool
8345*** is disabling shared libraries support.  We urge you to upgrade GNU
8346*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8347*** your PATH or compiler configuration so that the native linker is
8348*** used, and then restart.
8349
8350_LT_EOF
8351        ;;
8352        *)
8353          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8354            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8355            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8356            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8357          else
8358            ld_shlibs=no
8359          fi
8360        ;;
8361      esac
8362      ;;
8363
8364    sunos4*)
8365      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8366      wlarc=
8367      hardcode_direct=yes
8368      hardcode_shlibpath_var=no
8369      ;;
8370
8371    *)
8372      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8373        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8374        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8375      else
8376        ld_shlibs=no
8377      fi
8378      ;;
8379    esac
8380
8381    if test "$ld_shlibs" = no; then
8382      runpath_var=
8383      hardcode_libdir_flag_spec=
8384      export_dynamic_flag_spec=
8385      whole_archive_flag_spec=
8386    fi
8387  else
8388    # PORTME fill in a description of your system's linker (not GNU ld)
8389    case $host_os in
8390    aix3*)
8391      allow_undefined_flag=unsupported
8392      always_export_symbols=yes
8393      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'
8394      # Note: this linker hardcodes the directories in LIBPATH if there
8395      # are no directories specified by -L.
8396      hardcode_minus_L=yes
8397      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8398        # Neither direct hardcoding nor static linking is supported with a
8399        # broken collect2.
8400        hardcode_direct=unsupported
8401      fi
8402      ;;
8403
8404    aix4* | aix5*)
8405      if test "$host_cpu" = ia64; then
8406        # On IA64, the linker does run time linking by default, so we don't
8407        # have to do anything special.
8408        aix_use_runtimelinking=no
8409        exp_sym_flag='-Bexport'
8410        no_entry_flag=""
8411      else
8412        # If we're using GNU nm, then we don't want the "-C" option.
8413        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8414        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8415          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'
8416        else
8417          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'
8418        fi
8419        aix_use_runtimelinking=no
8420
8421        # Test if we are trying to use run time linking or normal
8422        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8423        # need to do runtime linking.
8424        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8425          for ld_flag in $LDFLAGS; do
8426          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8427            aix_use_runtimelinking=yes
8428            break
8429          fi
8430          done
8431          ;;
8432        esac
8433
8434        exp_sym_flag='-bexport'
8435        no_entry_flag='-bnoentry'
8436      fi
8437
8438      # When large executables or shared objects are built, AIX ld can
8439      # have problems creating the table of contents.  If linking a library
8440      # or program results in "error TOC overflow" add -mminimal-toc to
8441      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8442      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8443
8444      archive_cmds=''
8445      hardcode_direct=yes
8446      hardcode_libdir_separator=':'
8447      link_all_deplibs=yes
8448
8449      if test "$GCC" = yes; then
8450        case $host_os in aix4.[012]|aix4.[012].*)
8451        # We only want to do this on AIX 4.2 and lower, the check
8452        # below for broken collect2 doesn't work under 4.3+
8453          collect2name=`${CC} -print-prog-name=collect2`
8454          if test -f "$collect2name" && \
8455           strings "$collect2name" | grep resolve_lib_name >/dev/null
8456          then
8457          # We have reworked collect2
8458          hardcode_direct=yes
8459          else
8460          # We have old collect2
8461          hardcode_direct=unsupported
8462          # It fails to find uninstalled libraries when the uninstalled
8463          # path is not listed in the libpath.  Setting hardcode_minus_L
8464          # to unsupported forces relinking
8465          hardcode_minus_L=yes
8466          hardcode_libdir_flag_spec='-L$libdir'
8467          hardcode_libdir_separator=
8468          fi
8469          ;;
8470        esac
8471        shared_flag='-shared'
8472        if test "$aix_use_runtimelinking" = yes; then
8473          shared_flag="$shared_flag "'${wl}-G'
8474        fi
8475      else
8476        # not using gcc
8477        if test "$host_cpu" = ia64; then
8478        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8479        # chokes on -Wl,-G. The following line is correct:
8480          shared_flag='-G'
8481        else
8482          if test "$aix_use_runtimelinking" = yes; then
8483            shared_flag='${wl}-G'
8484          else
8485            shared_flag='${wl}-bM:SRE'
8486          fi
8487        fi
8488      fi
8489
8490      # It seems that -bexpall does not export symbols beginning with
8491      # underscore (_), so it is better to generate a list of symbols to export.
8492      always_export_symbols=yes
8493      if test "$aix_use_runtimelinking" = yes; then
8494        # Warning - without using the other runtime loading flags (-brtl),
8495        # -berok will link without error, but may produce a broken library.
8496        allow_undefined_flag='-berok'
8497       # Determine the default libpath from the value encoded in an empty executable.
8498       cat >conftest.$ac_ext <<_ACEOF
8499/* confdefs.h.  */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h.  */
8504
8505int
8506main ()
8507{
8508
8509  ;
8510  return 0;
8511}
8512_ACEOF
8513rm -f conftest.$ac_objext conftest$ac_exeext
8514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515  (eval $ac_link) 2>conftest.er1
8516  ac_status=$?
8517  grep -v '^ *+' conftest.er1 >conftest.err
8518  rm -f conftest.er1
8519  cat conftest.err >&5
8520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521  (exit $ac_status); } &&
8522         { ac_try='test -z "$ac_c_werror_flag"
8523                         || test ! -s conftest.err'
8524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525  (eval $ac_try) 2>&5
8526  ac_status=$?
8527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528  (exit $ac_status); }; } &&
8529         { ac_try='test -s conftest$ac_exeext'
8530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531  (eval $ac_try) 2>&5
8532  ac_status=$?
8533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534  (exit $ac_status); }; }; then
8535
8536aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8537}'`
8538# Check for a 64-bit object if we didn't find anything.
8539if 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; }
8540}'`; fi
8541else
8542  echo "$as_me: failed program was:" >&5
8543sed 's/^/| /' conftest.$ac_ext >&5
8544
8545fi
8546rm -f conftest.err conftest.$ac_objext \
8547      conftest$ac_exeext conftest.$ac_ext
8548if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8549
8550       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8551        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"
8552       else
8553        if test "$host_cpu" = ia64; then
8554          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8555          allow_undefined_flag="-z nodefs"
8556          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"
8557        else
8558         # Determine the default libpath from the value encoded in an empty executable.
8559         cat >conftest.$ac_ext <<_ACEOF
8560/* confdefs.h.  */
8561_ACEOF
8562cat confdefs.h >>conftest.$ac_ext
8563cat >>conftest.$ac_ext <<_ACEOF
8564/* end confdefs.h.  */
8565
8566int
8567main ()
8568{
8569
8570  ;
8571  return 0;
8572}
8573_ACEOF
8574rm -f conftest.$ac_objext conftest$ac_exeext
8575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8576  (eval $ac_link) 2>conftest.er1
8577  ac_status=$?
8578  grep -v '^ *+' conftest.er1 >conftest.err
8579  rm -f conftest.er1
8580  cat conftest.err >&5
8581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582  (exit $ac_status); } &&
8583         { ac_try='test -z "$ac_c_werror_flag"
8584                         || test ! -s conftest.err'
8585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586  (eval $ac_try) 2>&5
8587  ac_status=$?
8588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589  (exit $ac_status); }; } &&
8590         { ac_try='test -s conftest$ac_exeext'
8591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592  (eval $ac_try) 2>&5
8593  ac_status=$?
8594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595  (exit $ac_status); }; }; then
8596
8597aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8598}'`
8599# Check for a 64-bit object if we didn't find anything.
8600if 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; }
8601}'`; fi
8602else
8603  echo "$as_me: failed program was:" >&5
8604sed 's/^/| /' conftest.$ac_ext >&5
8605
8606fi
8607rm -f conftest.err conftest.$ac_objext \
8608      conftest$ac_exeext conftest.$ac_ext
8609if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8610
8611         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8612          # Warning - without using the other run time loading flags,
8613          # -berok will link without error, but may produce a broken library.
8614          no_undefined_flag=' ${wl}-bernotok'
8615          allow_undefined_flag=' ${wl}-berok'
8616          # Exported symbols can be pulled into shared objects from archives
8617          whole_archive_flag_spec='$convenience'
8618          archive_cmds_need_lc=yes
8619          # This is similar to how AIX traditionally builds its shared libraries.
8620          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'
8621        fi
8622      fi
8623      ;;
8624
8625    amigaos*)
8626      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)'
8627      hardcode_libdir_flag_spec='-L$libdir'
8628      hardcode_minus_L=yes
8629      # see comment about different semantics on the GNU ld section
8630      ld_shlibs=no
8631      ;;
8632
8633    bsdi[45]*)
8634      export_dynamic_flag_spec=-rdynamic
8635      ;;
8636
8637    cygwin* | mingw* | pw32*)
8638      # When not using gcc, we currently assume that we are using
8639      # Microsoft Visual C++.
8640      # hardcode_libdir_flag_spec is actually meaningless, as there is
8641      # no search path for DLLs.
8642      hardcode_libdir_flag_spec=' '
8643      allow_undefined_flag=unsupported
8644      # Tell ltmain to make .lib files, not .a files.
8645      libext=lib
8646      # Tell ltmain to make .dll files, not .so files.
8647      shrext_cmds=".dll"
8648      # FIXME: Setting linknames here is a bad hack.
8649      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8650      # The linker will automatically build a .lib file if we build a DLL.
8651      old_archive_From_new_cmds='true'
8652      # FIXME: Should let the user specify the lib program.
8653      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8654      fix_srcfile_path='`cygpath -w "$srcfile"`'
8655      enable_shared_with_static_runtimes=yes
8656      ;;
8657
8658    darwin* | rhapsody*)
8659      case $host_os in
8660        rhapsody* | darwin1.[012])
8661         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8662         ;;
8663       *) # Darwin 1.3 on
8664         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8665           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8666         else
8667           case ${MACOSX_DEPLOYMENT_TARGET} in
8668             10.[012])
8669               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8670               ;;
8671             10.*)
8672               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8673               ;;
8674           esac
8675         fi
8676         ;;
8677      esac
8678      archive_cmds_need_lc=no
8679      hardcode_direct=no
8680      hardcode_automatic=yes
8681      hardcode_shlibpath_var=unsupported
8682      whole_archive_flag_spec=''
8683      link_all_deplibs=yes
8684    if test "$GCC" = yes ; then
8685        output_verbose_link_cmd='echo'
8686        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8687      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8688      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8689      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}'
8690      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}'
8691    else
8692      case $cc_basename in
8693        xlc*)
8694         output_verbose_link_cmd='echo'
8695         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8696         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8697          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8698         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}'
8699          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}'
8700          ;;
8701       *)
8702         ld_shlibs=no
8703          ;;
8704      esac
8705    fi
8706      ;;
8707
8708    dgux*)
8709      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8710      hardcode_libdir_flag_spec='-L$libdir'
8711      hardcode_shlibpath_var=no
8712      ;;
8713
8714    freebsd1*)
8715      ld_shlibs=no
8716      ;;
8717
8718    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8719    # support.  Future versions do this automatically, but an explicit c++rt0.o
8720    # does not break anything, and helps significantly (at the cost of a little
8721    # extra space).
8722    freebsd2.2*)
8723      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8724      hardcode_libdir_flag_spec='-R$libdir'
8725      hardcode_direct=yes
8726      hardcode_shlibpath_var=no
8727      ;;
8728
8729    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8730    freebsd2*)
8731      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8732      hardcode_direct=yes
8733      hardcode_minus_L=yes
8734      hardcode_shlibpath_var=no
8735      ;;
8736
8737    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8738    freebsd* | kfreebsd*-gnu | dragonfly*)
8739      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8740      hardcode_libdir_flag_spec='-R$libdir'
8741      hardcode_direct=yes
8742      hardcode_shlibpath_var=no
8743      ;;
8744
8745    hpux9*)
8746      if test "$GCC" = yes; then
8747        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'
8748      else
8749        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'
8750      fi
8751      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8752      hardcode_libdir_separator=:
8753      hardcode_direct=yes
8754
8755      # hardcode_minus_L: Not really in the search PATH,
8756      # but as the default location of the library.
8757      hardcode_minus_L=yes
8758      export_dynamic_flag_spec='${wl}-E'
8759      ;;
8760
8761    hpux10*)
8762      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8763        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8764      else
8765        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8766      fi
8767      if test "$with_gnu_ld" = no; then
8768        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8769        hardcode_libdir_separator=:
8770
8771        hardcode_direct=yes
8772        export_dynamic_flag_spec='${wl}-E'
8773
8774        # hardcode_minus_L: Not really in the search PATH,
8775        # but as the default location of the library.
8776        hardcode_minus_L=yes
8777      fi
8778      ;;
8779
8780    hpux11*)
8781      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8782        case $host_cpu in
8783        hppa*64*)
8784          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8785          ;;
8786        ia64*)
8787          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8788          ;;
8789        *)
8790          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8791          ;;
8792        esac
8793      else
8794        case $host_cpu in
8795        hppa*64*)
8796          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8797          ;;
8798        ia64*)
8799          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8800          ;;
8801        *)
8802          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8803          ;;
8804        esac
8805      fi
8806      if test "$with_gnu_ld" = no; then
8807        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8808        hardcode_libdir_separator=:
8809
8810        case $host_cpu in
8811        hppa*64*|ia64*)
8812          hardcode_libdir_flag_spec_ld='+b $libdir'
8813          hardcode_direct=no
8814          hardcode_shlibpath_var=no
8815          ;;
8816        *)
8817          hardcode_direct=yes
8818          export_dynamic_flag_spec='${wl}-E'
8819
8820          # hardcode_minus_L: Not really in the search PATH,
8821          # but as the default location of the library.
8822          hardcode_minus_L=yes
8823          ;;
8824        esac
8825      fi
8826      ;;
8827
8828    irix5* | irix6* | nonstopux*)
8829      if test "$GCC" = yes; then
8830        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'
8831      else
8832        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'
8833        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8834      fi
8835      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8836      hardcode_libdir_separator=:
8837      link_all_deplibs=yes
8838      ;;
8839
8840    netbsd*)
8841      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8842        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8843      else
8844        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8845      fi
8846      hardcode_libdir_flag_spec='-R$libdir'
8847      hardcode_direct=yes
8848      hardcode_shlibpath_var=no
8849      ;;
8850
8851    newsos6)
8852      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853      hardcode_direct=yes
8854      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8855      hardcode_libdir_separator=:
8856      hardcode_shlibpath_var=no
8857      ;;
8858
8859    openbsd*)
8860      hardcode_direct=yes
8861      hardcode_shlibpath_var=no
8862      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8863        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8864        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8865        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866        export_dynamic_flag_spec='${wl}-E'
8867      else
8868       case $host_os in
8869         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8870           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8871           hardcode_libdir_flag_spec='-R$libdir'
8872           ;;
8873         *)
8874           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8875           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8876           ;;
8877       esac
8878      fi
8879      ;;
8880
8881    os2*)
8882      hardcode_libdir_flag_spec='-L$libdir'
8883      hardcode_minus_L=yes
8884      allow_undefined_flag=unsupported
8885      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'
8886      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8887      ;;
8888
8889    osf3*)
8890      if test "$GCC" = yes; then
8891        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8892        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'
8893      else
8894        allow_undefined_flag=' -expect_unresolved \*'
8895        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'
8896      fi
8897      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8898      hardcode_libdir_separator=:
8899      ;;
8900
8901    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8902      if test "$GCC" = yes; then
8903        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8904        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'
8905        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8906      else
8907        allow_undefined_flag=' -expect_unresolved \*'
8908        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'
8909        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8910        $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'
8911
8912        # Both c and cxx compiler support -rpath directly
8913        hardcode_libdir_flag_spec='-rpath $libdir'
8914      fi
8915      hardcode_libdir_separator=:
8916      ;;
8917
8918    solaris*)
8919      no_undefined_flag=' -z text'
8920      if test "$GCC" = yes; then
8921        wlarc='${wl}'
8922        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8923        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8924          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8925      else
8926        wlarc=''
8927        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8928        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8929        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8930      fi
8931      hardcode_libdir_flag_spec='-R$libdir'
8932      hardcode_shlibpath_var=no
8933      case $host_os in
8934      solaris2.[0-5] | solaris2.[0-5].*) ;;
8935      *)
8936        # The compiler driver will combine linker options so we
8937        # cannot just pass the convience library names through
8938        # without $wl, iff we do not link with $LD.
8939        # Luckily, gcc supports the same syntax we need for Sun Studio.
8940        # Supported since Solaris 2.6 (maybe 2.5.1?)
8941        case $wlarc in
8942        '')
8943          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8944        *)
8945          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' ;;
8946        esac ;;
8947      esac
8948      link_all_deplibs=yes
8949      ;;
8950
8951    sunos4*)
8952      if test "x$host_vendor" = xsequent; then
8953        # Use $CC to link under sequent, because it throws in some extra .o
8954        # files that make .init and .fini sections work.
8955        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8956      else
8957        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8958      fi
8959      hardcode_libdir_flag_spec='-L$libdir'
8960      hardcode_direct=yes
8961      hardcode_minus_L=yes
8962      hardcode_shlibpath_var=no
8963      ;;
8964
8965    sysv4)
8966      case $host_vendor in
8967        sni)
8968          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8969          hardcode_direct=yes # is this really true???
8970        ;;
8971        siemens)
8972          ## LD is ld it makes a PLAMLIB
8973          ## CC just makes a GrossModule.
8974          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8975          reload_cmds='$CC -r -o $output$reload_objs'
8976          hardcode_direct=no
8977        ;;
8978        motorola)
8979          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8980          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8981        ;;
8982      esac
8983      runpath_var='LD_RUN_PATH'
8984      hardcode_shlibpath_var=no
8985      ;;
8986
8987    sysv4.3*)
8988      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8989      hardcode_shlibpath_var=no
8990      export_dynamic_flag_spec='-Bexport'
8991      ;;
8992
8993    sysv4*MP*)
8994      if test -d /usr/nec; then
8995        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996        hardcode_shlibpath_var=no
8997        runpath_var=LD_RUN_PATH
8998        hardcode_runpath_var=yes
8999        ld_shlibs=yes
9000      fi
9001      ;;
9002
9003    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9004      no_undefined_flag='${wl}-z,text'
9005      archive_cmds_need_lc=no
9006      hardcode_shlibpath_var=no
9007      runpath_var='LD_RUN_PATH'
9008
9009      if test "$GCC" = yes; then
9010        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9011        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9012      else
9013        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9014        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015      fi
9016      ;;
9017
9018    sysv5* | sco3.2v5* | sco5v6*)
9019      # Note: We can NOT use -z defs as we might desire, because we do not
9020      # link with -lc, and that would cause any symbols used from libc to
9021      # always be unresolved, which means just about no library would
9022      # ever link correctly.  If we're not using GNU ld we use -z text
9023      # though, which does catch some bad symbols but isn't as heavy-handed
9024      # as -z defs.
9025      no_undefined_flag='${wl}-z,text'
9026      allow_undefined_flag='${wl}-z,nodefs'
9027      archive_cmds_need_lc=no
9028      hardcode_shlibpath_var=no
9029      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9030      hardcode_libdir_separator=':'
9031      link_all_deplibs=yes
9032      export_dynamic_flag_spec='${wl}-Bexport'
9033      runpath_var='LD_RUN_PATH'
9034
9035      if test "$GCC" = yes; then
9036        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9037        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9038      else
9039        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9040        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9041      fi
9042      ;;
9043
9044    uts4*)
9045      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9046      hardcode_libdir_flag_spec='-L$libdir'
9047      hardcode_shlibpath_var=no
9048      ;;
9049
9050    *)
9051      ld_shlibs=no
9052      ;;
9053    esac
9054  fi
9055
9056echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9057echo "${ECHO_T}$ld_shlibs" >&6
9058test "$ld_shlibs" = no && can_build_shared=no
9059
9060#
9061# Do we need to explicitly link libc?
9062#
9063case "x$archive_cmds_need_lc" in
9064x|xyes)
9065  # Assume -lc should be added
9066  archive_cmds_need_lc=yes
9067
9068  if test "$enable_shared" = yes && test "$GCC" = yes; then
9069    case $archive_cmds in
9070    *'~'*)
9071      # FIXME: we may have to deal with multi-command sequences.
9072      ;;
9073    '$CC '*)
9074      # Test whether the compiler implicitly links with -lc since on some
9075      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9076      # to ld, don't add -lc before -lgcc.
9077      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9078echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9079      $rm conftest*
9080      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9081
9082      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9083  (eval $ac_compile) 2>&5
9084  ac_status=$?
9085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086  (exit $ac_status); } 2>conftest.err; then
9087        soname=conftest
9088        lib=conftest
9089        libobjs=conftest.$ac_objext
9090        deplibs=
9091        wl=$lt_prog_compiler_wl
9092        pic_flag=$lt_prog_compiler_pic
9093        compiler_flags=-v
9094        linker_flags=-v
9095        verstring=
9096        output_objdir=.
9097        libname=conftest
9098        lt_save_allow_undefined_flag=$allow_undefined_flag
9099        allow_undefined_flag=
9100        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9101  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9102  ac_status=$?
9103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104  (exit $ac_status); }
9105        then
9106          archive_cmds_need_lc=no
9107        else
9108          archive_cmds_need_lc=yes
9109        fi
9110        allow_undefined_flag=$lt_save_allow_undefined_flag
9111      else
9112        cat conftest.err 1>&5
9113      fi
9114      $rm conftest*
9115      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9116echo "${ECHO_T}$archive_cmds_need_lc" >&6
9117      ;;
9118    esac
9119  fi
9120  ;;
9121esac
9122
9123echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9124echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9125library_names_spec=
9126libname_spec='lib$name'
9127soname_spec=
9128shrext_cmds=".so"
9129postinstall_cmds=
9130postuninstall_cmds=
9131finish_cmds=
9132finish_eval=
9133shlibpath_var=
9134shlibpath_overrides_runpath=unknown
9135version_type=none
9136dynamic_linker="$host_os ld.so"
9137sys_lib_dlsearch_path_spec="/lib /usr/lib"
9138if test "$GCC" = yes; then
9139  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9140  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9141    # if the path contains ";" then we assume it to be the separator
9142    # otherwise default to the standard path separator (i.e. ":") - it is
9143    # assumed that no part of a normal pathname contains ";" but that should
9144    # okay in the real world where ";" in dirpaths is itself problematic.
9145    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9146  else
9147    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9148  fi
9149else
9150  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9151fi
9152need_lib_prefix=unknown
9153hardcode_into_libs=no
9154
9155# when you set need_version to no, make sure it does not cause -set_version
9156# flags to be left without arguments
9157need_version=unknown
9158
9159case $host_os in
9160aix3*)
9161  version_type=linux
9162  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9163  shlibpath_var=LIBPATH
9164
9165  # AIX 3 has no versioning support, so we append a major version to the name.
9166  soname_spec='${libname}${release}${shared_ext}$major'
9167  ;;
9168
9169aix4* | aix5*)
9170  version_type=linux
9171  need_lib_prefix=no
9172  need_version=no
9173  hardcode_into_libs=yes
9174  if test "$host_cpu" = ia64; then
9175    # AIX 5 supports IA64
9176    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9177    shlibpath_var=LD_LIBRARY_PATH
9178  else
9179    # With GCC up to 2.95.x, collect2 would create an import file
9180    # for dependence libraries.  The import file would start with
9181    # the line `#! .'.  This would cause the generated library to
9182    # depend on `.', always an invalid library.  This was fixed in
9183    # development snapshots of GCC prior to 3.0.
9184    case $host_os in
9185      aix4 | aix4.[01] | aix4.[01].*)
9186      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9187           echo ' yes '
9188           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9189        :
9190      else
9191        can_build_shared=no
9192      fi
9193      ;;
9194    esac
9195    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9196    # soname into executable. Probably we can add versioning support to
9197    # collect2, so additional links can be useful in future.
9198    if test "$aix_use_runtimelinking" = yes; then
9199      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9200      # instead of lib<name>.a to let people know that these are not
9201      # typical AIX shared libraries.
9202      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203    else
9204      # We preserve .a as extension for shared libraries through AIX4.2
9205      # and later when we are not doing run time linking.
9206      library_names_spec='${libname}${release}.a $libname.a'
9207      soname_spec='${libname}${release}${shared_ext}$major'
9208    fi
9209    shlibpath_var=LIBPATH
9210  fi
9211  ;;
9212
9213amigaos*)
9214  library_names_spec='$libname.ixlibrary $libname.a'
9215  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9216  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'
9217  ;;
9218
9219beos*)
9220  library_names_spec='${libname}${shared_ext}'
9221  dynamic_linker="$host_os ld.so"
9222  shlibpath_var=LIBRARY_PATH
9223  ;;
9224
9225bsdi[45]*)
9226  version_type=linux
9227  need_version=no
9228  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229  soname_spec='${libname}${release}${shared_ext}$major'
9230  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9231  shlibpath_var=LD_LIBRARY_PATH
9232  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9233  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9234  # the default ld.so.conf also contains /usr/contrib/lib and
9235  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9236  # libtool to hard-code these into programs
9237  ;;
9238
9239cygwin* | mingw* | pw32*)
9240  version_type=windows
9241  shrext_cmds=".dll"
9242  need_version=no
9243  need_lib_prefix=no
9244
9245  case $GCC,$host_os in
9246  yes,cygwin* | yes,mingw* | yes,pw32*)
9247    library_names_spec='$libname.dll.a'
9248    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9249    postinstall_cmds='base_file=`basename \${file}`~
9250      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9251      dldir=$destdir/`dirname \$dlpath`~
9252      test -d \$dldir || mkdir -p \$dldir~
9253      $install_prog $dir/$dlname \$dldir/$dlname~
9254      chmod a+x \$dldir/$dlname'
9255    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9256      dlpath=$dir/\$dldll~
9257       $rm \$dlpath'
9258    shlibpath_overrides_runpath=yes
9259
9260    case $host_os in
9261    cygwin*)
9262      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9263      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9264      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9265      ;;
9266    mingw*)
9267      # MinGW DLLs use traditional 'lib' prefix
9268      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9269      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9270      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9271        # It is most probably a Windows format PATH printed by
9272        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9273        # path with ; separators, and with drive letters. We can handle the
9274        # drive letters (cygwin fileutils understands them), so leave them,
9275        # especially as we might pass files found there to a mingw objdump,
9276        # which wouldn't understand a cygwinified path. Ahh.
9277        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9278      else
9279        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9280      fi
9281      ;;
9282    pw32*)
9283      # pw32 DLLs use 'pw' prefix rather than 'lib'
9284      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9285      ;;
9286    esac
9287    ;;
9288
9289  *)
9290    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9291    ;;
9292  esac
9293  dynamic_linker='Win32 ld.exe'
9294  # FIXME: first we should search . and the directory the executable is in
9295  shlibpath_var=PATH
9296  ;;
9297
9298darwin* | rhapsody*)
9299  dynamic_linker="$host_os dyld"
9300  version_type=darwin
9301  need_lib_prefix=no
9302  need_version=no
9303  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9304  soname_spec='${libname}${release}${major}$shared_ext'
9305  shlibpath_overrides_runpath=yes
9306  shlibpath_var=DYLD_LIBRARY_PATH
9307  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9308  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9309  if test "$GCC" = yes; then
9310    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"`
9311  else
9312    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9313  fi
9314  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9315  ;;
9316
9317dgux*)
9318  version_type=linux
9319  need_lib_prefix=no
9320  need_version=no
9321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9322  soname_spec='${libname}${release}${shared_ext}$major'
9323  shlibpath_var=LD_LIBRARY_PATH
9324  ;;
9325
9326freebsd1*)
9327  dynamic_linker=no
9328  ;;
9329
9330kfreebsd*-gnu)
9331  version_type=linux
9332  need_lib_prefix=no
9333  need_version=no
9334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9335  soname_spec='${libname}${release}${shared_ext}$major'
9336  shlibpath_var=LD_LIBRARY_PATH
9337  shlibpath_overrides_runpath=no
9338  hardcode_into_libs=yes
9339  dynamic_linker='GNU ld.so'
9340  ;;
9341
9342freebsd* | dragonfly*)
9343  # DragonFly does not have aout.  When/if they implement a new
9344  # versioning mechanism, adjust this.
9345  if test -x /usr/bin/objformat; then
9346    objformat=`/usr/bin/objformat`
9347  else
9348    case $host_os in
9349    freebsd[123]*) objformat=aout ;;
9350    *) objformat=elf ;;
9351    esac
9352  fi
9353  version_type=freebsd-$objformat
9354  case $version_type in
9355    freebsd-elf*)
9356      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9357      need_version=no
9358      need_lib_prefix=no
9359      ;;
9360    freebsd-*)
9361      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9362      need_version=yes
9363      ;;
9364  esac
9365  shlibpath_var=LD_LIBRARY_PATH
9366  case $host_os in
9367  freebsd2*)
9368    shlibpath_overrides_runpath=yes
9369    ;;
9370  freebsd3.[01]* | freebsdelf3.[01]*)
9371    shlibpath_overrides_runpath=yes
9372    hardcode_into_libs=yes
9373    ;;
9374  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9375  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9376    shlibpath_overrides_runpath=no
9377    hardcode_into_libs=yes
9378    ;;
9379  freebsd*) # from 4.6 on
9380    shlibpath_overrides_runpath=yes
9381    hardcode_into_libs=yes
9382    ;;
9383  esac
9384  ;;
9385
9386gnu*)
9387  version_type=linux
9388  need_lib_prefix=no
9389  need_version=no
9390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9391  soname_spec='${libname}${release}${shared_ext}$major'
9392  shlibpath_var=LD_LIBRARY_PATH
9393  hardcode_into_libs=yes
9394  ;;
9395
9396hpux9* | hpux10* | hpux11*)
9397  # Give a soname corresponding to the major version so that dld.sl refuses to
9398  # link against other versions.
9399  version_type=sunos
9400  need_lib_prefix=no
9401  need_version=no
9402  case $host_cpu in
9403  ia64*)
9404    shrext_cmds='.so'
9405    hardcode_into_libs=yes
9406    dynamic_linker="$host_os dld.so"
9407    shlibpath_var=LD_LIBRARY_PATH
9408    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9409    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9410    soname_spec='${libname}${release}${shared_ext}$major'
9411    if test "X$HPUX_IA64_MODE" = X32; then
9412      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9413    else
9414      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9415    fi
9416    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9417    ;;
9418   hppa*64*)
9419     shrext_cmds='.sl'
9420     hardcode_into_libs=yes
9421     dynamic_linker="$host_os dld.sl"
9422     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9423     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9424     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425     soname_spec='${libname}${release}${shared_ext}$major'
9426     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9427     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9428     ;;
9429   *)
9430    shrext_cmds='.sl'
9431    dynamic_linker="$host_os dld.sl"
9432    shlibpath_var=SHLIB_PATH
9433    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9434    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9435    soname_spec='${libname}${release}${shared_ext}$major'
9436    ;;
9437  esac
9438  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9439  postinstall_cmds='chmod 555 $lib'
9440  ;;
9441
9442interix3*)
9443  version_type=linux
9444  need_lib_prefix=no
9445  need_version=no
9446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9447  soname_spec='${libname}${release}${shared_ext}$major'
9448  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9449  shlibpath_var=LD_LIBRARY_PATH
9450  shlibpath_overrides_runpath=no
9451  hardcode_into_libs=yes
9452  ;;
9453
9454irix5* | irix6* | nonstopux*)
9455  case $host_os in
9456    nonstopux*) version_type=nonstopux ;;
9457    *)
9458        if test "$lt_cv_prog_gnu_ld" = yes; then
9459                version_type=linux
9460        else
9461                version_type=irix
9462        fi ;;
9463  esac
9464  need_lib_prefix=no
9465  need_version=no
9466  soname_spec='${libname}${release}${shared_ext}$major'
9467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9468  case $host_os in
9469  irix5* | nonstopux*)
9470    libsuff= shlibsuff=
9471    ;;
9472  *)
9473    case $LD in # libtool.m4 will add one of these switches to LD
9474    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9475      libsuff= shlibsuff= libmagic=32-bit;;
9476    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9477      libsuff=32 shlibsuff=N32 libmagic=N32;;
9478    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9479      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9480    *) libsuff= shlibsuff= libmagic=never-match;;
9481    esac
9482    ;;
9483  esac
9484  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9485  shlibpath_overrides_runpath=no
9486  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9487  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9488  hardcode_into_libs=yes
9489  ;;
9490
9491# No shared lib support for Linux oldld, aout, or coff.
9492linux*oldld* | linux*aout* | linux*coff*)
9493  dynamic_linker=no
9494  ;;
9495
9496# This must be Linux ELF.
9497linux*)
9498  version_type=linux
9499  need_lib_prefix=no
9500  need_version=no
9501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502  soname_spec='${libname}${release}${shared_ext}$major'
9503  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9504  shlibpath_var=LD_LIBRARY_PATH
9505  shlibpath_overrides_runpath=no
9506  # This implies no fast_install, which is unacceptable.
9507  # Some rework will be needed to allow for fast_install
9508  # before this can be enabled.
9509  hardcode_into_libs=yes
9510
9511  # Append ld.so.conf contents to the search path
9512  if test -f /etc/ld.so.conf; then
9513    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' ' '`
9514    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9515  fi
9516
9517  # We used to test for /lib/ld.so.1 and disable shared libraries on
9518  # powerpc, because MkLinux only supported shared libraries with the
9519  # GNU dynamic linker.  Since this was broken with cross compilers,
9520  # most powerpc-linux boxes support dynamic linking these days and
9521  # people can always --disable-shared, the test was removed, and we
9522  # assume the GNU/Linux dynamic linker is in use.
9523  dynamic_linker='GNU/Linux ld.so'
9524  ;;
9525
9526knetbsd*-gnu)
9527  version_type=linux
9528  need_lib_prefix=no
9529  need_version=no
9530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9531  soname_spec='${libname}${release}${shared_ext}$major'
9532  shlibpath_var=LD_LIBRARY_PATH
9533  shlibpath_overrides_runpath=no
9534  hardcode_into_libs=yes
9535  dynamic_linker='GNU ld.so'
9536  ;;
9537
9538netbsd*)
9539  version_type=sunos
9540  need_lib_prefix=no
9541  need_version=no
9542  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9543    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9544    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9545    dynamic_linker='NetBSD (a.out) ld.so'
9546  else
9547    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9548    soname_spec='${libname}${release}${shared_ext}$major'
9549    dynamic_linker='NetBSD ld.elf_so'
9550  fi
9551  shlibpath_var=LD_LIBRARY_PATH
9552  shlibpath_overrides_runpath=yes
9553  hardcode_into_libs=yes
9554  ;;
9555
9556newsos6)
9557  version_type=linux
9558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559  shlibpath_var=LD_LIBRARY_PATH
9560  shlibpath_overrides_runpath=yes
9561  ;;
9562
9563nto-qnx*)
9564  version_type=linux
9565  need_lib_prefix=no
9566  need_version=no
9567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568  soname_spec='${libname}${release}${shared_ext}$major'
9569  shlibpath_var=LD_LIBRARY_PATH
9570  shlibpath_overrides_runpath=yes
9571  ;;
9572
9573openbsd*)
9574  version_type=sunos
9575  sys_lib_dlsearch_path_spec="/usr/lib"
9576  need_lib_prefix=no
9577  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9578  case $host_os in
9579    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9580    *)                         need_version=no  ;;
9581  esac
9582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9583  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9584  shlibpath_var=LD_LIBRARY_PATH
9585  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9586    case $host_os in
9587      openbsd2.[89] | openbsd2.[89].*)
9588        shlibpath_overrides_runpath=no
9589        ;;
9590      *)
9591        shlibpath_overrides_runpath=yes
9592        ;;
9593      esac
9594  else
9595    shlibpath_overrides_runpath=yes
9596  fi
9597  ;;
9598
9599os2*)
9600  libname_spec='$name'
9601  shrext_cmds=".dll"
9602  need_lib_prefix=no
9603  library_names_spec='$libname${shared_ext} $libname.a'
9604  dynamic_linker='OS/2 ld.exe'
9605  shlibpath_var=LIBPATH
9606  ;;
9607
9608osf3* | osf4* | osf5*)
9609  version_type=osf
9610  need_lib_prefix=no
9611  need_version=no
9612  soname_spec='${libname}${release}${shared_ext}$major'
9613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614  shlibpath_var=LD_LIBRARY_PATH
9615  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9616  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9617  ;;
9618
9619solaris*)
9620  version_type=linux
9621  need_lib_prefix=no
9622  need_version=no
9623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9624  soname_spec='${libname}${release}${shared_ext}$major'
9625  shlibpath_var=LD_LIBRARY_PATH
9626  shlibpath_overrides_runpath=yes
9627  hardcode_into_libs=yes
9628  # ldd complains unless libraries are executable
9629  postinstall_cmds='chmod +x $lib'
9630  ;;
9631
9632sunos4*)
9633  version_type=sunos
9634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9635  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9636  shlibpath_var=LD_LIBRARY_PATH
9637  shlibpath_overrides_runpath=yes
9638  if test "$with_gnu_ld" = yes; then
9639    need_lib_prefix=no
9640  fi
9641  need_version=yes
9642  ;;
9643
9644sysv4 | sysv4.3*)
9645  version_type=linux
9646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9647  soname_spec='${libname}${release}${shared_ext}$major'
9648  shlibpath_var=LD_LIBRARY_PATH
9649  case $host_vendor in
9650    sni)
9651      shlibpath_overrides_runpath=no
9652      need_lib_prefix=no
9653      export_dynamic_flag_spec='${wl}-Blargedynsym'
9654      runpath_var=LD_RUN_PATH
9655      ;;
9656    siemens)
9657      need_lib_prefix=no
9658      ;;
9659    motorola)
9660      need_lib_prefix=no
9661      need_version=no
9662      shlibpath_overrides_runpath=no
9663      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9664      ;;
9665  esac
9666  ;;
9667
9668sysv4*MP*)
9669  if test -d /usr/nec ;then
9670    version_type=linux
9671    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9672    soname_spec='$libname${shared_ext}.$major'
9673    shlibpath_var=LD_LIBRARY_PATH
9674  fi
9675  ;;
9676
9677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9678  version_type=freebsd-elf
9679  need_lib_prefix=no
9680  need_version=no
9681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9682  soname_spec='${libname}${release}${shared_ext}$major'
9683  shlibpath_var=LD_LIBRARY_PATH
9684  hardcode_into_libs=yes
9685  if test "$with_gnu_ld" = yes; then
9686    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9687    shlibpath_overrides_runpath=no
9688  else
9689    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9690    shlibpath_overrides_runpath=yes
9691    case $host_os in
9692      sco3.2v5*)
9693        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9694        ;;
9695    esac
9696  fi
9697  sys_lib_dlsearch_path_spec='/usr/lib'
9698  ;;
9699
9700uts4*)
9701  version_type=linux
9702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703  soname_spec='${libname}${release}${shared_ext}$major'
9704  shlibpath_var=LD_LIBRARY_PATH
9705  ;;
9706
9707*)
9708  dynamic_linker=no
9709  ;;
9710esac
9711echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9712echo "${ECHO_T}$dynamic_linker" >&6
9713test "$dynamic_linker" = no && can_build_shared=no
9714
9715variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9716if test "$GCC" = yes; then
9717  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9718fi
9719
9720echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9721echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9722hardcode_action=
9723if test -n "$hardcode_libdir_flag_spec" || \
9724   test -n "$runpath_var" || \
9725   test "X$hardcode_automatic" = "Xyes" ; then
9726
9727  # We can hardcode non-existant directories.
9728  if test "$hardcode_direct" != no &&
9729     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9730     # have to relink, otherwise we might link with an installed library
9731     # when we should be linking with a yet-to-be-installed one
9732     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9733     test "$hardcode_minus_L" != no; then
9734    # Linking always hardcodes the temporary library directory.
9735    hardcode_action=relink
9736  else
9737    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9738    hardcode_action=immediate
9739  fi
9740else
9741  # We cannot hardcode anything, or else we can only hardcode existing
9742  # directories.
9743  hardcode_action=unsupported
9744fi
9745echo "$as_me:$LINENO: result: $hardcode_action" >&5
9746echo "${ECHO_T}$hardcode_action" >&6
9747
9748if test "$hardcode_action" = relink; then
9749  # Fast installation is not supported
9750  enable_fast_install=no
9751elif test "$shlibpath_overrides_runpath" = yes ||
9752     test "$enable_shared" = no; then
9753  # Fast installation is not necessary
9754  enable_fast_install=needless
9755fi
9756
9757striplib=
9758old_striplib=
9759echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9760echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9761if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9762  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9763  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9764  echo "$as_me:$LINENO: result: yes" >&5
9765echo "${ECHO_T}yes" >&6
9766else
9767# FIXME - insert some real tests, host_os isn't really good enough
9768  case $host_os in
9769   darwin*)
9770       if test -n "$STRIP" ; then
9771         striplib="$STRIP -x"
9772         echo "$as_me:$LINENO: result: yes" >&5
9773echo "${ECHO_T}yes" >&6
9774       else
9775  echo "$as_me:$LINENO: result: no" >&5
9776echo "${ECHO_T}no" >&6
9777fi
9778       ;;
9779   *)
9780  echo "$as_me:$LINENO: result: no" >&5
9781echo "${ECHO_T}no" >&6
9782    ;;
9783  esac
9784fi
9785
9786if test "x$enable_dlopen" != xyes; then
9787  enable_dlopen=unknown
9788  enable_dlopen_self=unknown
9789  enable_dlopen_self_static=unknown
9790else
9791  lt_cv_dlopen=no
9792  lt_cv_dlopen_libs=
9793
9794  case $host_os in
9795  beos*)
9796    lt_cv_dlopen="load_add_on"
9797    lt_cv_dlopen_libs=
9798    lt_cv_dlopen_self=yes
9799    ;;
9800
9801  mingw* | pw32*)
9802    lt_cv_dlopen="LoadLibrary"
9803    lt_cv_dlopen_libs=
9804   ;;
9805
9806  cygwin*)
9807    lt_cv_dlopen="dlopen"
9808    lt_cv_dlopen_libs=
9809   ;;
9810
9811  darwin*)
9812  # if libdl is installed we need to link against it
9813    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9814echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9815if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9816  echo $ECHO_N "(cached) $ECHO_C" >&6
9817else
9818  ac_check_lib_save_LIBS=$LIBS
9819LIBS="-ldl  $LIBS"
9820cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h.  */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h.  */
9826
9827/* Override any gcc2 internal prototype to avoid an error.  */
9828#ifdef __cplusplus
9829extern "C"
9830#endif
9831/* We use char because int might match the return type of a gcc2
9832   builtin and then its argument prototype would still apply.  */
9833char dlopen ();
9834int
9835main ()
9836{
9837dlopen ();
9838  ;
9839  return 0;
9840}
9841_ACEOF
9842rm -f conftest.$ac_objext conftest$ac_exeext
9843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9844  (eval $ac_link) 2>conftest.er1
9845  ac_status=$?
9846  grep -v '^ *+' conftest.er1 >conftest.err
9847  rm -f conftest.er1
9848  cat conftest.err >&5
9849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850  (exit $ac_status); } &&
9851         { ac_try='test -z "$ac_c_werror_flag"
9852                         || test ! -s conftest.err'
9853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854  (eval $ac_try) 2>&5
9855  ac_status=$?
9856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857  (exit $ac_status); }; } &&
9858         { ac_try='test -s conftest$ac_exeext'
9859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860  (eval $ac_try) 2>&5
9861  ac_status=$?
9862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863  (exit $ac_status); }; }; then
9864  ac_cv_lib_dl_dlopen=yes
9865else
9866  echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
9868
9869ac_cv_lib_dl_dlopen=no
9870fi
9871rm -f conftest.err conftest.$ac_objext \
9872      conftest$ac_exeext conftest.$ac_ext
9873LIBS=$ac_check_lib_save_LIBS
9874fi
9875echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9876echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9877if test $ac_cv_lib_dl_dlopen = yes; then
9878  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9879else
9880
9881    lt_cv_dlopen="dyld"
9882    lt_cv_dlopen_libs=
9883    lt_cv_dlopen_self=yes
9884
9885fi
9886
9887   ;;
9888
9889  *)
9890    echo "$as_me:$LINENO: checking for shl_load" >&5
9891echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9892if test "${ac_cv_func_shl_load+set}" = set; then
9893  echo $ECHO_N "(cached) $ECHO_C" >&6
9894else
9895  cat >conftest.$ac_ext <<_ACEOF
9896/* confdefs.h.  */
9897_ACEOF
9898cat confdefs.h >>conftest.$ac_ext
9899cat >>conftest.$ac_ext <<_ACEOF
9900/* end confdefs.h.  */
9901/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9902   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9903#define shl_load innocuous_shl_load
9904
9905/* System header to define __stub macros and hopefully few prototypes,
9906    which can conflict with char shl_load (); below.
9907    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9908    <limits.h> exists even on freestanding compilers.  */
9909
9910#ifdef __STDC__
9911# include <limits.h>
9912#else
9913# include <assert.h>
9914#endif
9915
9916#undef shl_load
9917
9918/* Override any gcc2 internal prototype to avoid an error.  */
9919#ifdef __cplusplus
9920extern "C"
9921{
9922#endif
9923/* We use char because int might match the return type of a gcc2
9924   builtin and then its argument prototype would still apply.  */
9925char shl_load ();
9926/* The GNU C library defines this for functions which it implements
9927    to always fail with ENOSYS.  Some functions are actually named
9928    something starting with __ and the normal name is an alias.  */
9929#if defined (__stub_shl_load) || defined (__stub___shl_load)
9930choke me
9931#else
9932char (*f) () = shl_load;
9933#endif
9934#ifdef __cplusplus
9935}
9936#endif
9937
9938int
9939main ()
9940{
9941return f != shl_load;
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946rm -f conftest.$ac_objext conftest$ac_exeext
9947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948  (eval $ac_link) 2>conftest.er1
9949  ac_status=$?
9950  grep -v '^ *+' conftest.er1 >conftest.err
9951  rm -f conftest.er1
9952  cat conftest.err >&5
9953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954  (exit $ac_status); } &&
9955         { ac_try='test -z "$ac_c_werror_flag"
9956                         || test ! -s conftest.err'
9957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958  (eval $ac_try) 2>&5
9959  ac_status=$?
9960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961  (exit $ac_status); }; } &&
9962         { ac_try='test -s conftest$ac_exeext'
9963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964  (eval $ac_try) 2>&5
9965  ac_status=$?
9966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967  (exit $ac_status); }; }; then
9968  ac_cv_func_shl_load=yes
9969else
9970  echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
9972
9973ac_cv_func_shl_load=no
9974fi
9975rm -f conftest.err conftest.$ac_objext \
9976      conftest$ac_exeext conftest.$ac_ext
9977fi
9978echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9979echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9980if test $ac_cv_func_shl_load = yes; then
9981  lt_cv_dlopen="shl_load"
9982else
9983  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9984echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9985if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9986  echo $ECHO_N "(cached) $ECHO_C" >&6
9987else
9988  ac_check_lib_save_LIBS=$LIBS
9989LIBS="-ldld  $LIBS"
9990cat >conftest.$ac_ext <<_ACEOF
9991/* confdefs.h.  */
9992_ACEOF
9993cat confdefs.h >>conftest.$ac_ext
9994cat >>conftest.$ac_ext <<_ACEOF
9995/* end confdefs.h.  */
9996
9997/* Override any gcc2 internal prototype to avoid an error.  */
9998#ifdef __cplusplus
9999extern "C"
10000#endif
10001/* We use char because int might match the return type of a gcc2
10002   builtin and then its argument prototype would still apply.  */
10003char shl_load ();
10004int
10005main ()
10006{
10007shl_load ();
10008  ;
10009  return 0;
10010}
10011_ACEOF
10012rm -f conftest.$ac_objext conftest$ac_exeext
10013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10014  (eval $ac_link) 2>conftest.er1
10015  ac_status=$?
10016  grep -v '^ *+' conftest.er1 >conftest.err
10017  rm -f conftest.er1
10018  cat conftest.err >&5
10019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020  (exit $ac_status); } &&
10021         { ac_try='test -z "$ac_c_werror_flag"
10022                         || test ! -s conftest.err'
10023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024  (eval $ac_try) 2>&5
10025  ac_status=$?
10026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027  (exit $ac_status); }; } &&
10028         { ac_try='test -s conftest$ac_exeext'
10029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030  (eval $ac_try) 2>&5
10031  ac_status=$?
10032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033  (exit $ac_status); }; }; then
10034  ac_cv_lib_dld_shl_load=yes
10035else
10036  echo "$as_me: failed program was:" >&5
10037sed 's/^/| /' conftest.$ac_ext >&5
10038
10039ac_cv_lib_dld_shl_load=no
10040fi
10041rm -f conftest.err conftest.$ac_objext \
10042      conftest$ac_exeext conftest.$ac_ext
10043LIBS=$ac_check_lib_save_LIBS
10044fi
10045echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10046echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10047if test $ac_cv_lib_dld_shl_load = yes; then
10048  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10049else
10050  echo "$as_me:$LINENO: checking for dlopen" >&5
10051echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10052if test "${ac_cv_func_dlopen+set}" = set; then
10053  echo $ECHO_N "(cached) $ECHO_C" >&6
10054else
10055  cat >conftest.$ac_ext <<_ACEOF
10056/* confdefs.h.  */
10057_ACEOF
10058cat confdefs.h >>conftest.$ac_ext
10059cat >>conftest.$ac_ext <<_ACEOF
10060/* end confdefs.h.  */
10061/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10062   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10063#define dlopen innocuous_dlopen
10064
10065/* System header to define __stub macros and hopefully few prototypes,
10066    which can conflict with char dlopen (); below.
10067    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10068    <limits.h> exists even on freestanding compilers.  */
10069
10070#ifdef __STDC__
10071# include <limits.h>
10072#else
10073# include <assert.h>
10074#endif
10075
10076#undef dlopen
10077
10078/* Override any gcc2 internal prototype to avoid an error.  */
10079#ifdef __cplusplus
10080extern "C"
10081{
10082#endif
10083/* We use char because int might match the return type of a gcc2
10084   builtin and then its argument prototype would still apply.  */
10085char dlopen ();
10086/* The GNU C library defines this for functions which it implements
10087    to always fail with ENOSYS.  Some functions are actually named
10088    something starting with __ and the normal name is an alias.  */
10089#if defined (__stub_dlopen) || defined (__stub___dlopen)
10090choke me
10091#else
10092char (*f) () = dlopen;
10093#endif
10094#ifdef __cplusplus
10095}
10096#endif
10097
10098int
10099main ()
10100{
10101return f != dlopen;
10102  ;
10103  return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext conftest$ac_exeext
10107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108  (eval $ac_link) 2>conftest.er1
10109  ac_status=$?
10110  grep -v '^ *+' conftest.er1 >conftest.err
10111  rm -f conftest.er1
10112  cat conftest.err >&5
10113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114  (exit $ac_status); } &&
10115         { ac_try='test -z "$ac_c_werror_flag"
10116                         || test ! -s conftest.err'
10117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118  (eval $ac_try) 2>&5
10119  ac_status=$?
10120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121  (exit $ac_status); }; } &&
10122         { ac_try='test -s conftest$ac_exeext'
10123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124  (eval $ac_try) 2>&5
10125  ac_status=$?
10126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127  (exit $ac_status); }; }; then
10128  ac_cv_func_dlopen=yes
10129else
10130  echo "$as_me: failed program was:" >&5
10131sed 's/^/| /' conftest.$ac_ext >&5
10132
10133ac_cv_func_dlopen=no
10134fi
10135rm -f conftest.err conftest.$ac_objext \
10136      conftest$ac_exeext conftest.$ac_ext
10137fi
10138echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10139echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10140if test $ac_cv_func_dlopen = yes; then
10141  lt_cv_dlopen="dlopen"
10142else
10143  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10144echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10145if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10146  echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148  ac_check_lib_save_LIBS=$LIBS
10149LIBS="-ldl  $LIBS"
10150cat >conftest.$ac_ext <<_ACEOF
10151/* confdefs.h.  */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h.  */
10156
10157/* Override any gcc2 internal prototype to avoid an error.  */
10158#ifdef __cplusplus
10159extern "C"
10160#endif
10161/* We use char because int might match the return type of a gcc2
10162   builtin and then its argument prototype would still apply.  */
10163char dlopen ();
10164int
10165main ()
10166{
10167dlopen ();
10168  ;
10169  return 0;
10170}
10171_ACEOF
10172rm -f conftest.$ac_objext conftest$ac_exeext
10173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174  (eval $ac_link) 2>conftest.er1
10175  ac_status=$?
10176  grep -v '^ *+' conftest.er1 >conftest.err
10177  rm -f conftest.er1
10178  cat conftest.err >&5
10179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180  (exit $ac_status); } &&
10181         { ac_try='test -z "$ac_c_werror_flag"
10182                         || test ! -s conftest.err'
10183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184  (eval $ac_try) 2>&5
10185  ac_status=$?
10186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187  (exit $ac_status); }; } &&
10188         { ac_try='test -s conftest$ac_exeext'
10189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190  (eval $ac_try) 2>&5
10191  ac_status=$?
10192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193  (exit $ac_status); }; }; then
10194  ac_cv_lib_dl_dlopen=yes
10195else
10196  echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199ac_cv_lib_dl_dlopen=no
10200fi
10201rm -f conftest.err conftest.$ac_objext \
10202      conftest$ac_exeext conftest.$ac_ext
10203LIBS=$ac_check_lib_save_LIBS
10204fi
10205echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10206echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10207if test $ac_cv_lib_dl_dlopen = yes; then
10208  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10209else
10210  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10211echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10212if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10213  echo $ECHO_N "(cached) $ECHO_C" >&6
10214else
10215  ac_check_lib_save_LIBS=$LIBS
10216LIBS="-lsvld  $LIBS"
10217cat >conftest.$ac_ext <<_ACEOF
10218/* confdefs.h.  */
10219_ACEOF
10220cat confdefs.h >>conftest.$ac_ext
10221cat >>conftest.$ac_ext <<_ACEOF
10222/* end confdefs.h.  */
10223
10224/* Override any gcc2 internal prototype to avoid an error.  */
10225#ifdef __cplusplus
10226extern "C"
10227#endif
10228/* We use char because int might match the return type of a gcc2
10229   builtin and then its argument prototype would still apply.  */
10230char dlopen ();
10231int
10232main ()
10233{
10234dlopen ();
10235  ;
10236  return 0;
10237}
10238_ACEOF
10239rm -f conftest.$ac_objext conftest$ac_exeext
10240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10241  (eval $ac_link) 2>conftest.er1
10242  ac_status=$?
10243  grep -v '^ *+' conftest.er1 >conftest.err
10244  rm -f conftest.er1
10245  cat conftest.err >&5
10246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247  (exit $ac_status); } &&
10248         { ac_try='test -z "$ac_c_werror_flag"
10249                         || test ! -s conftest.err'
10250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251  (eval $ac_try) 2>&5
10252  ac_status=$?
10253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254  (exit $ac_status); }; } &&
10255         { ac_try='test -s conftest$ac_exeext'
10256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257  (eval $ac_try) 2>&5
10258  ac_status=$?
10259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260  (exit $ac_status); }; }; then
10261  ac_cv_lib_svld_dlopen=yes
10262else
10263  echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266ac_cv_lib_svld_dlopen=no
10267fi
10268rm -f conftest.err conftest.$ac_objext \
10269      conftest$ac_exeext conftest.$ac_ext
10270LIBS=$ac_check_lib_save_LIBS
10271fi
10272echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10273echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10274if test $ac_cv_lib_svld_dlopen = yes; then
10275  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10276else
10277  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10278echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10279if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10280  echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282  ac_check_lib_save_LIBS=$LIBS
10283LIBS="-ldld  $LIBS"
10284cat >conftest.$ac_ext <<_ACEOF
10285/* confdefs.h.  */
10286_ACEOF
10287cat confdefs.h >>conftest.$ac_ext
10288cat >>conftest.$ac_ext <<_ACEOF
10289/* end confdefs.h.  */
10290
10291/* Override any gcc2 internal prototype to avoid an error.  */
10292#ifdef __cplusplus
10293extern "C"
10294#endif
10295/* We use char because int might match the return type of a gcc2
10296   builtin and then its argument prototype would still apply.  */
10297char dld_link ();
10298int
10299main ()
10300{
10301dld_link ();
10302  ;
10303  return 0;
10304}
10305_ACEOF
10306rm -f conftest.$ac_objext conftest$ac_exeext
10307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10308  (eval $ac_link) 2>conftest.er1
10309  ac_status=$?
10310  grep -v '^ *+' conftest.er1 >conftest.err
10311  rm -f conftest.er1
10312  cat conftest.err >&5
10313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314  (exit $ac_status); } &&
10315         { ac_try='test -z "$ac_c_werror_flag"
10316                         || test ! -s conftest.err'
10317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318  (eval $ac_try) 2>&5
10319  ac_status=$?
10320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321  (exit $ac_status); }; } &&
10322         { ac_try='test -s conftest$ac_exeext'
10323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10324  (eval $ac_try) 2>&5
10325  ac_status=$?
10326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327  (exit $ac_status); }; }; then
10328  ac_cv_lib_dld_dld_link=yes
10329else
10330  echo "$as_me: failed program was:" >&5
10331sed 's/^/| /' conftest.$ac_ext >&5
10332
10333ac_cv_lib_dld_dld_link=no
10334fi
10335rm -f conftest.err conftest.$ac_objext \
10336      conftest$ac_exeext conftest.$ac_ext
10337LIBS=$ac_check_lib_save_LIBS
10338fi
10339echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10340echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10341if test $ac_cv_lib_dld_dld_link = yes; then
10342  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10343fi
10344
10345
10346fi
10347
10348
10349fi
10350
10351
10352fi
10353
10354
10355fi
10356
10357
10358fi
10359
10360    ;;
10361  esac
10362
10363  if test "x$lt_cv_dlopen" != xno; then
10364    enable_dlopen=yes
10365  else
10366    enable_dlopen=no
10367  fi
10368
10369  case $lt_cv_dlopen in
10370  dlopen)
10371    save_CPPFLAGS="$CPPFLAGS"
10372    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10373
10374    save_LDFLAGS="$LDFLAGS"
10375    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10376
10377    save_LIBS="$LIBS"
10378    LIBS="$lt_cv_dlopen_libs $LIBS"
10379
10380    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10381echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10382if test "${lt_cv_dlopen_self+set}" = set; then
10383  echo $ECHO_N "(cached) $ECHO_C" >&6
10384else
10385          if test "$cross_compiling" = yes; then :
10386  lt_cv_dlopen_self=cross
10387else
10388  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10389  lt_status=$lt_dlunknown
10390  cat > conftest.$ac_ext <<EOF
10391#line 10391 "configure"
10392#include "confdefs.h"
10393
10394#if HAVE_DLFCN_H
10395#include <dlfcn.h>
10396#endif
10397
10398#include <stdio.h>
10399
10400#ifdef RTLD_GLOBAL
10401#  define LT_DLGLOBAL           RTLD_GLOBAL
10402#else
10403#  ifdef DL_GLOBAL
10404#    define LT_DLGLOBAL         DL_GLOBAL
10405#  else
10406#    define LT_DLGLOBAL         0
10407#  endif
10408#endif
10409
10410/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10411   find out it does not work in some platform. */
10412#ifndef LT_DLLAZY_OR_NOW
10413#  ifdef RTLD_LAZY
10414#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10415#  else
10416#    ifdef DL_LAZY
10417#      define LT_DLLAZY_OR_NOW          DL_LAZY
10418#    else
10419#      ifdef RTLD_NOW
10420#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10421#      else
10422#        ifdef DL_NOW
10423#          define LT_DLLAZY_OR_NOW      DL_NOW
10424#        else
10425#          define LT_DLLAZY_OR_NOW      0
10426#        endif
10427#      endif
10428#    endif
10429#  endif
10430#endif
10431
10432#ifdef __cplusplus
10433extern "C" void exit (int);
10434#endif
10435
10436void fnord() { int i=42;}
10437int main ()
10438{
10439  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10440  int status = $lt_dlunknown;
10441
10442  if (self)
10443    {
10444      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10445      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10446      /* dlclose (self); */
10447    }
10448  else
10449    puts (dlerror ());
10450
10451    exit (status);
10452}
10453EOF
10454  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10455  (eval $ac_link) 2>&5
10456  ac_status=$?
10457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10459    (./conftest; exit; ) >&5 2>/dev/null
10460    lt_status=$?
10461    case x$lt_status in
10462      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10463      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10464      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10465    esac
10466  else :
10467    # compilation failed
10468    lt_cv_dlopen_self=no
10469  fi
10470fi
10471rm -fr conftest*
10472
10473
10474fi
10475echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10476echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10477
10478    if test "x$lt_cv_dlopen_self" = xyes; then
10479      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10480      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10481echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10482if test "${lt_cv_dlopen_self_static+set}" = set; then
10483  echo $ECHO_N "(cached) $ECHO_C" >&6
10484else
10485          if test "$cross_compiling" = yes; then :
10486  lt_cv_dlopen_self_static=cross
10487else
10488  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10489  lt_status=$lt_dlunknown
10490  cat > conftest.$ac_ext <<EOF
10491#line 10491 "configure"
10492#include "confdefs.h"
10493
10494#if HAVE_DLFCN_H
10495#include <dlfcn.h>
10496#endif
10497
10498#include <stdio.h>
10499
10500#ifdef RTLD_GLOBAL
10501#  define LT_DLGLOBAL           RTLD_GLOBAL
10502#else
10503#  ifdef DL_GLOBAL
10504#    define LT_DLGLOBAL         DL_GLOBAL
10505#  else
10506#    define LT_DLGLOBAL         0
10507#  endif
10508#endif
10509
10510/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10511   find out it does not work in some platform. */
10512#ifndef LT_DLLAZY_OR_NOW
10513#  ifdef RTLD_LAZY
10514#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10515#  else
10516#    ifdef DL_LAZY
10517#      define LT_DLLAZY_OR_NOW          DL_LAZY
10518#    else
10519#      ifdef RTLD_NOW
10520#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10521#      else
10522#        ifdef DL_NOW
10523#          define LT_DLLAZY_OR_NOW      DL_NOW
10524#        else
10525#          define LT_DLLAZY_OR_NOW      0
10526#        endif
10527#      endif
10528#    endif
10529#  endif
10530#endif
10531
10532#ifdef __cplusplus
10533extern "C" void exit (int);
10534#endif
10535
10536void fnord() { int i=42;}
10537int main ()
10538{
10539  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10540  int status = $lt_dlunknown;
10541
10542  if (self)
10543    {
10544      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10545      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10546      /* dlclose (self); */
10547    }
10548  else
10549    puts (dlerror ());
10550
10551    exit (status);
10552}
10553EOF
10554  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555  (eval $ac_link) 2>&5
10556  ac_status=$?
10557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10559    (./conftest; exit; ) >&5 2>/dev/null
10560    lt_status=$?
10561    case x$lt_status in
10562      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10563      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10564      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10565    esac
10566  else :
10567    # compilation failed
10568    lt_cv_dlopen_self_static=no
10569  fi
10570fi
10571rm -fr conftest*
10572
10573
10574fi
10575echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10576echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10577    fi
10578
10579    CPPFLAGS="$save_CPPFLAGS"
10580    LDFLAGS="$save_LDFLAGS"
10581    LIBS="$save_LIBS"
10582    ;;
10583  esac
10584
10585  case $lt_cv_dlopen_self in
10586  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10587  *) enable_dlopen_self=unknown ;;
10588  esac
10589
10590  case $lt_cv_dlopen_self_static in
10591  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10592  *) enable_dlopen_self_static=unknown ;;
10593  esac
10594fi
10595
10596
10597# Report which library types will actually be built
10598echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10599echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10600echo "$as_me:$LINENO: result: $can_build_shared" >&5
10601echo "${ECHO_T}$can_build_shared" >&6
10602
10603echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10604echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10605test "$can_build_shared" = "no" && enable_shared=no
10606
10607# On AIX, shared libraries and static libraries use the same namespace, and
10608# are all built from PIC.
10609case $host_os in
10610aix3*)
10611  test "$enable_shared" = yes && enable_static=no
10612  if test -n "$RANLIB"; then
10613    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10614    postinstall_cmds='$RANLIB $lib'
10615  fi
10616  ;;
10617
10618aix4* | aix5*)
10619  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10620    test "$enable_shared" = yes && enable_static=no
10621  fi
10622    ;;
10623esac
10624echo "$as_me:$LINENO: result: $enable_shared" >&5
10625echo "${ECHO_T}$enable_shared" >&6
10626
10627echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10628echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10629# Make sure either enable_shared or enable_static is yes.
10630test "$enable_shared" = yes || enable_static=yes
10631echo "$as_me:$LINENO: result: $enable_static" >&5
10632echo "${ECHO_T}$enable_static" >&6
10633
10634# The else clause should only fire when bootstrapping the
10635# libtool distribution, otherwise you forgot to ship ltmain.sh
10636# with your package, and you will get complaints that there are
10637# no rules to generate ltmain.sh.
10638if test -f "$ltmain"; then
10639  # See if we are running on zsh, and set the options which allow our commands through
10640  # without removal of \ escapes.
10641  if test -n "${ZSH_VERSION+set}" ; then
10642    setopt NO_GLOB_SUBST
10643  fi
10644  # Now quote all the things that may contain metacharacters while being
10645  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10646  # variables and quote the copies for generation of the libtool script.
10647  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10648    SED SHELL STRIP \
10649    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10650    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10651    deplibs_check_method reload_flag reload_cmds need_locks \
10652    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10653    lt_cv_sys_global_symbol_to_c_name_address \
10654    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10655    old_postinstall_cmds old_postuninstall_cmds \
10656    compiler \
10657    CC \
10658    LD \
10659    lt_prog_compiler_wl \
10660    lt_prog_compiler_pic \
10661    lt_prog_compiler_static \
10662    lt_prog_compiler_no_builtin_flag \
10663    export_dynamic_flag_spec \
10664    thread_safe_flag_spec \
10665    whole_archive_flag_spec \
10666    enable_shared_with_static_runtimes \
10667    old_archive_cmds \
10668    old_archive_from_new_cmds \
10669    predep_objects \
10670    postdep_objects \
10671    predeps \
10672    postdeps \
10673    compiler_lib_search_path \
10674    archive_cmds \
10675    archive_expsym_cmds \
10676    postinstall_cmds \
10677    postuninstall_cmds \
10678    old_archive_from_expsyms_cmds \
10679    allow_undefined_flag \
10680    no_undefined_flag \
10681    export_symbols_cmds \
10682    hardcode_libdir_flag_spec \
10683    hardcode_libdir_flag_spec_ld \
10684    hardcode_libdir_separator \
10685    hardcode_automatic \
10686    module_cmds \
10687    module_expsym_cmds \
10688    lt_cv_prog_compiler_c_o \
10689    exclude_expsyms \
10690    include_expsyms; do
10691
10692    case $var in
10693    old_archive_cmds | \
10694    old_archive_from_new_cmds | \
10695    archive_cmds | \
10696    archive_expsym_cmds | \
10697    module_cmds | \
10698    module_expsym_cmds | \
10699    old_archive_from_expsyms_cmds | \
10700    export_symbols_cmds | \
10701    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10702    postinstall_cmds | postuninstall_cmds | \
10703    old_postinstall_cmds | old_postuninstall_cmds | \
10704    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10705      # Double-quote double-evaled strings.
10706      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10707      ;;
10708    *)
10709      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10710      ;;
10711    esac
10712  done
10713
10714  case $lt_echo in
10715  *'\$0 --fallback-echo"')
10716    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10717    ;;
10718  esac
10719
10720cfgfile="${ofile}T"
10721  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10722  $rm -f "$cfgfile"
10723  { echo "$as_me:$LINENO: creating $ofile" >&5
10724echo "$as_me: creating $ofile" >&6;}
10725
10726  cat <<__EOF__ >> "$cfgfile"
10727#! $SHELL
10728
10729# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10730# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10731# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10732#
10733# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10734# Free Software Foundation, Inc.
10735#
10736# This file is part of GNU Libtool:
10737# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10738#
10739# This program is free software; you can redistribute it and/or modify
10740# it under the terms of the GNU General Public License as published by
10741# the Free Software Foundation; either version 2 of the License, or
10742# (at your option) any later version.
10743#
10744# This program is distributed in the hope that it will be useful, but
10745# WITHOUT ANY WARRANTY; without even the implied warranty of
10746# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10747# General Public License for more details.
10748#
10749# You should have received a copy of the GNU General Public License
10750# along with this program; if not, write to the Free Software
10751# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10752#
10753# As a special exception to the GNU General Public License, if you
10754# distribute this file as part of a program that contains a
10755# configuration script generated by Autoconf, you may include it under
10756# the same distribution terms that you use for the rest of that program.
10757
10758# A sed program that does not truncate output.
10759SED=$lt_SED
10760
10761# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10762Xsed="$SED -e 1s/^X//"
10763
10764# The HP-UX ksh and POSIX shell print the target directory to stdout
10765# if CDPATH is set.
10766(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10767
10768# The names of the tagged configurations supported by this script.
10769available_tags=
10770
10771# ### BEGIN LIBTOOL CONFIG
10772
10773# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10774
10775# Shell to use when invoking shell scripts.
10776SHELL=$lt_SHELL
10777
10778# Whether or not to build shared libraries.
10779build_libtool_libs=$enable_shared
10780
10781# Whether or not to build static libraries.
10782build_old_libs=$enable_static
10783
10784# Whether or no