source: ThirdParty/Glpk/trunk/configure @ 2149

Last change on this file since 2149 was 2149, checked in by stefan, 9 years ago

rerun autotools

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