source: ThirdParty/Glpk/stable/1.8/configure @ 2595

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

temporarily committing release candidate

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