source: ThirdParty/Glpk/stable/1.10/configure @ 3532

Last change on this file since 3532 was 3532, checked in by stefan, 4 years ago

restoring BuildTools/ThirdParty/Glpk?/stable/1.10

File size: 769.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyGlpk 1.10.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2007-2010 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyGlpk'
431PACKAGE_TARNAME='thirdpartyglpk'
432PACKAGE_VERSION='1.10'
433PACKAGE_STRING='ThirdPartyGlpk 1.10'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="glpk/src/glpk.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion GLPK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS glpkmajorver glpkminorver GLPKDIR GLPK_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
953ac_env_PKG_CONFIG_value=$PKG_CONFIG
954ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
955ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972ac_env_F77_set=${F77+set}
973ac_env_F77_value=$F77
974ac_cv_env_F77_set=${F77+set}
975ac_cv_env_F77_value=$F77
976ac_env_FFLAGS_set=${FFLAGS+set}
977ac_env_FFLAGS_value=$FFLAGS
978ac_cv_env_FFLAGS_set=${FFLAGS+set}
979ac_cv_env_FFLAGS_value=$FFLAGS
980
981#
982# Report the --help message.
983#
984if test "$ac_init_help" = "long"; then
985  # Omit some internal or obsolete options to make the list less imposing.
986  # This message is too long to be a string in the A/UX 3.1 sh.
987  cat <<_ACEOF
988\`configure' configures ThirdPartyGlpk 1.10 to adapt to many kinds of systems.
989
990Usage: $0 [OPTION]... [VAR=VALUE]...
991
992To assign environment variables (e.g., CC, CFLAGS...), specify them as
993VAR=VALUE.  See below for descriptions of some of the useful variables.
994
995Defaults for the options are specified in brackets.
996
997Configuration:
998  -h, --help              display this help and exit
999      --help=short        display options specific to this package
1000      --help=recursive    display the short help of all the included packages
1001  -V, --version           display version information and exit
1002  -q, --quiet, --silent   do not print \`checking...' messages
1003      --cache-file=FILE   cache test results in FILE [disabled]
1004  -C, --config-cache      alias for \`--cache-file=config.cache'
1005  -n, --no-create         do not create output files
1006      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1007
1008_ACEOF
1009
1010  cat <<_ACEOF
1011Installation directories:
1012  --prefix=PREFIX         install architecture-independent files in PREFIX
1013                          [$ac_default_prefix]
1014  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1015                          [PREFIX]
1016
1017By default, \`make install' will install all the files in
1018\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1019an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1020for instance \`--prefix=\$HOME'.
1021
1022For better control, use the options below.
1023
1024Fine tuning of the installation directories:
1025  --bindir=DIR           user executables [EPREFIX/bin]
1026  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1027  --libexecdir=DIR       program executables [EPREFIX/libexec]
1028  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1029  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1030  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1031  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1032  --libdir=DIR           object code libraries [EPREFIX/lib]
1033  --includedir=DIR       C header files [PREFIX/include]
1034  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1035  --infodir=DIR          info documentation [PREFIX/info]
1036  --mandir=DIR           man documentation [PREFIX/man]
1037_ACEOF
1038
1039  cat <<\_ACEOF
1040
1041Program names:
1042  --program-prefix=PREFIX            prepend PREFIX to installed program names
1043  --program-suffix=SUFFIX            append SUFFIX to installed program names
1044  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1045
1046System types:
1047  --build=BUILD     configure for building on BUILD [guessed]
1048  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1049_ACEOF
1050fi
1051
1052if test -n "$ac_init_help"; then
1053  case $ac_init_help in
1054     short | recursive ) echo "Configuration of ThirdPartyGlpk 1.10:";;
1055   esac
1056  cat <<\_ACEOF
1057
1058Optional Features:
1059  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1060  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1061  --enable-debug          compile all projects with debug options tests
1062                          (implies --disable-shared)
1063  --enable-debug-glpk compile project Glpk with debug compiler flags
1064
1065  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1066  --disable-pkg-config    disable use of pkg-config (if available)
1067  --enable-static[=PKGS]
1068                          build static libraries [default=no]
1069  --disable-dependency-tracking  speeds up one-time build
1070  --enable-dependency-tracking   do not reject slow dependency extractors
1071  --enable-maintainer-mode  enable make rules and dependencies not useful
1072                          (and sometimes confusing) to the casual installer
1073  --enable-shared[=PKGS]
1074                          build shared libraries [default=yes]
1075  --enable-fast-install[=PKGS]
1076                          optimize for fast installation [default=yes]
1077  --disable-libtool-lock  avoid locking (might break parallel builds)
1078  --disable-dependency-linking
1079                          disable linking library dependencies into shared
1080                          libraries
1081  --disable-gmp           do not compile with GNU multiple precision library
1082  --enable-odbc           enable MathProg ODBC support [default=auto]
1083  --enable-mysql          enable MathProg MySQL support [default=auto]
1084
1085Optional Packages:
1086  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1087  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1088  --with-glpk-verbosity specify the debug verbosity level for project Glpk
1089  --with-glpk-checklevel specify the sanity check level for project Glpk
1090  --with-coin-instdir     prefix of installation directory for precompiled
1091                          COIN packages
1092  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1093  --with-pic              try to use only PIC/non-PIC objects [default=use
1094                          both]
1095  --with-tags[=TAGS]
1096                          include additional configurations [automatic]
1097
1098Some influential environment variables:
1099  CDEFS       Additional -D flags to be used when compiling C code.
1100  ADD_CFLAGS  Additional C compiler options
1101  DBG_CFLAGS  Debug C compiler options
1102  OPT_CFLAGS  Optimize C compiler options
1103  CC          C compiler command
1104  CFLAGS      C compiler flags
1105  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1106              nonstandard directory <lib dir>
1107  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1108              headers in a nonstandard directory <include dir>
1109  MPICC       C MPI Compiler
1110  PKG_CONFIG  path to pkg-config utility
1111  CPP         C preprocessor
1112  CXX         C++ compiler command
1113  CXXFLAGS    C++ compiler flags
1114  CXXCPP      C++ preprocessor
1115  F77         Fortran 77 compiler command
1116  FFLAGS      Fortran 77 compiler flags
1117
1118Use these variables to override the choices made by `configure' or to help
1119it to find libraries and programs with nonstandard names/locations.
1120
1121Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1122_ACEOF
1123fi
1124
1125if test "$ac_init_help" = "recursive"; then
1126  # If there are subdirs, report their specific --help.
1127  ac_popdir=`pwd`
1128  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1129    test -d $ac_dir || continue
1130    ac_builddir=.
1131
1132if test "$ac_dir" != .; then
1133  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1134  # A "../" for each directory in $ac_dir_suffix.
1135  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1136else
1137  ac_dir_suffix= ac_top_builddir=
1138fi
1139
1140case $srcdir in
1141  .)  # No --srcdir option.  We are building in place.
1142    ac_srcdir=.
1143    if test -z "$ac_top_builddir"; then
1144       ac_top_srcdir=.
1145    else
1146       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1147    fi ;;
1148  [\\/]* | ?:[\\/]* )  # Absolute path.
1149    ac_srcdir=$srcdir$ac_dir_suffix;
1150    ac_top_srcdir=$srcdir ;;
1151  *) # Relative path.
1152    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1153    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1154esac
1155
1156# Do not use `cd foo && pwd` to compute absolute paths, because
1157# the directories may not exist.
1158case `pwd` in
1159.) ac_abs_builddir="$ac_dir";;
1160*)
1161  case "$ac_dir" in
1162  .) ac_abs_builddir=`pwd`;;
1163  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1164  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1165  esac;;
1166esac
1167case $ac_abs_builddir in
1168.) ac_abs_top_builddir=${ac_top_builddir}.;;
1169*)
1170  case ${ac_top_builddir}. in
1171  .) ac_abs_top_builddir=$ac_abs_builddir;;
1172  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1173  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1174  esac;;
1175esac
1176case $ac_abs_builddir in
1177.) ac_abs_srcdir=$ac_srcdir;;
1178*)
1179  case $ac_srcdir in
1180  .) ac_abs_srcdir=$ac_abs_builddir;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1182  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_top_srcdir=$ac_top_srcdir;;
1187*)
1188  case $ac_top_srcdir in
1189  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1191  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1192  esac;;
1193esac
1194
1195    cd $ac_dir
1196    # Check for guested configure; otherwise get Cygnus style configure.
1197    if test -f $ac_srcdir/configure.gnu; then
1198      echo
1199      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1200    elif test -f $ac_srcdir/configure; then
1201      echo
1202      $SHELL $ac_srcdir/configure  --help=recursive
1203    elif test -f $ac_srcdir/configure.ac ||
1204           test -f $ac_srcdir/configure.in; then
1205      echo
1206      $ac_configure --help
1207    else
1208      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1209    fi
1210    cd $ac_popdir
1211  done
1212fi
1213
1214test -n "$ac_init_help" && exit 0
1215if $ac_init_version; then
1216  cat <<\_ACEOF
1217ThirdPartyGlpk configure 1.10
1218generated by GNU Autoconf 2.59
1219
1220Copyright (C) 2003 Free Software Foundation, Inc.
1221This configure script is free software; the Free Software Foundation
1222gives unlimited permission to copy, distribute and modify it.
1223
1224
1225Copyright 2007-2010 Stefan Vigerske and others.
1226All Rights Reserved.
1227This file is part of the open source package Coin which is distributed
1228under the Eclipse Public License.
1229_ACEOF
1230  exit 0
1231fi
1232exec 5>config.log
1233cat >&5 <<_ACEOF
1234This file contains any messages produced by compilers while
1235running configure, to aid debugging if configure makes a mistake.
1236
1237It was created by ThirdPartyGlpk $as_me 1.10, which was
1238generated by GNU Autoconf 2.59.  Invocation command line was
1239
1240  $ $0 $@
1241
1242_ACEOF
1243{
1244cat <<_ASUNAME
1245## --------- ##
1246## Platform. ##
1247## --------- ##
1248
1249hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1250uname -m = `(uname -m) 2>/dev/null || echo unknown`
1251uname -r = `(uname -r) 2>/dev/null || echo unknown`
1252uname -s = `(uname -s) 2>/dev/null || echo unknown`
1253uname -v = `(uname -v) 2>/dev/null || echo unknown`
1254
1255/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1256/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1257
1258/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1259/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1260/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1261hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1262/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1263/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1264/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1265
1266_ASUNAME
1267
1268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1269for as_dir in $PATH
1270do
1271  IFS=$as_save_IFS
1272  test -z "$as_dir" && as_dir=.
1273  echo "PATH: $as_dir"
1274done
1275
1276} >&5
1277
1278cat >&5 <<_ACEOF
1279
1280
1281## ----------- ##
1282## Core tests. ##
1283## ----------- ##
1284
1285_ACEOF
1286
1287
1288# Keep a trace of the command line.
1289# Strip out --no-create and --no-recursion so they do not pile up.
1290# Strip out --silent because we don't want to record it for future runs.
1291# Also quote any args containing shell meta-characters.
1292# Make two passes to allow for proper duplicate-argument suppression.
1293ac_configure_args=
1294ac_configure_args0=
1295ac_configure_args1=
1296ac_sep=
1297ac_must_keep_next=false
1298for ac_pass in 1 2
1299do
1300  for ac_arg
1301  do
1302    case $ac_arg in
1303    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1304    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1305    | -silent | --silent | --silen | --sile | --sil)
1306      continue ;;
1307    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1309    esac
1310    case $ac_pass in
1311    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1312    2)
1313      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1314      if test $ac_must_keep_next = true; then
1315        ac_must_keep_next=false # Got value, back to normal.
1316      else
1317        case $ac_arg in
1318          *=* | --config-cache | -C | -disable-* | --disable-* \
1319          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1320          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1321          | -with-* | --with-* | -without-* | --without-* | --x)
1322            case "$ac_configure_args0 " in
1323              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1324            esac
1325            ;;
1326          -* ) ac_must_keep_next=true ;;
1327        esac
1328      fi
1329      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1330      # Get rid of the leading space.
1331      ac_sep=" "
1332      ;;
1333    esac
1334  done
1335done
1336$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1337$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1338
1339# When interrupted or exit'd, cleanup temporary files, and complete
1340# config.log.  We remove comments because anyway the quotes in there
1341# would cause problems or look ugly.
1342# WARNING: Be sure not to use single quotes in there, as some shells,
1343# such as our DU 5.0 friend, will then `close' the trap.
1344trap 'exit_status=$?
1345  # Save into config.log some information that might help in debugging.
1346  {
1347    echo
1348
1349    cat <<\_ASBOX
1350## ---------------- ##
1351## Cache variables. ##
1352## ---------------- ##
1353_ASBOX
1354    echo
1355    # The following way of writing the cache mishandles newlines in values,
1356{
1357  (set) 2>&1 |
1358    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1359    *ac_space=\ *)
1360      sed -n \
1361        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1362          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1363      ;;
1364    *)
1365      sed -n \
1366        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1367      ;;
1368    esac;
1369}
1370    echo
1371
1372    cat <<\_ASBOX
1373## ----------------- ##
1374## Output variables. ##
1375## ----------------- ##
1376_ASBOX
1377    echo
1378    for ac_var in $ac_subst_vars
1379    do
1380      eval ac_val=$`echo $ac_var`
1381      echo "$ac_var='"'"'$ac_val'"'"'"
1382    done | sort
1383    echo
1384
1385    if test -n "$ac_subst_files"; then
1386      cat <<\_ASBOX
1387## ------------- ##
1388## Output files. ##
1389## ------------- ##
1390_ASBOX
1391      echo
1392      for ac_var in $ac_subst_files
1393      do
1394        eval ac_val=$`echo $ac_var`
1395        echo "$ac_var='"'"'$ac_val'"'"'"
1396      done | sort
1397      echo
1398    fi
1399
1400    if test -s confdefs.h; then
1401      cat <<\_ASBOX
1402## ----------- ##
1403## confdefs.h. ##
1404## ----------- ##
1405_ASBOX
1406      echo
1407      sed "/^$/d" confdefs.h | sort
1408      echo
1409    fi
1410    test "$ac_signal" != 0 &&
1411      echo "$as_me: caught signal $ac_signal"
1412    echo "$as_me: exit $exit_status"
1413  } >&5
1414  rm -f core *.core &&
1415  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1416    exit $exit_status
1417     ' 0
1418for ac_signal in 1 2 13 15; do
1419  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1420done
1421ac_signal=0
1422
1423# confdefs.h avoids OS command line length limits that DEFS can exceed.
1424rm -rf conftest* confdefs.h
1425# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1426echo >confdefs.h
1427
1428# Predefined preprocessor variables.
1429
1430cat >>confdefs.h <<_ACEOF
1431#define PACKAGE_NAME "$PACKAGE_NAME"
1432_ACEOF
1433
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1437_ACEOF
1438
1439
1440cat >>confdefs.h <<_ACEOF
1441#define PACKAGE_VERSION "$PACKAGE_VERSION"
1442_ACEOF
1443
1444
1445cat >>confdefs.h <<_ACEOF
1446#define PACKAGE_STRING "$PACKAGE_STRING"
1447_ACEOF
1448
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1452_ACEOF
1453
1454
1455# Let the site file select an alternate cache file if it wants to.
1456# Prefer explicitly selected file to automatically selected ones.
1457if test -z "$CONFIG_SITE"; then
1458  if test "x$prefix" != xNONE; then
1459    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1460  else
1461    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1462  fi
1463fi
1464for ac_site_file in $CONFIG_SITE; do
1465  if test -r "$ac_site_file"; then
1466    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1467echo "$as_me: loading site script $ac_site_file" >&6;}
1468    sed 's/^/| /' "$ac_site_file" >&5
1469    . "$ac_site_file"
1470  fi
1471done
1472
1473if test -r "$cache_file"; then
1474  # Some versions of bash will fail to source /dev/null (special
1475  # files actually), so we avoid doing that.
1476  if test -f "$cache_file"; then
1477    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1478echo "$as_me: loading cache $cache_file" >&6;}
1479    case $cache_file in
1480      [\\/]* | ?:[\\/]* ) . $cache_file;;
1481      *)                      . ./$cache_file;;
1482    esac
1483  fi
1484else
1485  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1486echo "$as_me: creating cache $cache_file" >&6;}
1487  >$cache_file
1488fi
1489
1490# Check that the precious variables saved in the cache have kept the same
1491# value.
1492ac_cache_corrupted=false
1493for ac_var in `(set) 2>&1 |
1494               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1495  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1496  eval ac_new_set=\$ac_env_${ac_var}_set
1497  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1498  eval ac_new_val="\$ac_env_${ac_var}_value"
1499  case $ac_old_set,$ac_new_set in
1500    set,)
1501      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1502echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1503      ac_cache_corrupted=: ;;
1504    ,set)
1505      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1506echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1507      ac_cache_corrupted=: ;;
1508    ,);;
1509    *)
1510      if test "x$ac_old_val" != "x$ac_new_val"; then
1511        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1512echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1513        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1514echo "$as_me:   former value:  $ac_old_val" >&2;}
1515        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1516echo "$as_me:   current value: $ac_new_val" >&2;}
1517        ac_cache_corrupted=:
1518      fi;;
1519  esac
1520  # Pass precious variables to config.status.
1521  if test "$ac_new_set" = set; then
1522    case $ac_new_val in
1523    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1524      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1525    *) ac_arg=$ac_var=$ac_new_val ;;
1526    esac
1527    case " $ac_configure_args " in
1528      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1529      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1530    esac
1531  fi
1532done
1533if $ac_cache_corrupted; then
1534  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1535echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1536  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1537echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1538   { (exit 1); exit 1; }; }
1539fi
1540
1541ac_ext=c
1542ac_cpp='$CPP $CPPFLAGS'
1543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1576# List one file in the package so that the configure script can test
1577# whether the package is actually there
1578
1579
1580# Where should everything be installed by default?  Here, we want it
1581# to be installed directly in 'bin', 'lib', 'include' subdirectories
1582# of the directory where configure is run.  The default would be
1583# /usr/local.
1584
1585
1586
1587# As backup, we make sure we don't loose an FLIBS if it has been set
1588# by the user
1589save_FLIBS="$FLIBS"
1590
1591# A useful makefile conditional that is always false
1592
1593
1594if false; then
1595  ALWAYS_FALSE_TRUE=
1596  ALWAYS_FALSE_FALSE='#'
1597else
1598  ALWAYS_FALSE_TRUE='#'
1599  ALWAYS_FALSE_FALSE=
1600fi
1601
1602
1603# We set the following variable so that we know later in AC_COIN_FINALIZE
1604# that we are in a project main directory
1605coin_projectdir=yes
1606
1607# Set the project's version numbers
1608
1609
1610cat >>confdefs.h <<_ACEOF
1611#define GLPK_VERSION "$PACKAGE_VERSION"
1612_ACEOF
1613
1614
1615  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1616  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1617  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1618  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1619  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1620  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1621
1622cat >>confdefs.h <<_ACEOF
1623#define GLPK_VERSION_MAJOR $coin_majorver
1624_ACEOF
1625
1626
1627cat >>confdefs.h <<_ACEOF
1628#define GLPK_VERSION_MINOR $coin_minorver
1629_ACEOF
1630
1631
1632cat >>confdefs.h <<_ACEOF
1633#define GLPK_VERSION_RELEASE $coin_releasever
1634_ACEOF
1635
1636
1637  # We use the following variable to have a string with the upper case
1638  # version of the project name
1639  COIN_PRJCT=GLPK
1640
1641  # Set the project's SVN revision number. The complicated sed expression
1642  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1643  # as a single number.
1644  # Extract the first word of "svnversion", so it can be a program name with args.
1645set dummy svnversion; ac_word=$2
1646echo "$as_me:$LINENO: checking for $ac_word" >&5
1647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648if test "${ac_cv_prog_have_svnversion+set}" = set; then
1649  echo $ECHO_N "(cached) $ECHO_C" >&6
1650else
1651  if test -n "$have_svnversion"; then
1652  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1653else
1654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657  IFS=$as_save_IFS
1658  test -z "$as_dir" && as_dir=.
1659  for ac_exec_ext in '' $ac_executable_extensions; do
1660  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661    ac_cv_prog_have_svnversion="yes"
1662    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663    break 2
1664  fi
1665done
1666done
1667
1668  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1669fi
1670fi
1671have_svnversion=$ac_cv_prog_have_svnversion
1672if test -n "$have_svnversion"; then
1673  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1674echo "${ECHO_T}$have_svnversion" >&6
1675else
1676  echo "$as_me:$LINENO: result: no" >&5
1677echo "${ECHO_T}no" >&6
1678fi
1679
1680  if test "x$have_svnversion" = xyes; then
1681
1682    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1683    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1684      GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1685
1686cat >>confdefs.h <<_ACEOF
1687#define GLPK_SVN_REV $GLPK_SVN_REV
1688_ACEOF
1689
1690    fi
1691  fi
1692
1693
1694
1695# Capture libtool library version, if given.
1696
1697
1698
1699
1700#############################################################################
1701#                         Standard build tool stuff                         #
1702#############################################################################
1703
1704# Get the system type
1705ac_aux_dir=
1706for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1707  if test -f $ac_dir/install-sh; then
1708    ac_aux_dir=$ac_dir
1709    ac_install_sh="$ac_aux_dir/install-sh -c"
1710    break
1711  elif test -f $ac_dir/install.sh; then
1712    ac_aux_dir=$ac_dir
1713    ac_install_sh="$ac_aux_dir/install.sh -c"
1714    break
1715  elif test -f $ac_dir/shtool; then
1716    ac_aux_dir=$ac_dir
1717    ac_install_sh="$ac_aux_dir/shtool install -c"
1718    break
1719  fi
1720done
1721if test -z "$ac_aux_dir"; then
1722  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1723echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1724   { (exit 1); exit 1; }; }
1725fi
1726ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1727ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1728ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1729
1730# Make sure we can run config.sub.
1731$ac_config_sub sun4 >/dev/null 2>&1 ||
1732  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1733echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1734   { (exit 1); exit 1; }; }
1735
1736echo "$as_me:$LINENO: checking build system type" >&5
1737echo $ECHO_N "checking build system type... $ECHO_C" >&6
1738if test "${ac_cv_build+set}" = set; then
1739  echo $ECHO_N "(cached) $ECHO_C" >&6
1740else
1741  ac_cv_build_alias=$build_alias
1742test -z "$ac_cv_build_alias" &&
1743  ac_cv_build_alias=`$ac_config_guess`
1744test -z "$ac_cv_build_alias" &&
1745  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1746echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1747   { (exit 1); exit 1; }; }
1748ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1749  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1750echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1751   { (exit 1); exit 1; }; }
1752
1753fi
1754echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1755echo "${ECHO_T}$ac_cv_build" >&6
1756build=$ac_cv_build
1757build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1758build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1759build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1760
1761
1762
1763#turn off warnings and pedantic mode since it seem to make trouble on solaris platform
1764#and we couldn't fix it anyway
1765coin_skip_warn_cflags=yes
1766
1767# Check if user wants to produce debugging code
1768
1769echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1770echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1771
1772# Check whether --enable-debug or --disable-debug was given.
1773if test "${enable_debug+set}" = set; then
1774  enableval="$enable_debug"
1775  case "${enableval}" in
1776   yes) coin_debug_compile=true
1777        if test "${enable_shared+set}" = set; then :; else
1778          enable_shared=no
1779        fi
1780        ;;
1781   no)  coin_debug_compile=false
1782        ;;
1783   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1784echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1785   { (exit 1); exit 1; }; }
1786        ;;
1787esac
1788else
1789  coin_debug_compile=false
1790fi;
1791
1792# Check whether --enable-debug-glpk or --disable-debug-glpk was given.
1793if test "${enable_debug_glpk+set}" = set; then
1794  enableval="$enable_debug_glpk"
1795  case "${enableval}" in
1796    yes) coin_debug_compile=true
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
1858
1859
1860  # for backward compatibility
1861  # Check whether --enable-doscompile or --disable-doscompile was given.
1862if test "${enable_doscompile+set}" = set; then
1863  enableval="$enable_doscompile"
1864  enable_doscompile=$enableval
1865else
1866  enable_doscompile=no
1867fi;
1868
1869  # Check whether --enable-msvc or --disable-msvc was given.
1870if test "${enable_msvc+set}" = set; then
1871  enableval="$enable_msvc"
1872  enable_msvc=$enableval
1873else
1874  enable_msvc=no
1875     if test "$enable_doscompile" = msvc ; then
1876       enable_msvc=yes
1877     elif test "$enable_doscompile" != no ; then
1878       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1879echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1880   { (exit 1); exit 1; }; }
1881     fi
1882
1883fi;
1884
1885  if test "$enable_msvc" = MD; then
1886    enable_shared=yes
1887    enable_msvc=yes
1888  fi
1889
1890  if test "$enable_msvc" = yes; then
1891    case $build in
1892      *-cygwin* | *-mingw*) ;;
1893      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1894echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1895   { (exit 1); exit 1; }; } ;;
1896    esac
1897  fi
1898
1899
1900
1901ac_ext=c
1902ac_cpp='$CPP $CPPFLAGS'
1903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1905ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906
1907
1908# For consistency, we set the C compiler to the same value of the C++
1909# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1910if test x"$CXX" != x; then
1911  case "$CXX" in
1912    clang* ) ;;
1913    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1914      if test x"$CC" = x; then
1915        CC="$CXX"
1916        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1917echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1918      fi
1919      ;;
1920  esac
1921fi
1922
1923
1924
1925
1926
1927
1928coin_has_cc=yes
1929
1930save_cflags="$CFLAGS"
1931
1932# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1933# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1934# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1935# compiler. In this case, put cc after gcc.
1936
1937case $build in
1938  *-cygwin* | *-mingw*)
1939             if test "$enable_msvc" = yes ; then
1940               comps="icl cl gcc"
1941             else
1942               comps="gcc icl cl"
1943             fi ;;
1944  *-*-solaris*)
1945             # Extract the first word of "cc", so it can be a program name with args.
1946set dummy cc; ac_word=$2
1947echo "$as_me:$LINENO: checking for $ac_word" >&5
1948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1950  echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952  if test -n "$sol_cc_compiler"; then
1953  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1954else
1955  ac_prog_rejected=no
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959  IFS=$as_save_IFS
1960  test -z "$as_dir" && as_dir=.
1961  for ac_exec_ext in '' $ac_executable_extensions; do
1962  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1964       ac_prog_rejected=yes
1965       continue
1966     fi
1967    ac_cv_prog_sol_cc_compiler="cc"
1968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969    break 2
1970  fi
1971done
1972done
1973
1974if test $ac_prog_rejected = yes; then
1975  # We found a bogon in the path, so make sure we never use it.
1976  set dummy $ac_cv_prog_sol_cc_compiler
1977  shift
1978  if test $# != 0; then
1979    # We chose a different compiler from the bogus one.
1980    # However, it has the same basename, so the bogon will be chosen
1981    # first if we set sol_cc_compiler to just the basename; use the full file name.
1982    shift
1983    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1984  fi
1985fi
1986fi
1987fi
1988sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1989if test -n "$sol_cc_compiler"; then
1990  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1991echo "${ECHO_T}$sol_cc_compiler" >&6
1992else
1993  echo "$as_me:$LINENO: result: no" >&5
1994echo "${ECHO_T}no" >&6
1995fi
1996
1997             if test "$sol_cc_compiler" = "cc" ; then
1998               comps="cc xlc gcc pgcc icc"
1999             else
2000               comps="xlc gcc pgcc icc cc"
2001             fi
2002             ;;
2003  *-*-darwin*) comps="clang gcc cc" ;;
2004  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2005  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2006  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2007esac
2008
2009# We delete the cached value, since the test might not have been
2010# performed with our choice of compilers earlier
2011$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2012# AC_MSG_NOTICE([C compiler candidates: $comps])
2013ac_ext=c
2014ac_cpp='$CPP $CPPFLAGS'
2015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018if test -n "$ac_tool_prefix"; then
2019  for ac_prog in $comps
2020  do
2021    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2022set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2023echo "$as_me:$LINENO: checking for $ac_word" >&5
2024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025if test "${ac_cv_prog_CC+set}" = set; then
2026  echo $ECHO_N "(cached) $ECHO_C" >&6
2027else
2028  if test -n "$CC"; then
2029  ac_cv_prog_CC="$CC" # Let the user override the test.
2030else
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034  IFS=$as_save_IFS
2035  test -z "$as_dir" && as_dir=.
2036  for ac_exec_ext in '' $ac_executable_extensions; do
2037  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040    break 2
2041  fi
2042done
2043done
2044
2045fi
2046fi
2047CC=$ac_cv_prog_CC
2048if test -n "$CC"; then
2049  echo "$as_me:$LINENO: result: $CC" >&5
2050echo "${ECHO_T}$CC" >&6
2051else
2052  echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6
2054fi
2055
2056    test -n "$CC" && break
2057  done
2058fi
2059if test -z "$CC"; then
2060  ac_ct_CC=$CC
2061  for ac_prog in $comps
2062do
2063  # Extract the first word of "$ac_prog", so it can be a program name with args.
2064set dummy $ac_prog; ac_word=$2
2065echo "$as_me:$LINENO: checking for $ac_word" >&5
2066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2068  echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070  if test -n "$ac_ct_CC"; then
2071  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2072else
2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074for as_dir in $PATH
2075do
2076  IFS=$as_save_IFS
2077  test -z "$as_dir" && as_dir=.
2078  for ac_exec_ext in '' $ac_executable_extensions; do
2079  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080    ac_cv_prog_ac_ct_CC="$ac_prog"
2081    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082    break 2
2083  fi
2084done
2085done
2086
2087fi
2088fi
2089ac_ct_CC=$ac_cv_prog_ac_ct_CC
2090if test -n "$ac_ct_CC"; then
2091  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2092echo "${ECHO_T}$ac_ct_CC" >&6
2093else
2094  echo "$as_me:$LINENO: result: no" >&5
2095echo "${ECHO_T}no" >&6
2096fi
2097
2098  test -n "$ac_ct_CC" && break
2099done
2100
2101  CC=$ac_ct_CC
2102fi
2103
2104
2105test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2106See \`config.log' for more details." >&5
2107echo "$as_me: error: no acceptable C compiler found in \$PATH
2108See \`config.log' for more details." >&2;}
2109   { (exit 1); exit 1; }; }
2110
2111# Provide some information about the compiler.
2112echo "$as_me:$LINENO:" \
2113     "checking for C compiler version" >&5
2114ac_compiler=`set X $ac_compile; echo $2`
2115{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2116  (eval $ac_compiler --version </dev/null >&5) 2>&5
2117  ac_status=$?
2118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119  (exit $ac_status); }
2120{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2121  (eval $ac_compiler -v </dev/null >&5) 2>&5
2122  ac_status=$?
2123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124  (exit $ac_status); }
2125{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2126  (eval $ac_compiler -V </dev/null >&5) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }
2130
2131cat >conftest.$ac_ext <<_ACEOF
2132/* confdefs.h.  */
2133_ACEOF
2134cat confdefs.h >>conftest.$ac_ext
2135cat >>conftest.$ac_ext <<_ACEOF
2136/* end confdefs.h.  */
2137
2138int
2139main ()
2140{
2141
2142  ;
2143  return 0;
2144}
2145_ACEOF
2146ac_clean_files_save=$ac_clean_files
2147ac_clean_files="$ac_clean_files a.out a.exe b.out"
2148# Try to create an executable without -o first, disregard a.out.
2149# It will help us diagnose broken compilers, and finding out an intuition
2150# of exeext.
2151echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2152echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2153ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155  (eval $ac_link_default) 2>&5
2156  ac_status=$?
2157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158  (exit $ac_status); }; then
2159  # Find the output, starting from the most likely.  This scheme is
2160# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2161# resort.
2162
2163# Be careful to initialize this variable, since it used to be cached.
2164# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2165ac_cv_exeext=
2166# b.out is created by i960 compilers.
2167for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2168do
2169  test -f "$ac_file" || continue
2170  case $ac_file in
2171    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2172        ;;
2173    conftest.$ac_ext )
2174        # This is the source file.
2175        ;;
2176    [ab].out )
2177        # We found the default executable, but exeext='' is most
2178        # certainly right.
2179        break;;
2180    *.* )
2181        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182        # FIXME: I believe we export ac_cv_exeext for Libtool,
2183        # but it would be cool to find out if it's true.  Does anybody
2184        # maintain Libtool? --akim.
2185        export ac_cv_exeext
2186        break;;
2187    * )
2188        break;;
2189  esac
2190done
2191else
2192  echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2196See \`config.log' for more details." >&5
2197echo "$as_me: error: C compiler cannot create executables
2198See \`config.log' for more details." >&2;}
2199   { (exit 77); exit 77; }; }
2200fi
2201
2202ac_exeext=$ac_cv_exeext
2203echo "$as_me:$LINENO: result: $ac_file" >&5
2204echo "${ECHO_T}$ac_file" >&6
2205
2206# Check the compiler produces executables we can run.  If not, either
2207# the compiler is broken, or we cross compile.
2208echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2209echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2210# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211# If not cross compiling, check that we can run a simple program.
2212if test "$cross_compiling" != yes; then
2213  if { ac_try='./$ac_file'
2214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215  (eval $ac_try) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }; }; then
2219    cross_compiling=no
2220  else
2221    if test "$cross_compiling" = maybe; then
2222        cross_compiling=yes
2223    else
2224        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2225If you meant to cross compile, use \`--host'.
2226See \`config.log' for more details." >&5
2227echo "$as_me: error: cannot run C compiled programs.
2228If you meant to cross compile, use \`--host'.
2229See \`config.log' for more details." >&2;}
2230   { (exit 1); exit 1; }; }
2231    fi
2232  fi
2233fi
2234echo "$as_me:$LINENO: result: yes" >&5
2235echo "${ECHO_T}yes" >&6
2236
2237rm -f a.out a.exe conftest$ac_cv_exeext b.out
2238ac_clean_files=$ac_clean_files_save
2239# Check the compiler produces executables we can run.  If not, either
2240# the compiler is broken, or we cross compile.
2241echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244echo "${ECHO_T}$cross_compiling" >&6
2245
2246echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249  (eval $ac_link) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; then
2253  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2255# work properly (i.e., refer to `conftest.exe'), while it won't with
2256# `rm'.
2257for ac_file in conftest.exe conftest conftest.*; do
2258  test -f "$ac_file" || continue
2259  case $ac_file in
2260    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2261    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262          export ac_cv_exeext
2263          break;;
2264    * ) break;;
2265  esac
2266done
2267else
2268  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269See \`config.log' for more details." >&5
2270echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271See \`config.log' for more details." >&2;}
2272   { (exit 1); exit 1; }; }
2273fi
2274
2275rm -f conftest$ac_cv_exeext
2276echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277echo "${ECHO_T}$ac_cv_exeext" >&6
2278
2279rm -f conftest.$ac_ext
2280EXEEXT=$ac_cv_exeext
2281ac_exeext=$EXEEXT
2282echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284if test "${ac_cv_objext+set}" = set; then
2285  echo $ECHO_N "(cached) $ECHO_C" >&6
2286else
2287  cat >conftest.$ac_ext <<_ACEOF
2288/* confdefs.h.  */
2289_ACEOF
2290cat confdefs.h >>conftest.$ac_ext
2291cat >>conftest.$ac_ext <<_ACEOF
2292/* end confdefs.h.  */
2293
2294int
2295main ()
2296{
2297
2298  ;
2299  return 0;
2300}
2301_ACEOF
2302rm -f conftest.o conftest.obj
2303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2304  (eval $ac_compile) 2>&5
2305  ac_status=$?
2306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307  (exit $ac_status); }; then
2308  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2309  case $ac_file in
2310    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2311    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2312       break;;
2313  esac
2314done
2315else
2316  echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
2318
2319{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2320See \`config.log' for more details." >&5
2321echo "$as_me: error: cannot compute suffix of object files: cannot compile
2322See \`config.log' for more details." >&2;}
2323   { (exit 1); exit 1; }; }
2324fi
2325
2326rm -f conftest.$ac_cv_objext conftest.$ac_ext
2327fi
2328echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2329echo "${ECHO_T}$ac_cv_objext" >&6
2330OBJEXT=$ac_cv_objext
2331ac_objext=$OBJEXT
2332echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2333echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2334if test "${ac_cv_c_compiler_gnu+set}" = set; then
2335  echo $ECHO_N "(cached) $ECHO_C" >&6
2336else
2337  cat >conftest.$ac_ext <<_ACEOF
2338/* confdefs.h.  */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h.  */
2343
2344int
2345main ()
2346{
2347#ifndef __GNUC__
2348       choke me
2349#endif
2350
2351  ;
2352  return 0;
2353}
2354_ACEOF
2355rm -f conftest.$ac_objext
2356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357  (eval $ac_compile) 2>conftest.er1
2358  ac_status=$?
2359  grep -v '^ *+' conftest.er1 >conftest.err
2360  rm -f conftest.er1
2361  cat conftest.err >&5
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); } &&
2364         { ac_try='test -z "$ac_c_werror_flag"
2365                         || test ! -s conftest.err'
2366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367  (eval $ac_try) 2>&5
2368  ac_status=$?
2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370  (exit $ac_status); }; } &&
2371         { ac_try='test -s conftest.$ac_objext'
2372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373  (eval $ac_try) 2>&5
2374  ac_status=$?
2375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376  (exit $ac_status); }; }; then
2377  ac_compiler_gnu=yes
2378else
2379  echo "$as_me: failed program was:" >&5
2380sed 's/^/| /' conftest.$ac_ext >&5
2381
2382ac_compiler_gnu=no
2383fi
2384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385ac_cv_c_compiler_gnu=$ac_compiler_gnu
2386
2387fi
2388echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2389echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2390GCC=`test $ac_compiler_gnu = yes && echo yes`
2391ac_test_CFLAGS=${CFLAGS+set}
2392ac_save_CFLAGS=$CFLAGS
2393CFLAGS="-g"
2394echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2395echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2396if test "${ac_cv_prog_cc_g+set}" = set; then
2397  echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399  cat >conftest.$ac_ext <<_ACEOF
2400/* confdefs.h.  */
2401_ACEOF
2402cat confdefs.h >>conftest.$ac_ext
2403cat >>conftest.$ac_ext <<_ACEOF
2404/* end confdefs.h.  */
2405
2406int
2407main ()
2408{
2409
2410  ;
2411  return 0;
2412}
2413_ACEOF
2414rm -f conftest.$ac_objext
2415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416  (eval $ac_compile) 2>conftest.er1
2417  ac_status=$?
2418  grep -v '^ *+' conftest.er1 >conftest.err
2419  rm -f conftest.er1
2420  cat conftest.err >&5
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); } &&
2423         { ac_try='test -z "$ac_c_werror_flag"
2424                         || test ! -s conftest.err'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; } &&
2430         { ac_try='test -s conftest.$ac_objext'
2431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432  (eval $ac_try) 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); }; }; then
2436  ac_cv_prog_cc_g=yes
2437else
2438  echo "$as_me: failed program was:" >&5
2439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441ac_cv_prog_cc_g=no
2442fi
2443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444fi
2445echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2446echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2447if test "$ac_test_CFLAGS" = set; then
2448  CFLAGS=$ac_save_CFLAGS
2449elif test $ac_cv_prog_cc_g = yes; then
2450  if test "$GCC" = yes; then
2451    CFLAGS="-g -O2"
2452  else
2453    CFLAGS="-g"
2454  fi
2455else
2456  if test "$GCC" = yes; then
2457    CFLAGS="-O2"
2458  else
2459    CFLAGS=
2460  fi
2461fi
2462echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2463echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2464if test "${ac_cv_prog_cc_stdc+set}" = set; then
2465  echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467  ac_cv_prog_cc_stdc=no
2468ac_save_CC=$CC
2469cat >conftest.$ac_ext <<_ACEOF
2470/* confdefs.h.  */
2471_ACEOF
2472cat confdefs.h >>conftest.$ac_ext
2473cat >>conftest.$ac_ext <<_ACEOF
2474/* end confdefs.h.  */
2475#include <stdarg.h>
2476#include <stdio.h>
2477#include <sys/types.h>
2478#include <sys/stat.h>
2479/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2480struct buf { int x; };
2481FILE * (*rcsopen) (struct buf *, struct stat *, int);
2482static char *e (p, i)
2483     char **p;
2484     int i;
2485{
2486  return p[i];
2487}
2488static char *f (char * (*g) (char **, int), char **p, ...)
2489{
2490  char *s;
2491  va_list v;
2492  va_start (v,p);
2493  s = g (p, va_arg (v,int));
2494  va_end (v);
2495  return s;
2496}
2497
2498/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2499   function prototypes and stuff, but not '\xHH' hex character constants.
2500   These don't provoke an error unfortunately, instead are silently treated
2501   as 'x'.  The following induces an error, until -std1 is added to get
2502   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2503   array size at least.  It's necessary to write '\x00'==0 to get something
2504   that's true only with -std1.  */
2505int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2506
2507int test (int i, double x);
2508struct s1 {int (*f) (int a);};
2509struct s2 {int (*f) (double a);};
2510int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2511int argc;
2512char **argv;
2513int
2514main ()
2515{
2516return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2517  ;
2518  return 0;
2519}
2520_ACEOF
2521# Don't try gcc -ansi; that turns off useful extensions and
2522# breaks some systems' header files.
2523# AIX                   -qlanglvl=ansi
2524# Ultrix and OSF/1      -std1
2525# HP-UX 10.20 and later -Ae
2526# HP-UX older versions  -Aa -D_HPUX_SOURCE
2527# SVR4                  -Xc -D__EXTENSIONS__
2528for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2529do
2530  CC="$ac_save_CC $ac_arg"
2531  rm -f conftest.$ac_objext
2532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533  (eval $ac_compile) 2>conftest.er1
2534  ac_status=$?
2535  grep -v '^ *+' conftest.er1 >conftest.err
2536  rm -f conftest.er1
2537  cat conftest.err >&5
2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539  (exit $ac_status); } &&
2540         { ac_try='test -z "$ac_c_werror_flag"
2541                         || test ! -s conftest.err'
2542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543  (eval $ac_try) 2>&5
2544  ac_status=$?
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); }; } &&
2547         { ac_try='test -s conftest.$ac_objext'
2548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549  (eval $ac_try) 2>&5
2550  ac_status=$?
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); }; }; then
2553  ac_cv_prog_cc_stdc=$ac_arg
2554break
2555else
2556  echo "$as_me: failed program was:" >&5
2557sed 's/^/| /' conftest.$ac_ext >&5
2558
2559fi
2560rm -f conftest.err conftest.$ac_objext
2561done
2562rm -f conftest.$ac_ext conftest.$ac_objext
2563CC=$ac_save_CC
2564
2565fi
2566
2567case "x$ac_cv_prog_cc_stdc" in
2568  x|xno)
2569    echo "$as_me:$LINENO: result: none needed" >&5
2570echo "${ECHO_T}none needed" >&6 ;;
2571  *)
2572    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2573echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2574    CC="$CC $ac_cv_prog_cc_stdc" ;;
2575esac
2576
2577# Some people use a C++ compiler to compile C.  Since we use `exit',
2578# in C++ we need to declare it.  In case someone uses the same compiler
2579# for both compiling C and C++ we need to have the C++ compiler decide
2580# the declaration of exit, since it's the most demanding environment.
2581cat >conftest.$ac_ext <<_ACEOF
2582#ifndef __cplusplus
2583  choke me
2584#endif
2585_ACEOF
2586rm -f conftest.$ac_objext
2587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588  (eval $ac_compile) 2>conftest.er1
2589  ac_status=$?
2590  grep -v '^ *+' conftest.er1 >conftest.err
2591  rm -f conftest.er1
2592  cat conftest.err >&5
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); } &&
2595         { ac_try='test -z "$ac_c_werror_flag"
2596                         || test ! -s conftest.err'
2597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598  (eval $ac_try) 2>&5
2599  ac_status=$?
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); }; } &&
2602         { ac_try='test -s conftest.$ac_objext'
2603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604  (eval $ac_try) 2>&5
2605  ac_status=$?
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); }; }; then
2608  for ac_declaration in \
2609   '' \
2610   'extern "C" void std::exit (int) throw (); using std::exit;' \
2611   'extern "C" void std::exit (int); using std::exit;' \
2612   'extern "C" void exit (int) throw ();' \
2613   'extern "C" void exit (int);' \
2614   'void exit (int);'
2615do
2616  cat >conftest.$ac_ext <<_ACEOF
2617/* confdefs.h.  */
2618_ACEOF
2619cat confdefs.h >>conftest.$ac_ext
2620cat >>conftest.$ac_ext <<_ACEOF
2621/* end confdefs.h.  */
2622$ac_declaration
2623#include <stdlib.h>
2624int
2625main ()
2626{
2627exit (42);
2628  ;
2629  return 0;
2630}
2631_ACEOF
2632rm -f conftest.$ac_objext
2633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634  (eval $ac_compile) 2>conftest.er1
2635  ac_status=$?
2636  grep -v '^ *+' conftest.er1 >conftest.err
2637  rm -f conftest.er1
2638  cat conftest.err >&5
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); } &&
2641         { ac_try='test -z "$ac_c_werror_flag"
2642                         || test ! -s conftest.err'
2643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644  (eval $ac_try) 2>&5
2645  ac_status=$?
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); }; } &&
2648         { ac_try='test -s conftest.$ac_objext'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; }; then
2654  :
2655else
2656  echo "$as_me: failed program was:" >&5
2657sed 's/^/| /' conftest.$ac_ext >&5
2658
2659continue
2660fi
2661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2662  cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h.  */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h.  */
2668$ac_declaration
2669int
2670main ()
2671{
2672exit (42);
2673  ;
2674  return 0;
2675}
2676_ACEOF
2677rm -f conftest.$ac_objext
2678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679  (eval $ac_compile) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } &&
2686         { ac_try='test -z "$ac_c_werror_flag"
2687                         || test ! -s conftest.err'
2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689  (eval $ac_try) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); }; } &&
2693         { ac_try='test -s conftest.$ac_objext'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; }; then
2699  break
2700else
2701  echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704fi
2705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706done
2707rm -f conftest*
2708if test -n "$ac_declaration"; then
2709  echo '#ifdef __cplusplus' >>confdefs.h
2710  echo $ac_declaration      >>confdefs.h
2711  echo '#endif'             >>confdefs.h
2712fi
2713
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718fi
2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720ac_ext=c
2721ac_cpp='$CPP $CPPFLAGS'
2722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725
2726if test -z "$CC" ; then
2727  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2728echo "$as_me: error: Failed to find a C compiler!" >&2;}
2729   { (exit 1); exit 1; }; }
2730fi
2731# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2732case "$CC" in
2733  clang* ) ;;
2734  cl* | */cl* | CL* | */CL* )
2735    if test "$ac_cv_prog_cc_g" = yes ; then
2736      ac_cv_prog_cc_g=no
2737      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2738echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2739    fi ;;
2740  * )
2741    if test x"$CYGPATH_W" = x ; then
2742      CYGPATH_W=echo
2743    fi
2744    ;;
2745esac
2746CFLAGS="$save_cflags"
2747
2748# add automake conditional so we can recognize cl compiler in makefile
2749coin_cc_is_cl=false
2750case "$CC" in
2751  clang* ) ;;
2752  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2753    coin_cc_is_cl=true
2754    ;;
2755esac
2756
2757
2758if test $coin_cc_is_cl = true; then
2759  COIN_CC_IS_CL_TRUE=
2760  COIN_CC_IS_CL_FALSE='#'
2761else
2762  COIN_CC_IS_CL_TRUE='#'
2763  COIN_CC_IS_CL_FALSE=
2764fi
2765
2766
2767# Check if a project specific CFLAGS variable has been set
2768if test x$COIN_PRJCT != x; then
2769  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2770  if test x$coin_tmp = xset; then
2771    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2772  fi
2773fi
2774
2775if test x"$CFLAGS" = x; then
2776
2777  coin_add_cflags=
2778  coin_opt_cflags=
2779  coin_dbg_cflags=
2780  coin_warn_cflags=
2781
2782  if test "$GCC" = "yes"; then
2783    case "$CC" in
2784      icc* | */icc*)
2785        ;;
2786      *)
2787        coin_opt_cflags="-O3"
2788        coin_add_cflags="-pipe"
2789        coin_dbg_cflags="-g -O0"
2790        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2791        case $build in
2792          *-darwin*)
2793            ;;
2794          *)
2795            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2796            ;;
2797        esac
2798    esac
2799  fi
2800  if test -z "$coin_opt_cflags"; then
2801    case $build in
2802      *-cygwin* | *-mingw*)
2803        case "$CC" in
2804          clang* ) ;;
2805          cl* | */cl* | CL* | */CL*)
2806            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2807              coin_opt_cflags='-MD -O2'
2808              coin_dbg_cflags='-MDd'
2809            else
2810              coin_opt_cflags='-MT -O2'
2811              coin_dbg_cflags='-MTd'
2812            fi
2813            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2814            ;;
2815          icl* | */icl* | ICL* | */ICL*)
2816            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2817              coin_opt_cflags='-MD -Ox'
2818              coin_dbg_cflags='-MDd -debug'
2819            else
2820              coin_opt_cflags='-MT -Ox'
2821              coin_dbg_cflags='-MTd -debug'
2822            fi
2823            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2824            ;;
2825        esac
2826        ;;
2827      *-linux-*)
2828        case "$CC" in
2829          icc* | */icc*)
2830            coin_opt_cflags="-O3 -ip -mp1"
2831            coin_add_cflags=""
2832            coin_dbg_cflags="-g"
2833            # Check if -i_dynamic is necessary (for new glibc library)
2834            CFLAGS=
2835            cat >conftest.$ac_ext <<_ACEOF
2836/* confdefs.h.  */
2837_ACEOF
2838cat confdefs.h >>conftest.$ac_ext
2839cat >>conftest.$ac_ext <<_ACEOF
2840/* end confdefs.h.  */
2841
2842int
2843main ()
2844{
2845int i=0; i++;
2846  ;
2847  return 0;
2848}
2849_ACEOF
2850rm -f conftest.$ac_objext conftest$ac_exeext
2851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2852  (eval $ac_link) 2>conftest.er1
2853  ac_status=$?
2854  grep -v '^ *+' conftest.er1 >conftest.err
2855  rm -f conftest.er1
2856  cat conftest.err >&5
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); } &&
2859         { ac_try='test -z "$ac_c_werror_flag"
2860                         || test ! -s conftest.err'
2861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862  (eval $ac_try) 2>&5
2863  ac_status=$?
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); }; } &&
2866         { ac_try='test -s conftest$ac_exeext'
2867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868  (eval $ac_try) 2>&5
2869  ac_status=$?
2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871  (exit $ac_status); }; }; then
2872  :
2873else
2874  echo "$as_me: failed program was:" >&5
2875sed 's/^/| /' conftest.$ac_ext >&5
2876
2877coin_add_cflags="-i_dynamic $coin_add_cflags"
2878fi
2879rm -f conftest.err conftest.$ac_objext \
2880      conftest$ac_exeext conftest.$ac_ext
2881            ;;
2882          pgcc* | */pgcc*)
2883            coin_opt_cflags="-fast"
2884            coin_add_cflags="-Kieee -pc 64"
2885            coin_dbg_cflags="-g"
2886            ;;
2887        esac
2888        ;;
2889      *-ibm-*)
2890        case "$CC" in
2891          xlc* | */xlc* | mpxlc* | */mpxlc*)
2892            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2893            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2894            coin_dbg_cflags="-g"
2895          ;;
2896        esac
2897        ;;
2898      *-hp-*)
2899        coin_opt_cflags="-O"
2900        coin_add_cflags="-Ae"
2901        coin_dbg_cflags="-g"
2902        ;;
2903      *-*-solaris*)
2904        coin_opt_cflags="-xO4"
2905        coin_dbg_cflags="-g"
2906        ;;
2907      *-sgi-*)
2908        coin_opt_cflags="-O -OPT:Olimit=0"
2909        coin_dbg_cflags="-g"
2910        ;;
2911    esac
2912  fi
2913
2914  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2915    coin_dbg_cflags="-g"
2916  fi
2917
2918  if test -z "$coin_opt_cflags"; then
2919    # Try if -O option works if nothing else is set
2920    CFLAGS="-O"
2921    cat >conftest.$ac_ext <<_ACEOF
2922/* confdefs.h.  */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h.  */
2927
2928int
2929main ()
2930{
2931int i=0; i++;
2932  ;
2933  return 0;
2934}
2935_ACEOF
2936rm -f conftest.$ac_objext conftest$ac_exeext
2937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2938  (eval $ac_link) 2>conftest.er1
2939  ac_status=$?
2940  grep -v '^ *+' conftest.er1 >conftest.err
2941  rm -f conftest.er1
2942  cat conftest.err >&5
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); } &&
2945         { ac_try='test -z "$ac_c_werror_flag"
2946                         || test ! -s conftest.err'
2947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948  (eval $ac_try) 2>&5
2949  ac_status=$?
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); }; } &&
2952         { ac_try='test -s conftest$ac_exeext'
2953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954  (eval $ac_try) 2>&5
2955  ac_status=$?
2956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957  (exit $ac_status); }; }; then
2958  coin_opt_cflags="-O"
2959else
2960  echo "$as_me: failed program was:" >&5
2961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963fi
2964rm -f conftest.err conftest.$ac_objext \
2965      conftest$ac_exeext conftest.$ac_ext
2966  fi
2967
2968  # if PM doesn't want the warning messages, take them out
2969  if test x"$coin_skip_warn_cflags" = xyes; then
2970    coin_warn_cflags=
2971  fi
2972
2973  if test x${DBG_CFLAGS+set} != xset; then
2974    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2975  fi
2976  if test x${OPT_CFLAGS+set} != xset; then
2977    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2978  fi
2979
2980  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2981  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2982
2983  if test "$coin_debug_compile" = "true"; then
2984    CFLAGS="$DBG_CFLAGS"
2985  else
2986    CFLAGS="$OPT_CFLAGS"
2987  fi
2988else
2989  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2990  if test x${DBG_CFLAGS+set} != xset; then
2991    DBG_CFLAGS="$CFLAGS"
2992  fi
2993  if test x${OPT_CFLAGS+set} != xset; then
2994    OPT_CFLAGS="$CFLAGS"
2995  fi
2996fi
2997
2998# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2999if test x$COIN_PRJCT != x; then
3000  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3001fi
3002
3003# Try if CFLAGS works
3004save_CFLAGS="$CFLAGS"
3005cat >conftest.$ac_ext <<_ACEOF
3006/* confdefs.h.  */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h.  */
3011
3012int
3013main ()
3014{
3015int i=0; i++;
3016  ;
3017  return 0;
3018}
3019_ACEOF
3020rm -f conftest.$ac_objext conftest$ac_exeext
3021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3022  (eval $ac_link) 2>conftest.er1
3023  ac_status=$?
3024  grep -v '^ *+' conftest.er1 >conftest.err
3025  rm -f conftest.er1
3026  cat conftest.err >&5
3027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028  (exit $ac_status); } &&
3029         { ac_try='test -z "$ac_c_werror_flag"
3030                         || test ! -s conftest.err'
3031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032  (eval $ac_try) 2>&5
3033  ac_status=$?
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); }; } &&
3036         { ac_try='test -s conftest$ac_exeext'
3037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038  (eval $ac_try) 2>&5
3039  ac_status=$?
3040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041  (exit $ac_status); }; }; then
3042  :
3043else
3044  echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047CFLAGS=
3048fi
3049rm -f conftest.err conftest.$ac_objext \
3050      conftest$ac_exeext conftest.$ac_ext
3051if test -z "$CFLAGS"; then
3052  { 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
3053echo "$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;}
3054  CFLAGS='-O'
3055  cat >conftest.$ac_ext <<_ACEOF
3056/* confdefs.h.  */
3057_ACEOF
3058cat confdefs.h >>conftest.$ac_ext
3059cat >>conftest.$ac_ext <<_ACEOF
3060/* end confdefs.h.  */
3061
3062int
3063main ()
3064{
3065int i=0; i++;
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext conftest$ac_exeext
3071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3072  (eval $ac_link) 2>conftest.er1
3073  ac_status=$?
3074  grep -v '^ *+' conftest.er1 >conftest.err
3075  rm -f conftest.er1
3076  cat conftest.err >&5
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); } &&
3079         { ac_try='test -z "$ac_c_werror_flag"
3080                         || test ! -s conftest.err'
3081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082  (eval $ac_try) 2>&5
3083  ac_status=$?
3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085  (exit $ac_status); }; } &&
3086         { ac_try='test -s conftest$ac_exeext'
3087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088  (eval $ac_try) 2>&5
3089  ac_status=$?
3090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); }; }; then
3092  :
3093else
3094  echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
3097CFLAGS=
3098fi
3099rm -f conftest.err conftest.$ac_objext \
3100      conftest$ac_exeext conftest.$ac_ext
3101  if test -z "$CFLAGS"; then
3102    { 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
3103echo "$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;}
3104  fi
3105fi
3106
3107{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3108echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3109
3110
3111if test x"$MPICC" = x; then :; else
3112  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3113echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3114  CC="$MPICC"
3115fi
3116
3117# Correct the LD variable if we are using the MS or Intel-windows compiler
3118case "$CC" in
3119  clang* ) ;;
3120  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3121    LD=link
3122    ;;
3123esac
3124
3125ac_ext=c
3126ac_cpp='$CPP $CPPFLAGS'
3127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130
3131
3132
3133# Check if pkg-config is available (to setup addlibs file)
3134
3135
3136# Check whether --enable-pkg-config or --disable-pkg-config was given.
3137if test "${enable_pkg_config+set}" = set; then
3138  enableval="$enable_pkg_config"
3139  use_pkgconfig="$enableval"
3140else
3141  if test x$coin_cc_is_cl = xtrue; then
3142     use_pkgconfig=no
3143   else
3144     use_pkgconfig=yes
3145   fi
3146fi;
3147
3148if test $use_pkgconfig = yes ; then
3149  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3150    if test -n "$ac_tool_prefix"; then
3151  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3152set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3153echo "$as_me:$LINENO: checking for $ac_word" >&5
3154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
3156  echo $ECHO_N "(cached) $ECHO_C" >&6
3157else
3158  if test -n "$PKG_CONFIG"; then
3159  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164  IFS=$as_save_IFS
3165  test -z "$as_dir" && as_dir=.
3166  for ac_exec_ext in '' $ac_executable_extensions; do
3167  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
3169    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170    break 2
3171  fi
3172done
3173done
3174
3175fi
3176fi
3177PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3178if test -n "$PKG_CONFIG"; then
3179  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3180echo "${ECHO_T}$PKG_CONFIG" >&6
3181else
3182  echo "$as_me:$LINENO: result: no" >&5
3183echo "${ECHO_T}no" >&6
3184fi
3185
3186fi
3187if test -z "$ac_cv_prog_PKG_CONFIG"; then
3188  ac_ct_PKG_CONFIG=$PKG_CONFIG
3189  # Extract the first word of "pkg-config", so it can be a program name with args.
3190set dummy pkg-config; ac_word=$2
3191echo "$as_me:$LINENO: checking for $ac_word" >&5
3192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
3194  echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196  if test -n "$ac_ct_PKG_CONFIG"; then
3197  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
3198else
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202  IFS=$as_save_IFS
3203  test -z "$as_dir" && as_dir=.
3204  for ac_exec_ext in '' $ac_executable_extensions; do
3205  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
3207    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208    break 2
3209  fi
3210done
3211done
3212
3213fi
3214fi
3215ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
3216if test -n "$ac_ct_PKG_CONFIG"; then
3217  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
3218echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
3219else
3220  echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
3222fi
3223
3224  PKG_CONFIG=$ac_ct_PKG_CONFIG
3225else
3226  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
3227fi
3228
3229  fi
3230  if test -n "$PKG_CONFIG"; then
3231    _pkg_min_version=0.16.0
3232    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3233echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3234    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3235      echo "$as_me:$LINENO: result: yes" >&5
3236echo "${ECHO_T}yes" >&6
3237    else
3238      echo "$as_me:$LINENO: result: no" >&5
3239echo "${ECHO_T}no" >&6
3240      PKG_CONFIG=""
3241    fi
3242  fi
3243
3244  # check if pkg-config supports the short-errors flag
3245  if test -n "$PKG_CONFIG" && \
3246    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3247    pkg_short_errors=" --short-errors "
3248  else
3249    pkg_short_errors=""
3250  fi
3251fi
3252
3253
3254
3255if test -n "$PKG_CONFIG"; then
3256  COIN_HAS_PKGCONFIG_TRUE=
3257  COIN_HAS_PKGCONFIG_FALSE='#'
3258else
3259  COIN_HAS_PKGCONFIG_TRUE='#'
3260  COIN_HAS_PKGCONFIG_FALSE=
3261fi
3262
3263
3264
3265# assemble pkg-config search path for installed projects
3266COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
3267
3268# 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
3269# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
3270# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
3271if test "x${prefix}" = xNONE ; then
3272  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3273else
3274  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3275fi
3276
3277
3278# Check whether --with-coin-instdir or --without-coin-instdir was given.
3279if test "${with_coin_instdir+set}" = set; then
3280  withval="$with_coin_instdir"
3281  if test -d "$withval"; then : ; else
3282     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
3283echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
3284   { (exit 1); exit 1; }; }
3285   fi
3286   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
3287
3288fi;
3289
3290
3291
3292# assemble additional pkg-config search paths for uninstalled projects
3293if test x$coin_projectdir = xyes ; then
3294  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
3295  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
3296  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
3297  # 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)
3298  COIN_PKG_CONFIG_PATH_UNINSTALLED=
3299  if test -f ../coin_subdirs.txt ; then
3300    for i in `cat ../coin_subdirs.txt` ; do
3301      if test -d ../$i ; then
3302        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3303      fi
3304      if test -d ../$i/pkgconfig ; then
3305        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3306      fi
3307    done
3308  fi
3309
3310  if test -f ../../coin_subdirs.txt ; then
3311    for i in `cat ../../coin_subdirs.txt` ; do
3312      if test -d ../../$i ; then
3313        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3314      fi
3315      if test -d ../../$i/pkgconfig ; then
3316        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
3317      fi
3318    done
3319  fi
3320
3321
3322fi
3323
3324if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
3325  { 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
3326echo "$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;}
3327fi
3328
3329
3330
3331# Initialize automake
3332{
3333
3334
3335
3336# START
3337
3338coin_disable_shared=no
3339# Test if force_shared has been set
3340if test "x" = xforce_shared; then
3341  if test x$enable_shared = xno; then
3342    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3343echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3344   { (exit 1); exit 1; }; }
3345  fi
3346  enable_shared=yes;
3347else
3348  case $build in
3349    *-cygwin* | *-mingw*)
3350      coin_disable_shared=yes
3351      if test x"$enable_shared" = xyes; then
3352        case "$CC" in
3353          clang* )
3354            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3355echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3356            ;;
3357          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3358            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
3359echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
3360            ;;
3361          *gcc*)
3362            if test x"$enable_dependency_linking" = xyes; then
3363              coin_disable_shared=no
3364            else
3365              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
3366echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
3367            fi
3368            ;;
3369          *)
3370            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
3371echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
3372            ;;
3373        esac
3374      fi
3375    ;;
3376    *-aix*)
3377      coin_disable_shared=yes
3378      platform=AIX
3379      if test x"$enable_shared" = xyes; then
3380        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
3381echo "$as_me: WARNING: Shared objects are not supported." >&2;}
3382      fi
3383    ;;
3384  esac
3385fi
3386if test x"$coin_disable_shared" = xyes; then
3387  if test x"$enable_shared" = xyes; then
3388    :
3389  else
3390    # we don't disable shared, because it was not selected anyway
3391    coin_disable_shared=no
3392  fi
3393  enable_shared=no
3394fi
3395# By default, we only want the shared objects to be compiled
3396# Check whether --enable-static or --disable-static was given.
3397if test "${enable_static+set}" = set; then
3398  enableval="$enable_static"
3399  p=${PACKAGE-default}
3400    case $enableval in
3401    yes) enable_static=yes ;;
3402    no) enable_static=no ;;
3403    *)
3404     enable_static=no
3405      # Look at the argument we got.  We use all the common list separators.
3406      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3407      for pkg in $enableval; do
3408        IFS="$lt_save_ifs"
3409        if test "X$pkg" = "X$p"; then
3410          enable_static=yes
3411        fi
3412      done
3413      IFS="$lt_save_ifs"
3414      ;;
3415    esac
3416else
3417  enable_static=no
3418fi;
3419
3420
3421
3422
3423# Initialize automake
3424echo "$as_me:$LINENO: checking for egrep" >&5
3425echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3426if test "${ac_cv_prog_egrep+set}" = set; then
3427  echo $ECHO_N "(cached) $ECHO_C" >&6
3428else
3429  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3430    then ac_cv_prog_egrep='grep -E'
3431    else ac_cv_prog_egrep='egrep'
3432    fi
3433fi
3434echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3435echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3436 EGREP=$ac_cv_prog_egrep
3437
3438
3439echo "$as_me:$LINENO: checking whether ln -s works" >&5
3440echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3441LN_S=$as_ln_s
3442if test "$LN_S" = "ln -s"; then
3443  echo "$as_me:$LINENO: result: yes" >&5
3444echo "${ECHO_T}yes" >&6
3445else
3446  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3447echo "${ECHO_T}no, using $LN_S" >&6
3448fi
3449
3450am__api_version="1.9"
3451# Find a good install program.  We prefer a C program (faster),
3452# so one script is as good as another.  But avoid the broken or
3453# incompatible versions:
3454# SysV /etc/install, /usr/sbin/install
3455# SunOS /usr/etc/install
3456# IRIX /sbin/install
3457# AIX /bin/install
3458# AmigaOS /C/install, which installs bootblocks on floppy discs
3459# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3460# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3461# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3462# OS/2's system install, which has a completely different semantic
3463# ./install, which can be erroneously created by make from ./install.sh.
3464echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3465echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3466if test -z "$INSTALL"; then
3467if test "${ac_cv_path_install+set}" = set; then
3468  echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473  IFS=$as_save_IFS
3474  test -z "$as_dir" && as_dir=.
3475  # Account for people who put trailing slashes in PATH elements.
3476case $as_dir/ in
3477  ./ | .// | /cC/* | \
3478  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3479  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3480  /usr/ucb/* ) ;;
3481  *)
3482    # OSF1 and SCO ODT 3.0 have their own names for install.
3483    # Don't use installbsd from OSF since it installs stuff as root
3484    # by default.
3485    for ac_prog in ginstall scoinst install; do
3486      for ac_exec_ext in '' $ac_executable_extensions; do
3487        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3488          if test $ac_prog = install &&
3489            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3490            # AIX install.  It has an incompatible calling convention.
3491            :
3492          elif test $ac_prog = install &&
3493            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3494            # program-specific install script used by HP pwplus--don't use.
3495            :
3496          else
3497            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3498            break 3
3499          fi
3500        fi
3501      done
3502    done
3503    ;;
3504esac
3505done
3506
3507
3508fi
3509  if test "${ac_cv_path_install+set}" = set; then
3510    INSTALL=$ac_cv_path_install
3511  else
3512    # As a last resort, use the slow shell script.  We don't cache a
3513    # path for INSTALL within a source directory, because that will
3514    # break other packages using the cache if that directory is
3515    # removed, or if the path is relative.
3516    INSTALL=$ac_install_sh
3517  fi
3518fi
3519echo "$as_me:$LINENO: result: $INSTALL" >&5
3520echo "${ECHO_T}$INSTALL" >&6
3521
3522# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3523# It thinks the first close brace ends the variable substitution.
3524test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3525
3526test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3527
3528test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3529
3530echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3531echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3532# Just in case
3533sleep 1
3534echo timestamp > conftest.file
3535# Do `set' in a subshell so we don't clobber the current shell's
3536# arguments.  Must try -L first in case configure is actually a
3537# symlink; some systems play weird games with the mod time of symlinks
3538# (eg FreeBSD returns the mod time of the symlink's containing
3539# directory).
3540if (
3541   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3542   if test "$*" = "X"; then
3543      # -L didn't work.
3544      set X `ls -t $srcdir/configure conftest.file`
3545   fi
3546   rm -f conftest.file
3547   if test "$*" != "X $srcdir/configure conftest.file" \
3548      && test "$*" != "X conftest.file $srcdir/configure"; then
3549
3550      # If neither matched, then we have a broken ls.  This can happen
3551      # if, for instance, CONFIG_SHELL is bash and it inherits a
3552      # broken ls alias from the environment.  This has actually
3553      # happened.  Such a system could not be considered "sane".
3554      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3555alias in your environment" >&5
3556echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3557alias in your environment" >&2;}
3558   { (exit 1); exit 1; }; }
3559   fi
3560
3561   test "$2" = conftest.file
3562   )
3563then
3564   # Ok.
3565   :
3566else
3567   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3568Check your system clock" >&5
3569echo "$as_me: error: newly created file is older than distributed files!
3570Check your system clock" >&2;}
3571   { (exit 1); exit 1; }; }
3572fi
3573echo "$as_me:$LINENO: result: yes" >&5
3574echo "${ECHO_T}yes" >&6
3575test "$program_prefix" != NONE &&
3576  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3577# Use a double $ so make ignores it.
3578test "$program_suffix" != NONE &&
3579  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3580# Double any \ or $.  echo might interpret backslashes.
3581# By default was `s,x,x', remove it if useless.
3582cat <<\_ACEOF >conftest.sed
3583s/[\\$]/&&/g;s/;s,x,x,$//
3584_ACEOF
3585program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3586rm conftest.sed
3587
3588# expand $ac_aux_dir to an absolute path
3589am_aux_dir=`cd $ac_aux_dir && pwd`
3590
3591test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3592# Use eval to expand $SHELL
3593if eval "$MISSING --run true"; then
3594  am_missing_run="$MISSING --run "
3595else
3596  am_missing_run=
3597  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3598echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3599fi
3600
3601if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3602  # We used to keeping the `.' as first argument, in order to
3603  # allow $(mkdir_p) to be used without argument.  As in
3604  #   $(mkdir_p) $(somedir)
3605  # where $(somedir) is conditionally defined.  However this is wrong
3606  # for two reasons:
3607  #  1. if the package is installed by a user who cannot write `.'
3608  #     make install will fail,
3609  #  2. the above comment should most certainly read
3610  #     $(mkdir_p) $(DESTDIR)$(somedir)
3611  #     so it does not work when $(somedir) is undefined and
3612  #     $(DESTDIR) is not.
3613  #  To support the latter case, we have to write
3614  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3615  #  so the `.' trick is pointless.
3616  mkdir_p='mkdir -p --'
3617else
3618  # On NextStep and OpenStep, the `mkdir' command does not
3619  # recognize any option.  It will interpret all options as
3620  # directories to create, and then abort because `.' already
3621  # exists.
3622  for d in ./-p ./--version;
3623  do
3624    test -d $d && rmdir $d
3625  done
3626  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3627  if test -f "$ac_aux_dir/mkinstalldirs"; then
3628    mkdir_p='$(mkinstalldirs)'
3629  else
3630    mkdir_p='$(install_sh) -d'
3631  fi
3632fi
3633
3634for ac_prog in gawk mawk nawk awk
3635do
3636  # Extract the first word of "$ac_prog", so it can be a program name with args.
3637set dummy $ac_prog; ac_word=$2
3638echo "$as_me:$LINENO: checking for $ac_word" >&5
3639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3640if test "${ac_cv_prog_AWK+set}" = set; then
3641  echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643  if test -n "$AWK"; then
3644  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3645else
3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647for as_dir in $PATH
3648do
3649  IFS=$as_save_IFS
3650  test -z "$as_dir" && as_dir=.
3651  for ac_exec_ext in '' $ac_executable_extensions; do
3652  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653    ac_cv_prog_AWK="$ac_prog"
3654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655    break 2
3656  fi
3657done
3658done
3659
3660fi
3661fi
3662AWK=$ac_cv_prog_AWK
3663if test -n "$AWK"; then
3664  echo "$as_me:$LINENO: result: $AWK" >&5
3665echo "${ECHO_T}$AWK" >&6
3666else
3667  echo "$as_me:$LINENO: result: no" >&5
3668echo "${ECHO_T}no" >&6
3669fi
3670
3671  test -n "$AWK" && break
3672done
3673
3674echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3675echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3676set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3677if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3678  echo $ECHO_N "(cached) $ECHO_C" >&6
3679else
3680  cat >conftest.make <<\_ACEOF
3681all:
3682        @echo 'ac_maketemp="$(MAKE)"'
3683_ACEOF
3684# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3685eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3686if test -n "$ac_maketemp"; then
3687  eval ac_cv_prog_make_${ac_make}_set=yes
3688else
3689  eval ac_cv_prog_make_${ac_make}_set=no
3690fi
3691rm -f conftest.make
3692fi
3693if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3694  echo "$as_me:$LINENO: result: yes" >&5
3695echo "${ECHO_T}yes" >&6
3696  SET_MAKE=
3697else
3698  echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
3700  SET_MAKE="MAKE=${MAKE-make}"
3701fi
3702
3703rm -rf .tst 2>/dev/null
3704mkdir .tst 2>/dev/null
3705if test -d .tst; then
3706  am__leading_dot=.
3707else
3708  am__leading_dot=_
3709fi
3710rmdir .tst 2>/dev/null
3711
3712DEPDIR="${am__leading_dot}deps"
3713
3714          ac_config_commands="$ac_config_commands depfiles"
3715
3716
3717am_make=${MAKE-make}
3718cat > confinc << 'END'
3719am__doit:
3720        @echo done
3721.PHONY: am__doit
3722END
3723# If we don't find an include directive, just comment out the code.
3724echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3725echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3726am__include="#"
3727am__quote=
3728_am_result=none
3729# First try GNU make style include.
3730echo "include confinc" > confmf
3731# We grep out `Entering directory' and `Leaving directory'
3732# messages which can occur if `w' ends up in MAKEFLAGS.
3733# In particular we don't look at `^make:' because GNU make might
3734# be invoked under some other name (usually "gmake"), in which
3735# case it prints its new name instead of `make'.
3736if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3737   am__include=include
3738   am__quote=
3739   _am_result=GNU
3740fi
3741# Now try BSD make style include.
3742if test "$am__include" = "#"; then
3743   echo '.include "confinc"' > confmf
3744   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3745      am__include=.include
3746      am__quote="\""
3747      _am_result=BSD
3748   fi
3749fi
3750
3751
3752echo "$as_me:$LINENO: result: $_am_result" >&5
3753echo "${ECHO_T}$_am_result" >&6
3754rm -f confinc confmf
3755
3756# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3757if test "${enable_dependency_tracking+set}" = set; then
3758  enableval="$enable_dependency_tracking"
3759
3760fi;
3761if test "x$enable_dependency_tracking" != xno; then
3762  am_depcomp="$ac_aux_dir/depcomp"
3763  AMDEPBACKSLASH='\'
3764fi
3765
3766
3767if test "x$enable_dependency_tracking" != xno; then
3768  AMDEP_TRUE=
3769  AMDEP_FALSE='#'
3770else
3771  AMDEP_TRUE='#'
3772  AMDEP_FALSE=
3773fi
3774
3775
3776
3777
3778
3779
3780# AC_MSG_NOTICE([Beginning automake initialisation.])
3781# Stuff for automake
3782# test to see if srcdir already configured
3783if test "`cd $srcdir && pwd`" != "`pwd`" &&
3784   test -f $srcdir/config.status; then
3785  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3786echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3787   { (exit 1); exit 1; }; }
3788fi
3789
3790# test whether we have cygpath
3791if test -z "$CYGPATH_W"; then
3792  if (cygpath --version) >/dev/null 2>/dev/null; then
3793    CYGPATH_W='cygpath -w'
3794  else
3795    CYGPATH_W=echo
3796  fi
3797fi
3798
3799
3800# Define the identity of the package.
3801 PACKAGE='thirdpartyglpk'
3802 VERSION='1.10'
3803
3804
3805cat >>confdefs.h <<_ACEOF
3806#define PACKAGE "$PACKAGE"
3807_ACEOF
3808
3809
3810cat >>confdefs.h <<_ACEOF
3811#define VERSION "$VERSION"
3812_ACEOF
3813
3814# Some tools Automake needs.
3815
3816ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3817
3818
3819AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3820
3821
3822AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3823
3824
3825AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3826
3827
3828MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3829
3830install_sh=${install_sh-"$am_aux_dir/install-sh"}
3831
3832# Installed binaries are usually stripped using `strip' when the user
3833# run `make install-strip'.  However `strip' might not be the right
3834# tool to use in cross-compilation environments, therefore Automake
3835# will honor the `STRIP' environment variable to overrule this program.
3836if test "$cross_compiling" != no; then
3837  if test -n "$ac_tool_prefix"; then
3838  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3839set dummy ${ac_tool_prefix}strip; ac_word=$2
3840echo "$as_me:$LINENO: checking for $ac_word" >&5
3841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842if test "${ac_cv_prog_STRIP+set}" = set; then
3843  echo $ECHO_N "(cached) $ECHO_C" >&6
3844else
3845  if test -n "$STRIP"; then
3846  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3847else
3848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849for as_dir in $PATH
3850do
3851  IFS=$as_save_IFS
3852  test -z "$as_dir" && as_dir=.
3853  for ac_exec_ext in '' $ac_executable_extensions; do
3854  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3856    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857    break 2
3858  fi
3859done
3860done
3861
3862fi
3863fi
3864STRIP=$ac_cv_prog_STRIP
3865if test -n "$STRIP"; then
3866  echo "$as_me:$LINENO: result: $STRIP" >&5
3867echo "${ECHO_T}$STRIP" >&6
3868else
3869  echo "$as_me:$LINENO: result: no" >&5
3870echo "${ECHO_T}no" >&6
3871fi
3872
3873fi
3874if test -z "$ac_cv_prog_STRIP"; then
3875  ac_ct_STRIP=$STRIP
3876  # Extract the first word of "strip", so it can be a program name with args.
3877set dummy strip; ac_word=$2
3878echo "$as_me:$LINENO: checking for $ac_word" >&5
3879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3880if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3881  echo $ECHO_N "(cached) $ECHO_C" >&6
3882else
3883  if test -n "$ac_ct_STRIP"; then
3884  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3885else
3886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889  IFS=$as_save_IFS
3890  test -z "$as_dir" && as_dir=.
3891  for ac_exec_ext in '' $ac_executable_extensions; do
3892  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893    ac_cv_prog_ac_ct_STRIP="strip"
3894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895    break 2
3896  fi
3897done
3898done
3899
3900  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3901fi
3902fi
3903ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3904if test -n "$ac_ct_STRIP"; then
3905  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3906echo "${ECHO_T}$ac_ct_STRIP" >&6
3907else
3908  echo "$as_me:$LINENO: result: no" >&5
3909echo "${ECHO_T}no" >&6
3910fi
3911
3912  STRIP=$ac_ct_STRIP
3913else
3914  STRIP="$ac_cv_prog_STRIP"
3915fi
3916
3917fi
3918INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3919
3920# We need awk for the "check" target.  The system "awk" is bad on
3921# some platforms.
3922# Always define AMTAR for backward compatibility.
3923
3924AMTAR=${AMTAR-"${am_missing_run}tar"}
3925
3926am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3927
3928
3929
3930
3931depcc="$CC"   am_compiler_list=
3932
3933echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3934echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3935if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3936  echo $ECHO_N "(cached) $ECHO_C" >&6
3937else
3938  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3939  # We make a subdir and do the tests there.  Otherwise we can end up
3940  # making bogus files that we don't know about and never remove.  For
3941  # instance it was reported that on HP-UX the gcc test will end up
3942  # making a dummy file named `D' -- because `-MD' means `put the output
3943  # in D'.
3944  mkdir conftest.dir
3945  # Copy depcomp to subdir because otherwise we won't find it if we're
3946  # using a relative directory.
3947  cp "$am_depcomp" conftest.dir
3948  cd conftest.dir
3949  # We will build objects and dependencies in a subdirectory because
3950  # it helps to detect inapplicable dependency modes.  For instance
3951  # both Tru64's cc and ICC support -MD to output dependencies as a
3952  # side effect of compilation, but ICC will put the dependencies in
3953  # the current directory while Tru64 will put them in the object
3954  # directory.
3955  mkdir sub
3956
3957  am_cv_CC_dependencies_compiler_type=none
3958  if test "$am_compiler_list" = ""; then
3959     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3960  fi
3961  for depmode in $am_compiler_list; do
3962    # Setup a source with many dependencies, because some compilers
3963    # like to wrap large dependency lists on column 80 (with \), and
3964    # we should not choose a depcomp mode which is confused by this.
3965    #
3966    # We need to recreate these files for each test, as the compiler may
3967    # overwrite some of them when testing with obscure command lines.
3968    # This happens at least with the AIX C compiler.
3969    : > sub/conftest.c
3970    for i in 1 2 3 4 5 6; do
3971      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3972      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3973      # Solaris 8's {/usr,}/bin/sh.
3974      touch sub/conftst$i.h
3975    done
3976    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3977
3978    case $depmode in
3979    nosideeffect)
3980      # after this tag, mechanisms are not by side-effect, so they'll
3981      # only be used when explicitly requested
3982      if test "x$enable_dependency_tracking" = xyes; then
3983        continue
3984      else
3985        break
3986      fi
3987      ;;
3988    none) break ;;
3989    esac
3990    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3991    # mode.  It turns out that the SunPro C++ compiler does not properly
3992    # handle `-M -o', and we need to detect this.
3993    if depmode=$depmode \
3994       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3995       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3996       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3997         >/dev/null 2>conftest.err &&
3998       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3999       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4000       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4001      # icc doesn't choke on unknown options, it will just issue warnings
4002      # or remarks (even with -Werror).  So we grep stderr for any message
4003      # that says an option was ignored or not supported.
4004      # When given -MP, icc 7.0 and 7.1 complain thusly:
4005      #   icc: Command line warning: ignoring option '-M'; no argument required
4006      # The diagnosis changed in icc 8.0:
4007      #   icc: Command line remark: option '-MP' not supported
4008      if (grep 'ignoring option' conftest.err ||
4009          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4010        am_cv_CC_dependencies_compiler_type=$depmode
4011        break
4012      fi
4013    fi
4014  done
4015
4016  cd ..
4017  rm -rf conftest.dir
4018else
4019  am_cv_CC_dependencies_compiler_type=none
4020fi
4021
4022fi
4023echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4024echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4025CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4026
4027
4028
4029if
4030  test "x$enable_dependency_tracking" != xno \
4031  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4032  am__fastdepCC_TRUE=
4033  am__fastdepCC_FALSE='#'
4034else
4035  am__fastdepCC_TRUE='#'
4036  am__fastdepCC_FALSE=
4037fi
4038
4039
4040
4041echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4042echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4043    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4044if test "${enable_maintainer_mode+set}" = set; then
4045  enableval="$enable_maintainer_mode"
4046  USE_MAINTAINER_MODE=$enableval
4047else
4048  USE_MAINTAINER_MODE=no
4049fi;
4050  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4051echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4052
4053
4054if test $USE_MAINTAINER_MODE = yes; then
4055  MAINTAINER_MODE_TRUE=
4056  MAINTAINER_MODE_FALSE='#'
4057else
4058  MAINTAINER_MODE_TRUE='#'
4059  MAINTAINER_MODE_FALSE=
4060fi
4061
4062  MAINT=$MAINTAINER_MODE_TRUE
4063
4064
4065
4066coin_have_externals=no
4067if test "$enable_maintainer_mode" = yes; then
4068
4069  # If maintainer mode is chosen, we make sure that the correct versions
4070  # of the tools are used, and that we know where libtool.m4 is (to
4071  # recreate acinclude.m4)
4072
4073
4074  LIBTOOLM4=
4075  # Normally, $HOME
4076  AUTOTOOLS_DFLT=$HOME
4077
4078  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4079echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4080if test "${ac_cv_use_correct_autotools+set}" = set; then
4081  echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083  ac_cv_use_correct_autotools=check
4084fi
4085echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4086echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4087
4088  if test $ac_cv_use_correct_autotools = check; then
4089    ac_cv_use_correct_autotools=yes
4090    # Check if we have autoconf
4091    # Extract the first word of "autoconf", so it can be a program name with args.
4092set dummy autoconf; ac_word=$2
4093echo "$as_me:$LINENO: checking for $ac_word" >&5
4094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095if test "${ac_cv_prog_have_autoconf+set}" = set; then
4096  echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098  if test -n "$have_autoconf"; then
4099  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4100else
4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106  for ac_exec_ext in '' $ac_executable_extensions; do
4107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108    ac_cv_prog_have_autoconf="yes"
4109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110    break 2
4111  fi
4112done
4113done
4114
4115  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4116fi
4117fi
4118have_autoconf=$ac_cv_prog_have_autoconf
4119if test -n "$have_autoconf"; then
4120  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4121echo "${ECHO_T}$have_autoconf" >&6
4122else
4123  echo "$as_me:$LINENO: result: no" >&5
4124echo "${ECHO_T}no" >&6
4125fi
4126
4127    if test $have_autoconf = no; then
4128      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4129echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4130   { (exit 1); exit 1; }; }
4131    fi
4132
4133    # Check whether autoconf is the correct version
4134    correct_version='2.59'
4135    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4136    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4137echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4138    autoconf --version > confauto.out 2>&1
4139    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4140      echo "$as_me:$LINENO: result: yes" >&5
4141echo "${ECHO_T}yes" >&6
4142    else
4143      rm -f confauto.out
4144      echo "$as_me:$LINENO: result: no" >&5
4145echo "${ECHO_T}no" >&6
4146      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4147echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4148   { (exit 1); exit 1; }; }
4149    fi
4150    rm -f confauto.out
4151
4152    # Check if the executable autoconf is picked up from the correct location
4153    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4154echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4155    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4156    autoconf_dir=`cd $autoconf_dir; pwd`
4157    if test x$AUTOTOOLS_DIR = x; then
4158      want_dir=$AUTOTOOLS_DFLT/bin
4159    else
4160      want_dir=$AUTOTOOLS_DIR/bin
4161    fi
4162    if test $autoconf_dir = `cd $want_dir; pwd`; then
4163      echo "$as_me:$LINENO: result: yes" >&5
4164echo "${ECHO_T}yes" >&6
4165    else
4166      rm -f confauto.out
4167      echo "$as_me:$LINENO: result: no" >&5
4168echo "${ECHO_T}no" >&6
4169      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4170echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4171   { (exit 1); exit 1; }; }
4172    fi
4173
4174    # Check if we have automake
4175    # Extract the first word of "automake", so it can be a program name with args.
4176set dummy automake; ac_word=$2
4177echo "$as_me:$LINENO: checking for $ac_word" >&5
4178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179if test "${ac_cv_prog_have_automake+set}" = set; then
4180  echo $ECHO_N "(cached) $ECHO_C" >&6
4181else
4182  if test -n "$have_automake"; then
4183  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4184else
4185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH
4187do
4188  IFS=$as_save_IFS
4189  test -z "$as_dir" && as_dir=.
4190  for ac_exec_ext in '' $ac_executable_extensions; do
4191  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192    ac_cv_prog_have_automake="yes"
4193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194    break 2
4195  fi
4196done
4197done
4198
4199  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4200fi
4201fi
4202have_automake=$ac_cv_prog_have_automake
4203if test -n "$have_automake"; then
4204  echo "$as_me:$LINENO: result: $have_automake" >&5
4205echo "${ECHO_T}$have_automake" >&6
4206else
4207  echo "$as_me:$LINENO: result: no" >&5
4208echo "${ECHO_T}no" >&6
4209fi
4210
4211    if test $have_automake = no; then
4212      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4213echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4214   { (exit 1); exit 1; }; }
4215    fi
4216
4217    # Check whether automake is the correct version
4218    correct_version='1.9.6'
4219    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4220    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4221echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4222    automake --version > confauto.out 2>&1
4223    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4224      echo "$as_me:$LINENO: result: yes" >&5
4225echo "${ECHO_T}yes" >&6
4226    else
4227      rm -f confauto.out
4228      echo "$as_me:$LINENO: result: no" >&5
4229echo "${ECHO_T}no" >&6
4230      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4231echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4232   { (exit 1); exit 1; }; }
4233    fi
4234    rm -f confauto.out
4235
4236    # Check if the executable automake is picked up from the correct location
4237    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4238echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4239    automake_dir=`which automake | sed -e 's=/automake=='`
4240    automake_dir=`cd $automake_dir; pwd`
4241    if test x$AUTOTOOLS_DIR = x; then
4242      want_dir=$AUTOTOOLS_DFLT/bin
4243    else
4244      want_dir=$AUTOTOOLS_DIR/bin
4245    fi
4246    if test $automake_dir = `cd $want_dir; pwd`; then
4247      echo "$as_me:$LINENO: result: yes" >&5
4248echo "${ECHO_T}yes" >&6
4249    else
4250      rm -f confauto.out
4251      echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4254echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4255   { (exit 1); exit 1; }; }
4256    fi
4257
4258    # Check if this is the correct version of libtool (with escaped dots)
4259    if test x$AUTOTOOLS_DIR = x; then
4260      want_dir=$AUTOTOOLS_DFLT/share
4261    else
4262      want_dir=$AUTOTOOLS_DIR/share
4263    fi
4264    correct_version='1.5.22'
4265    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4266    if test -r $want_dir/libtool/ltmain.sh; then
4267  have_ltmain=yes
4268  :
4269else
4270  have_ltmain=no
4271  :
4272fi
4273
4274    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4275echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4276    if test $have_ltmain = yes; then
4277    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4278        echo "$as_me:$LINENO: result: yes" >&5
4279echo "${ECHO_T}yes" >&6
4280      else
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 libtool." >&5
4284echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4285   { (exit 1); exit 1; }; }
4286      fi
4287    else
4288      echo "$as_me:$LINENO: result: no" >&5
4289echo "${ECHO_T}no" >&6
4290      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4291echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4292   { (exit 1); exit 1; }; }
4293    fi
4294  fi
4295
4296  # Check if we can find the libtool file
4297  if test x$AUTOTOOLS_DIR = x; then
4298    want_dir=$AUTOTOOLS_DFLT/share
4299  else
4300    want_dir=$AUTOTOOLS_DIR/share
4301  fi
4302  if test -r $want_dir/aclocal/libtool.m4; then
4303  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4304  :
4305else
4306  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4307echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4308   { (exit 1); exit 1; }; }
4309  :
4310fi
4311
4312
4313  # Check if we have an Dependencies file
4314  if test -r $srcdir/Dependencies; then
4315    coin_have_externals=yes
4316  fi
4317  # Check if subversion is installed and understands https
4318  # Extract the first word of "svn", so it can be a program name with args.
4319set dummy svn; ac_word=$2
4320echo "$as_me:$LINENO: checking for $ac_word" >&5
4321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4322if test "${ac_cv_prog_have_svn+set}" = set; then
4323  echo $ECHO_N "(cached) $ECHO_C" >&6
4324else
4325  if test -n "$have_svn"; then
4326  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4327else
4328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH
4330do
4331  IFS=$as_save_IFS
4332  test -z "$as_dir" && as_dir=.
4333  for ac_exec_ext in '' $ac_executable_extensions; do
4334  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4335    ac_cv_prog_have_svn="yes"
4336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4337    break 2
4338  fi
4339done
4340done
4341
4342  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4343fi
4344fi
4345have_svn=$ac_cv_prog_have_svn
4346if test -n "$have_svn"; then
4347  echo "$as_me:$LINENO: result: $have_svn" >&5
4348echo "${ECHO_T}$have_svn" >&6
4349else
4350  echo "$as_me:$LINENO: result: no" >&5
4351echo "${ECHO_T}no" >&6
4352fi
4353
4354  if test x$have_svn = xyes; then
4355    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4356echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4357if test "${ac_cv_svn_understands_https+set}" = set; then
4358  echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360  svn --version > confauto.out 2>&1
4361                    if $EGREP https confauto.out >/dev/null 2>&1; then
4362                      ac_cv_svn_understands_https=yes
4363                    else
4364                      ac_cv_svn_understands_https=no
4365                      have_svn=no
4366                      ac_cv_prog_have_svn=no
4367                    fi
4368                    rm -f confauto.out
4369fi
4370echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4371echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4372  fi
4373
4374  # Find the location of the BuildTools directory
4375  BUILDTOOLSDIR=
4376  if test -r $srcdir/BuildTools/coin.m4; then
4377    BUILDTOOLSDIR=$srcdir/BuildTools
4378  else
4379    if test -r $srcdir/../BuildTools/coin.m4; then
4380      BUILDTOOLSDIR=$srcdir/../BuildTools
4381    else
4382      if test -r $srcdir/../../BuildTools/coin.m4; then
4383        BUILDTOOLSDIR=$srcdir/../../BuildTools
4384      else
4385        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4386echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4387   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4388      fi
4389    fi
4390  fi
4391
4392
4393  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4394  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4395    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4396  fi
4397
4398  # The following variable is set to the name of the directory where
4399  # the autotool scripts are located
4400
4401  AUX_DIR=$ac_aux_dir
4402fi
4403
4404# helpful variable for the base directory of this package
4405abs_source_dir=`cd $srcdir; pwd`
4406
4407
4408# Stuff for example Makefiles
4409if test x$prefix = xNONE; then
4410  full_prefix=$ac_default_prefix
4411else
4412  full_prefix=$prefix
4413fi
4414full_prefix=`cd $full_prefix ; pwd`
4415
4416abs_lib_dir=$full_prefix/lib
4417
4418abs_include_dir=$full_prefix/include
4419
4420abs_bin_dir=$full_prefix/bin
4421
4422
4423
4424if test $coin_have_externals = yes && test x$have_svn = xyes; then
4425  HAVE_EXTERNALS_TRUE=
4426  HAVE_EXTERNALS_FALSE='#'
4427else
4428  HAVE_EXTERNALS_TRUE='#'
4429  HAVE_EXTERNALS_FALSE=
4430fi
4431
4432
4433# AC_MSG_NOTICE([End automake initialisation.])
4434
4435
4436
4437LIBTOOL=
4438if test -f ../libtool; then
4439  coin_config_dir=..
4440  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4441fi
4442if test "x$LIBTOOL" = x; then
4443  if test -f ../../libtool; then
4444    coin_config_dir=../..
4445    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4446  fi
4447fi
4448
4449if test "x$LIBTOOL" = x; then
4450# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4451  # Stuff for libtool
4452  # Check whether --enable-shared or --disable-shared was given.
4453if test "${enable_shared+set}" = set; then
4454  enableval="$enable_shared"
4455  p=${PACKAGE-default}
4456    case $enableval in
4457    yes) enable_shared=yes ;;
4458    no) enable_shared=no ;;
4459    *)
4460      enable_shared=no
4461      # Look at the argument we got.  We use all the common list separators.
4462      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4463      for pkg in $enableval; do
4464        IFS="$lt_save_ifs"
4465        if test "X$pkg" = "X$p"; then
4466          enable_shared=yes
4467        fi
4468      done
4469      IFS="$lt_save_ifs"
4470      ;;
4471    esac
4472else
4473  enable_shared=yes
4474fi;
4475
4476# Check whether --enable-fast-install or --disable-fast-install was given.
4477if test "${enable_fast_install+set}" = set; then
4478  enableval="$enable_fast_install"
4479  p=${PACKAGE-default}
4480    case $enableval in
4481    yes) enable_fast_install=yes ;;
4482    no) enable_fast_install=no ;;
4483    *)
4484      enable_fast_install=no
4485      # Look at the argument we got.  We use all the common list separators.
4486      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4487      for pkg in $enableval; do
4488        IFS="$lt_save_ifs"
4489        if test "X$pkg" = "X$p"; then
4490          enable_fast_install=yes
4491        fi
4492      done
4493      IFS="$lt_save_ifs"
4494      ;;
4495    esac
4496else
4497  enable_fast_install=yes
4498fi;
4499
4500echo "$as_me:$LINENO: checking host system type" >&5
4501echo $ECHO_N "checking host system type... $ECHO_C" >&6
4502if test "${ac_cv_host+set}" = set; then
4503  echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505  ac_cv_host_alias=$host_alias
4506test -z "$ac_cv_host_alias" &&
4507  ac_cv_host_alias=$ac_cv_build_alias
4508ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4509  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4510echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4511   { (exit 1); exit 1; }; }
4512
4513fi
4514echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4515echo "${ECHO_T}$ac_cv_host" >&6
4516host=$ac_cv_host
4517host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4518host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4519host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4520
4521
4522echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4523echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4524if test "${lt_cv_path_SED+set}" = set; then
4525  echo $ECHO_N "(cached) $ECHO_C" >&6
4526else
4527  # Loop through the user's path and test for sed and gsed.
4528# Then use that list of sed's as ones to test for truncation.
4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
4532  IFS=$as_save_IFS
4533  test -z "$as_dir" && as_dir=.
4534  for lt_ac_prog in sed gsed; do
4535    for ac_exec_ext in '' $ac_executable_extensions; do
4536      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4537        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4538      fi
4539    done
4540  done
4541done
4542lt_ac_max=0
4543lt_ac_count=0
4544# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4545# along with /bin/sed that truncates output.
4546for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4547  test ! -f $lt_ac_sed && continue
4548  cat /dev/null > conftest.in
4549  lt_ac_count=0
4550  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4551  # Check for GNU sed and select it if it is found.
4552  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4553    lt_cv_path_SED=$lt_ac_sed
4554    break
4555  fi
4556  while true; do
4557    cat conftest.in conftest.in >conftest.tmp
4558    mv conftest.tmp conftest.in
4559    cp conftest.in conftest.nl
4560    echo >>conftest.nl
4561    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4562    cmp -s conftest.out conftest.nl || break
4563    # 10000 chars as input seems more than enough
4564    test $lt_ac_count -gt 10 && break
4565    lt_ac_count=`expr $lt_ac_count + 1`
4566    if test $lt_ac_count -gt $lt_ac_max; then
4567      lt_ac_max=$lt_ac_count
4568      lt_cv_path_SED=$lt_ac_sed
4569    fi
4570  done
4571done
4572
4573fi
4574
4575SED=$lt_cv_path_SED
4576echo "$as_me:$LINENO: result: $SED" >&5
4577echo "${ECHO_T}$SED" >&6
4578
4579
4580# Check whether --with-gnu-ld or --without-gnu-ld was given.
4581if test "${with_gnu_ld+set}" = set; then
4582  withval="$with_gnu_ld"
4583  test "$withval" = no || with_gnu_ld=yes
4584else
4585  with_gnu_ld=no
4586fi;
4587ac_prog=ld
4588if test "$GCC" = yes; then
4589  # Check if gcc -print-prog-name=ld gives a path.
4590  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4591echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4592  case $host in
4593  *-*-mingw*)
4594    # gcc leaves a trailing carriage return which upsets mingw
4595    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4596  *)
4597    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4598  esac
4599  case $ac_prog in
4600    # Accept absolute paths.
4601    [\\/]* | ?:[\\/]*)
4602      re_direlt='/[^/][^/]*/\.\./'
4603      # Canonicalize the pathname of ld
4604      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4605      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4606        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4607      done
4608      test -z "$LD" && LD="$ac_prog"
4609      ;;
4610  "")
4611    # If it fails, then pretend we aren't using GCC.
4612    ac_prog=ld
4613    ;;
4614  *)
4615    # If it is relative, then search for the first ld in PATH.
4616    with_gnu_ld=unknown
4617    ;;
4618  esac
4619elif test "$with_gnu_ld" = yes; then
4620  echo "$as_me:$LINENO: checking for GNU ld" >&5
4621echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4622else
4623  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4624echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4625fi
4626if test "${lt_cv_path_LD+set}" = set; then
4627  echo $ECHO_N "(cached) $ECHO_C" >&6
4628else
4629  if test -z "$LD"; then
4630  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4631  for ac_dir in $PATH; do
4632    IFS="$lt_save_ifs"
4633    test -z "$ac_dir" && ac_dir=.
4634    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4635      lt_cv_path_LD="$ac_dir/$ac_prog"
4636      # Check to see if the program is GNU ld.  I'd rather use --version,
4637      # but apparently some variants of GNU ld only accept -v.
4638      # Break only if it was the GNU/non-GNU ld that we prefer.
4639      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4640      *GNU* | *'with BFD'*)
4641        test "$with_gnu_ld" != no && break
4642        ;;
4643      *)
4644        test "$with_gnu_ld" != yes && break
4645        ;;
4646      esac
4647    fi
4648  done
4649  IFS="$lt_save_ifs"
4650else
4651  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4652fi
4653fi
4654
4655LD="$lt_cv_path_LD"
4656if test -n "$LD"; then
4657  echo "$as_me:$LINENO: result: $LD" >&5
4658echo "${ECHO_T}$LD" >&6
4659else
4660  echo "$as_me:$LINENO: result: no" >&5
4661echo "${ECHO_T}no" >&6
4662fi
4663test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4664echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4665   { (exit 1); exit 1; }; }
4666echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4667echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4668if test "${lt_cv_prog_gnu_ld+set}" = set; then
4669  echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4672case `$LD -v 2>&1 </dev/null` in
4673*GNU* | *'with BFD'*)
4674  lt_cv_prog_gnu_ld=yes
4675  ;;
4676*)
4677  lt_cv_prog_gnu_ld=no
4678  ;;
4679esac
4680fi
4681echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4682echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4683with_gnu_ld=$lt_cv_prog_gnu_ld
4684
4685
4686echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4687echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4688if test "${lt_cv_ld_reload_flag+set}" = set; then
4689  echo $ECHO_N "(cached) $ECHO_C" >&6
4690else
4691  lt_cv_ld_reload_flag='-r'
4692fi
4693echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4694echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4695reload_flag=$lt_cv_ld_reload_flag
4696case $reload_flag in
4697"" | " "*) ;;
4698*) reload_flag=" $reload_flag" ;;
4699esac
4700reload_cmds='$LD$reload_flag -o $output$reload_objs'
4701case $host_os in
4702  darwin*)
4703    if test "$GCC" = yes; then
4704      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4705    else
4706      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4707    fi
4708    ;;
4709esac
4710
4711echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4712echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4713if test "${lt_cv_path_NM+set}" = set; then
4714  echo $ECHO_N "(cached) $ECHO_C" >&6
4715else
4716  if test -n "$NM"; then
4717  # Let the user override the test.
4718  lt_cv_path_NM="$NM"
4719else
4720  lt_nm_to_check="${ac_tool_prefix}nm"
4721  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4722    lt_nm_to_check="$lt_nm_to_check nm"
4723  fi
4724  for lt_tmp_nm in $lt_nm_to_check; do
4725    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4726    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4727      IFS="$lt_save_ifs"
4728      test -z "$ac_dir" && ac_dir=.
4729      tmp_nm="$ac_dir/$lt_tmp_nm"
4730      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4731        # Check to see if the nm accepts a BSD-compat flag.
4732        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4733        #   nm: unknown option "B" ignored
4734        # Tru64's nm complains that /dev/null is an invalid object file
4735        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4736        */dev/null* | *'Invalid file or object type'*)
4737          lt_cv_path_NM="$tmp_nm -B"
4738          break
4739          ;;
4740        *)
4741          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4742          */dev/null*)
4743            lt_cv_path_NM="$tmp_nm -p"
4744            break
4745            ;;
4746          *)
4747            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4748            continue # so that we can try to find one that supports BSD flags
4749            ;;
4750          esac
4751          ;;
4752        esac
4753      fi
4754    done
4755    IFS="$lt_save_ifs"
4756  done
4757  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4758fi
4759fi
4760echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4761echo "${ECHO_T}$lt_cv_path_NM" >&6
4762NM="$lt_cv_path_NM"
4763
4764echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4765echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4766if test "${lt_cv_deplibs_check_method+set}" = set; then
4767  echo $ECHO_N "(cached) $ECHO_C" >&6
4768else
4769  lt_cv_file_magic_cmd='$MAGIC_CMD'
4770lt_cv_file_magic_test_file=
4771lt_cv_deplibs_check_method='unknown'
4772# Need to set the preceding variable on all platforms that support
4773# interlibrary dependencies.
4774# 'none' -- dependencies not supported.
4775# `unknown' -- same as none, but documents that we really don't know.
4776# 'pass_all' -- all dependencies passed with no checks.
4777# 'test_compile' -- check by making test program.
4778# 'file_magic [[regex]]' -- check by looking for files in library path
4779# which responds to the $file_magic_cmd with a given extended regex.
4780# If you have `file' or equivalent on your system and you're not sure
4781# whether `pass_all' will *always* work, you probably want this one.
4782
4783case $host_os in
4784aix4* | aix5*)
4785  lt_cv_deplibs_check_method=pass_all
4786  ;;
4787
4788beos*)
4789  lt_cv_deplibs_check_method=pass_all
4790  ;;
4791
4792bsdi[45]*)
4793  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4794  lt_cv_file_magic_cmd='/usr/bin/file -L'
4795  lt_cv_file_magic_test_file=/shlib/libc.so
4796  ;;
4797
4798cygwin*)
4799  # func_win32_libid is a shell function defined in ltmain.sh
4800  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4801  lt_cv_file_magic_cmd='func_win32_libid'
4802  ;;
4803
4804mingw* | pw32*)
4805  # Base MSYS/MinGW do not provide the 'file' command needed by
4806  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4807  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4808  lt_cv_file_magic_cmd='$OBJDUMP -f'
4809  ;;
4810
4811darwin* | rhapsody*)
4812  lt_cv_deplibs_check_method=pass_all
4813  ;;
4814
4815freebsd* | kfreebsd*-gnu | dragonfly*)
4816  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4817    case $host_cpu in
4818    i*86 )
4819      # Not sure whether the presence of OpenBSD here was a mistake.
4820      # Let's accept both of them until this is cleared up.
4821      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4822      lt_cv_file_magic_cmd=/usr/bin/file
4823      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4824      ;;
4825    esac
4826  else
4827    lt_cv_deplibs_check_method=pass_all
4828  fi
4829  ;;
4830
4831gnu*)
4832  lt_cv_deplibs_check_method=pass_all
4833  ;;
4834
4835hpux10.20* | hpux11*)
4836  lt_cv_file_magic_cmd=/usr/bin/file
4837  case $host_cpu in
4838  ia64*)
4839    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4840    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4841    ;;
4842  hppa*64*)
4843    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]'
4844    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4845    ;;
4846  *)
4847    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4848    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4849    ;;
4850  esac
4851  ;;
4852
4853interix3*)
4854  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4855  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4856  ;;
4857
4858irix5* | irix6* | nonstopux*)
4859  case $LD in
4860  *-32|*"-32 ") libmagic=32-bit;;
4861  *-n32|*"-n32 ") libmagic=N32;;
4862  *-64|*"-64 ") libmagic=64-bit;;
4863  *) libmagic=never-match;;
4864  esac
4865  lt_cv_deplibs_check_method=pass_all
4866  ;;
4867
4868# This must be Linux ELF.
4869linux*)
4870  lt_cv_deplibs_check_method=pass_all
4871  ;;
4872
4873netbsd*)
4874  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4875    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4876  else
4877    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4878  fi
4879  ;;
4880
4881newos6*)
4882  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4883  lt_cv_file_magic_cmd=/usr/bin/file
4884  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4885  ;;
4886
4887nto-qnx*)
4888  lt_cv_deplibs_check_method=unknown
4889  ;;
4890
4891openbsd*)
4892  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4893    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4894  else
4895    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4896  fi
4897  ;;
4898
4899osf3* | osf4* | osf5*)
4900  lt_cv_deplibs_check_method=pass_all
4901  ;;
4902
4903solaris*)
4904  lt_cv_deplibs_check_method=pass_all
4905  ;;
4906
4907sysv4 | sysv4.3*)
4908  case $host_vendor in
4909  motorola)
4910    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]'
4911    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4912    ;;
4913  ncr)
4914    lt_cv_deplibs_check_method=pass_all
4915    ;;
4916  sequent)
4917    lt_cv_file_magic_cmd='/bin/file'
4918    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4919    ;;
4920  sni)
4921    lt_cv_file_magic_cmd='/bin/file'
4922    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4923    lt_cv_file_magic_test_file=/lib/libc.so
4924    ;;
4925  siemens)
4926    lt_cv_deplibs_check_method=pass_all
4927    ;;
4928  pc)
4929    lt_cv_deplibs_check_method=pass_all
4930    ;;
4931  esac
4932  ;;
4933
4934sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4935  lt_cv_deplibs_check_method=pass_all
4936  ;;
4937esac
4938
4939fi
4940echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4941echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4942file_magic_cmd=$lt_cv_file_magic_cmd
4943deplibs_check_method=$lt_cv_deplibs_check_method
4944test -z "$deplibs_check_method" && deplibs_check_method=unknown
4945
4946
4947
4948
4949# If no C compiler was specified, use CC.
4950LTCC=${LTCC-"$CC"}
4951
4952# If no C compiler flags were specified, use CFLAGS.
4953LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4954
4955# Allow CC to be a program name with arguments.
4956compiler=$CC
4957
4958# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4959if test "${enable_libtool_lock+set}" = set; then
4960  enableval="$enable_libtool_lock"
4961
4962fi;
4963test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4964
4965# Some flags need to be propagated to the compiler or linker for good
4966# libtool support.
4967case $host in
4968ia64-*-hpux*)
4969  # Find out which ABI we are using.
4970  echo 'int i;' > conftest.$ac_ext
4971  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972  (eval $ac_compile) 2>&5
4973  ac_status=$?
4974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975  (exit $ac_status); }; then
4976    case `/usr/bin/file conftest.$ac_objext` in
4977    *ELF-32*)
4978      HPUX_IA64_MODE="32"
4979      ;;
4980    *ELF-64*)
4981      HPUX_IA64_MODE="64"
4982      ;;
4983    esac
4984  fi
4985  rm -rf conftest*
4986  ;;
4987*-*-irix6*)
4988  # Find out which ABI we are using.
4989  echo '#line 4989 "configure"' > conftest.$ac_ext
4990  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991  (eval $ac_compile) 2>&5
4992  ac_status=$?
4993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994  (exit $ac_status); }; then
4995   if test "$lt_cv_prog_gnu_ld" = yes; then
4996    case `/usr/bin/file conftest.$ac_objext` in
4997    *32-bit*)
4998      LD="${LD-ld} -melf32bsmip"
4999      ;;
5000    *N32*)
5001      LD="${LD-ld} -melf32bmipn32"
5002      ;;
5003    *64-bit*)
5004      LD="${LD-ld} -melf64bmip"
5005      ;;
5006    esac
5007   else
5008    case `/usr/bin/file conftest.$ac_objext` in
5009    *32-bit*)
5010      LD="${LD-ld} -32"
5011      ;;
5012    *N32*)
5013      LD="${LD-ld} -n32"
5014      ;;
5015    *64-bit*)
5016      LD="${LD-ld} -64"
5017      ;;
5018    esac
5019   fi
5020  fi
5021  rm -rf conftest*
5022  ;;
5023
5024x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5025  # Find out which ABI we are using.
5026  echo 'int i;' > conftest.$ac_ext
5027  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028  (eval $ac_compile) 2>&5
5029  ac_status=$?
5030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031  (exit $ac_status); }; then
5032    case `/usr/bin/file conftest.o` in
5033    *32-bit*)
5034      case $host in
5035        x86_64-*linux*)
5036          LD="${LD-ld} -m elf_i386"
5037          ;;
5038        ppc64-*linux*|powerpc64-*linux*)
5039          LD="${LD-ld} -m elf32ppclinux"
5040          ;;
5041        s390x-*linux*)
5042          LD="${LD-ld} -m elf_s390"
5043          ;;
5044        sparc64-*linux*)
5045          LD="${LD-ld} -m elf32_sparc"
5046          ;;
5047      esac
5048      ;;
5049    *64-bit*)
5050      case $host in
5051        x86_64-*linux*)
5052          LD="${LD-ld} -m elf_x86_64"
5053          ;;
5054        ppc*-*linux*|powerpc*-*linux*)
5055          LD="${LD-ld} -m elf64ppc"
5056          ;;
5057        s390*-*linux*)
5058          LD="${LD-ld} -m elf64_s390"
5059          ;;
5060        sparc*-*linux*)
5061          LD="${LD-ld} -m elf64_sparc"
5062          ;;
5063      esac
5064      ;;
5065    esac
5066  fi
5067  rm -rf conftest*
5068  ;;
5069
5070*-*-sco3.2v5*)
5071  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5072  SAVE_CFLAGS="$CFLAGS"
5073  CFLAGS="$CFLAGS -belf"
5074  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5075echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5076if test "${lt_cv_cc_needs_belf+set}" = set; then
5077  echo $ECHO_N "(cached) $ECHO_C" >&6
5078else
5079  ac_ext=c
5080ac_cpp='$CPP $CPPFLAGS'
5081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085     cat >conftest.$ac_ext <<_ACEOF
5086/* confdefs.h.  */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h.  */
5091
5092int
5093main ()
5094{
5095
5096  ;
5097  return 0;
5098}
5099_ACEOF
5100rm -f conftest.$ac_objext conftest$ac_exeext
5101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5102  (eval $ac_link) 2>conftest.er1
5103  ac_status=$?
5104  grep -v '^ *+' conftest.er1 >conftest.err
5105  rm -f conftest.er1
5106  cat conftest.err >&5
5107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108  (exit $ac_status); } &&
5109         { ac_try='test -z "$ac_c_werror_flag"
5110                         || test ! -s conftest.err'
5111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112  (eval $ac_try) 2>&5
5113  ac_status=$?
5114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115  (exit $ac_status); }; } &&
5116         { ac_try='test -s conftest$ac_exeext'
5117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118  (eval $ac_try) 2>&5
5119  ac_status=$?
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); }; }; then
5122  lt_cv_cc_needs_belf=yes
5123else
5124  echo "$as_me: failed program was:" >&5
5125sed 's/^/| /' conftest.$ac_ext >&5
5126
5127lt_cv_cc_needs_belf=no
5128fi
5129rm -f conftest.err conftest.$ac_objext \
5130      conftest$ac_exeext conftest.$ac_ext
5131     ac_ext=c
5132ac_cpp='$CPP $CPPFLAGS'
5133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
5137fi
5138echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5139echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5140  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5141    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5142    CFLAGS="$SAVE_CFLAGS"
5143  fi
5144  ;;
5145sparc*-*solaris*)
5146  # Find out which ABI we are using.
5147  echo 'int i;' > conftest.$ac_ext
5148  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149  (eval $ac_compile) 2>&5
5150  ac_status=$?
5151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); }; then
5153    case `/usr/bin/file conftest.o` in
5154    *64-bit*)
5155      case $lt_cv_prog_gnu_ld in
5156      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5157      *)    LD="${LD-ld} -64" ;;
5158      esac
5159      ;;
5160    esac
5161  fi
5162  rm -rf conftest*
5163  ;;
5164
5165
5166esac
5167
5168need_locks="$enable_libtool_lock"
5169
5170
5171ac_ext=c
5172ac_cpp='$CPP $CPPFLAGS'
5173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175ac_compiler_gnu=$ac_cv_c_compiler_gnu
5176echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5177echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5178# On Suns, sometimes $CPP names a directory.
5179if test -n "$CPP" && test -d "$CPP"; then
5180  CPP=
5181fi
5182if test -z "$CPP"; then
5183  if test "${ac_cv_prog_CPP+set}" = set; then
5184  echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186      # Double quotes because CPP needs to be expanded
5187    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5188    do
5189      ac_preproc_ok=false
5190for ac_c_preproc_warn_flag in '' yes
5191do
5192  # Use a header file that comes with gcc, so configuring glibc
5193  # with a fresh cross-compiler works.
5194  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195  # <limits.h> exists even on freestanding compilers.
5196  # On the NeXT, cc -E runs the code through the compiler's parser,
5197  # not just through cpp. "Syntax error" is here to catch this case.
5198  cat >conftest.$ac_ext <<_ACEOF
5199/* confdefs.h.  */
5200_ACEOF
5201cat confdefs.h >>conftest.$ac_ext
5202cat >>conftest.$ac_ext <<_ACEOF
5203/* end confdefs.h.  */
5204#ifdef __STDC__
5205# include <limits.h>
5206#else
5207# include <assert.h>
5208#endif
5209                     Syntax error
5210_ACEOF
5211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5212  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5213  ac_status=$?
5214  grep -v '^ *+' conftest.er1 >conftest.err
5215  rm -f conftest.er1
5216  cat conftest.err >&5
5217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218  (exit $ac_status); } >/dev/null; then
5219  if test -s conftest.err; then
5220    ac_cpp_err=$ac_c_preproc_warn_flag
5221    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5222  else
5223    ac_cpp_err=
5224  fi
5225else
5226  ac_cpp_err=yes
5227fi
5228if test -z "$ac_cpp_err"; then
5229  :
5230else
5231  echo "$as_me: failed program was:" >&5
5232sed 's/^/| /' conftest.$ac_ext >&5
5233
5234  # Broken: fails on valid input.
5235continue
5236fi
5237rm -f conftest.err conftest.$ac_ext
5238
5239  # OK, works on sane cases.  Now check whether non-existent headers
5240  # can be detected and how.
5241  cat >conftest.$ac_ext <<_ACEOF
5242/* confdefs.h.  */
5243_ACEOF
5244cat confdefs.h >>conftest.$ac_ext
5245cat >>conftest.$ac_ext <<_ACEOF
5246/* end confdefs.h.  */
5247#include <ac_nonexistent.h>
5248_ACEOF
5249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5250  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5251  ac_status=$?
5252  grep -v '^ *+' conftest.er1 >conftest.err
5253  rm -f conftest.er1
5254  cat conftest.err >&5
5255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256  (exit $ac_status); } >/dev/null; then
5257  if test -s conftest.err; then
5258    ac_cpp_err=$ac_c_preproc_warn_flag
5259    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5260  else
5261    ac_cpp_err=
5262  fi
5263else
5264  ac_cpp_err=yes
5265fi
5266if test -z "$ac_cpp_err"; then
5267  # Broken: success on invalid input.
5268continue
5269else
5270  echo "$as_me: failed program was:" >&5
5271sed 's/^/| /' conftest.$ac_ext >&5
5272
5273  # Passes both tests.
5274ac_preproc_ok=:
5275break
5276fi
5277rm -f conftest.err conftest.$ac_ext
5278
5279done
5280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5281rm -f conftest.err conftest.$ac_ext
5282if $ac_preproc_ok; then
5283  break
5284fi
5285
5286    done
5287    ac_cv_prog_CPP=$CPP
5288
5289fi
5290  CPP=$ac_cv_prog_CPP
5291else
5292  ac_cv_prog_CPP=$CPP
5293fi
5294echo "$as_me:$LINENO: result: $CPP" >&5
5295echo "${ECHO_T}$CPP" >&6
5296ac_preproc_ok=false
5297for ac_c_preproc_warn_flag in '' yes
5298do
5299  # Use a header file that comes with gcc, so configuring glibc
5300  # with a fresh cross-compiler works.
5301  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5302  # <limits.h> exists even on freestanding compilers.
5303  # On the NeXT, cc -E runs the code through the compiler's parser,
5304  # not just through cpp. "Syntax error" is here to catch this case.
5305  cat >conftest.$ac_ext <<_ACEOF
5306/* confdefs.h.  */
5307_ACEOF
5308cat confdefs.h >>conftest.$ac_ext
5309cat >>conftest.$ac_ext <<_ACEOF
5310/* end confdefs.h.  */
5311#ifdef __STDC__
5312# include <limits.h>
5313#else
5314# include <assert.h>
5315#endif
5316                     Syntax error
5317_ACEOF
5318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5319  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5320  ac_status=$?
5321  grep -v '^ *+' conftest.er1 >conftest.err
5322  rm -f conftest.er1
5323  cat conftest.err >&5
5324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325  (exit $ac_status); } >/dev/null; then
5326  if test -s conftest.err; then
5327    ac_cpp_err=$ac_c_preproc_warn_flag
5328    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5329  else
5330    ac_cpp_err=
5331  fi
5332else
5333  ac_cpp_err=yes
5334fi
5335if test -z "$ac_cpp_err"; then
5336  :
5337else
5338  echo "$as_me: failed program was:" >&5
5339sed 's/^/| /' conftest.$ac_ext >&5
5340
5341  # Broken: fails on valid input.
5342continue
5343fi
5344rm -f conftest.err conftest.$ac_ext
5345
5346  # OK, works on sane cases.  Now check whether non-existent headers
5347  # can be detected and how.
5348  cat >conftest.$ac_ext <<_ACEOF
5349/* confdefs.h.  */
5350_ACEOF
5351cat confdefs.h >>conftest.$ac_ext
5352cat >>conftest.$ac_ext <<_ACEOF
5353/* end confdefs.h.  */
5354#include <ac_nonexistent.h>
5355_ACEOF
5356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5358  ac_status=$?
5359  grep -v '^ *+' conftest.er1 >conftest.err
5360  rm -f conftest.er1
5361  cat conftest.err >&5
5362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363  (exit $ac_status); } >/dev/null; then
5364  if test -s conftest.err; then
5365    ac_cpp_err=$ac_c_preproc_warn_flag
5366    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5367  else
5368    ac_cpp_err=
5369  fi
5370else
5371  ac_cpp_err=yes
5372fi
5373if test -z "$ac_cpp_err"; then
5374  # Broken: success on invalid input.
5375continue
5376else
5377  echo "$as_me: failed program was:" >&5
5378sed 's/^/| /' conftest.$ac_ext >&5
5379
5380  # Passes both tests.
5381ac_preproc_ok=:
5382break
5383fi
5384rm -f conftest.err conftest.$ac_ext
5385
5386done
5387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5388rm -f conftest.err conftest.$ac_ext
5389if $ac_preproc_ok; then
5390  :
5391else
5392  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5393See \`config.log' for more details." >&5
5394echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5395See \`config.log' for more details." >&2;}
5396   { (exit 1); exit 1; }; }
5397fi
5398
5399ac_ext=c
5400ac_cpp='$CPP $CPPFLAGS'
5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404
5405
5406echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5407echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5408if test "${ac_cv_header_stdc+set}" = set; then
5409  echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
5411  cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h.  */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h.  */
5417#include <stdlib.h>
5418#include <stdarg.h>
5419#include <string.h>
5420#include <float.h>
5421
5422int
5423main ()
5424{
5425
5426  ;
5427  return 0;
5428}
5429_ACEOF
5430rm -f conftest.$ac_objext
5431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432  (eval $ac_compile) 2>conftest.er1
5433  ac_status=$?
5434  grep -v '^ *+' conftest.er1 >conftest.err
5435  rm -f conftest.er1
5436  cat conftest.err >&5
5437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438  (exit $ac_status); } &&
5439         { ac_try='test -z "$ac_c_werror_flag"
5440                         || test ! -s conftest.err'
5441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442  (eval $ac_try) 2>&5
5443  ac_status=$?
5444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445  (exit $ac_status); }; } &&
5446         { ac_try='test -s conftest.$ac_objext'
5447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448  (eval $ac_try) 2>&5
5449  ac_status=$?
5450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); }; }; then
5452  ac_cv_header_stdc=yes
5453else
5454  echo "$as_me: failed program was:" >&5
5455sed 's/^/| /' conftest.$ac_ext >&5
5456
5457ac_cv_header_stdc=no
5458fi
5459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5460
5461if test $ac_cv_header_stdc = yes; then
5462  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5463  cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h.  */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h.  */
5469#include <string.h>
5470
5471_ACEOF
5472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5473  $EGREP "memchr" >/dev/null 2>&1; then
5474  :
5475else
5476  ac_cv_header_stdc=no
5477fi
5478rm -f conftest*
5479
5480fi
5481
5482if test $ac_cv_header_stdc = yes; then
5483  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5484  cat >conftest.$ac_ext <<_ACEOF
5485/* confdefs.h.  */
5486_ACEOF
5487cat confdefs.h >>conftest.$ac_ext
5488cat >>conftest.$ac_ext <<_ACEOF
5489/* end confdefs.h.  */
5490#include <stdlib.h>
5491
5492_ACEOF
5493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5494  $EGREP "free" >/dev/null 2>&1; then
5495  :
5496else
5497  ac_cv_header_stdc=no
5498fi
5499rm -f conftest*
5500
5501fi
5502
5503if test $ac_cv_header_stdc = yes; then
5504  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5505  if test "$cross_compiling" = yes; then
5506  :
5507else
5508  cat >conftest.$ac_ext <<_ACEOF
5509/* confdefs.h.  */
5510_ACEOF
5511cat confdefs.h >>conftest.$ac_ext
5512cat >>conftest.$ac_ext <<_ACEOF
5513/* end confdefs.h.  */
5514#include <ctype.h>
5515#if ((' ' & 0x0FF) == 0x020)
5516# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5517# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5518#else
5519# define ISLOWER(c) \
5520                   (('a' <= (c) && (c) <= 'i') \
5521                     || ('j' <= (c) && (c) <= 'r') \
5522                     || ('s' <= (c) && (c) <= 'z'))
5523# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5524#endif
5525
5526#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5527int
5528main ()
5529{
5530  int i;
5531  for (i = 0; i < 256; i++)
5532    if (XOR (islower (i), ISLOWER (i))
5533        || toupper (i) != TOUPPER (i))
5534      exit(2);
5535  exit (0);
5536}
5537_ACEOF
5538rm -f conftest$ac_exeext
5539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5540  (eval $ac_link) 2>&5
5541  ac_status=$?
5542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545  (eval $ac_try) 2>&5
5546  ac_status=$?
5547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548  (exit $ac_status); }; }; then
5549  :
5550else
5551  echo "$as_me: program exited with status $ac_status" >&5
5552echo "$as_me: failed program was:" >&5
5553sed 's/^/| /' conftest.$ac_ext >&5
5554
5555( exit $ac_status )
5556ac_cv_header_stdc=no
5557fi
5558rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5559fi
5560fi
5561fi
5562echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5563echo "${ECHO_T}$ac_cv_header_stdc" >&6
5564if test $ac_cv_header_stdc = yes; then
5565
5566cat >>confdefs.h <<\_ACEOF
5567#define STDC_HEADERS 1
5568_ACEOF
5569
5570fi
5571
5572# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5583                  inttypes.h stdint.h unistd.h
5584do
5585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5586echo "$as_me:$LINENO: checking for $ac_header" >&5
5587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5588if eval "test \"\${$as_ac_Header+set}\" = set"; then
5589  echo $ECHO_N "(cached) $ECHO_C" >&6
5590else
5591  cat >conftest.$ac_ext <<_ACEOF
5592/* confdefs.h.  */
5593_ACEOF
5594cat confdefs.h >>conftest.$ac_ext
5595cat >>conftest.$ac_ext <<_ACEOF
5596/* end confdefs.h.  */
5597$ac_includes_default
5598
5599#include <$ac_header>
5600_ACEOF
5601rm -f conftest.$ac_objext
5602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603  (eval $ac_compile) 2>conftest.er1
5604  ac_status=$?
5605  grep -v '^ *+' conftest.er1 >conftest.err
5606  rm -f conftest.er1
5607  cat conftest.err >&5
5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609  (exit $ac_status); } &&
5610         { ac_try='test -z "$ac_c_werror_flag"
5611                         || test ! -s conftest.err'
5612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613  (eval $ac_try) 2>&5
5614  ac_status=$?
5615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616  (exit $ac_status); }; } &&
5617         { ac_try='test -s conftest.$ac_objext'
5618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619  (eval $ac_try) 2>&5
5620  ac_status=$?
5621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622  (exit $ac_status); }; }; then
5623  eval "$as_ac_Header=yes"
5624else
5625  echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628eval "$as_ac_Header=no"
5629fi
5630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5631fi
5632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5634if test `eval echo '${'$as_ac_Header'}'` = yes; then
5635  cat >>confdefs.h <<_ACEOF
5636#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5637_ACEOF
5638
5639fi
5640
5641done
5642
5643
5644
5645for ac_header in dlfcn.h
5646do
5647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5648if eval "test \"\${$as_ac_Header+set}\" = set"; then
5649  echo "$as_me:$LINENO: checking for $ac_header" >&5
5650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5651if eval "test \"\${$as_ac_Header+set}\" = set"; then
5652  echo $ECHO_N "(cached) $ECHO_C" >&6
5653fi
5654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5656else
5657  # Is the header compilable?
5658echo "$as_me:$LINENO: checking $ac_header usability" >&5
5659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5660cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h.  */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h.  */
5666$ac_includes_default
5667#include <$ac_header>
5668_ACEOF
5669rm -f conftest.$ac_objext
5670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671  (eval $ac_compile) 2>conftest.er1
5672  ac_status=$?
5673  grep -v '^ *+' conftest.er1 >conftest.err
5674  rm -f conftest.er1
5675  cat conftest.err >&5
5676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677  (exit $ac_status); } &&
5678         { ac_try='test -z "$ac_c_werror_flag"
5679                         || test ! -s conftest.err'
5680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681  (eval $ac_try) 2>&5
5682  ac_status=$?
5683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684  (exit $ac_status); }; } &&
5685         { ac_try='test -s conftest.$ac_objext'
5686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687  (eval $ac_try) 2>&5
5688  ac_status=$?
5689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690  (exit $ac_status); }; }; then
5691  ac_header_compiler=yes
5692else
5693  echo "$as_me: failed program was:" >&5
5694sed 's/^/| /' conftest.$ac_ext >&5
5695
5696ac_header_compiler=no
5697fi
5698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5699echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5700echo "${ECHO_T}$ac_header_compiler" >&6
5701
5702# Is the header present?
5703echo "$as_me:$LINENO: checking $ac_header presence" >&5
5704echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5705cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h.  */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h.  */
5711#include <$ac_header>
5712_ACEOF
5713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5714  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5715  ac_status=$?
5716  grep -v '^ *+' conftest.er1 >conftest.err
5717  rm -f conftest.er1
5718  cat conftest.err >&5
5719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720  (exit $ac_status); } >/dev/null; then
5721  if test -s conftest.err; then
5722    ac_cpp_err=$ac_c_preproc_warn_flag
5723    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5724  else
5725    ac_cpp_err=
5726  fi
5727else
5728  ac_cpp_err=yes
5729fi
5730if test -z "$ac_cpp_err"; then
5731  ac_header_preproc=yes
5732else
5733  echo "$as_me: failed program was:" >&5
5734sed 's/^/| /' conftest.$ac_ext >&5
5735
5736  ac_header_preproc=no
5737fi
5738rm -f conftest.err conftest.$ac_ext
5739echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5740echo "${ECHO_T}$ac_header_preproc" >&6
5741
5742# So?  What about this header?
5743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5744  yes:no: )
5745    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5746echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5747    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5748echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5749    ac_header_preproc=yes
5750    ;;
5751  no:yes:* )
5752    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5753echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5754    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5755echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5756    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5757echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5758    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5759echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5760    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5761echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5762    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5763echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5764    (
5765      cat <<\_ASBOX
5766## --------------------------------------------------------------- ##
5767## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5768## --------------------------------------------------------------- ##
5769_ASBOX
5770    ) |
5771      sed "s/^/$as_me: WARNING:     /" >&2
5772    ;;
5773esac
5774echo "$as_me:$LINENO: checking for $ac_header" >&5
5775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5776if eval "test \"\${$as_ac_Header+set}\" = set"; then
5777  echo $ECHO_N "(cached) $ECHO_C" >&6
5778else
5779  eval "$as_ac_Header=\$ac_header_preproc"
5780fi
5781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5783
5784fi
5785if test `eval echo '${'$as_ac_Header'}'` = yes; then
5786  cat >>confdefs.h <<_ACEOF
5787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5788_ACEOF
5789
5790fi
5791
5792done
5793
5794ac_ext=cc
5795ac_cpp='$CXXCPP $CPPFLAGS'
5796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5799if test -n "$ac_tool_prefix"; then
5800  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5801  do
5802    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5803set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5804echo "$as_me:$LINENO: checking for $ac_word" >&5
5805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806if test "${ac_cv_prog_CXX+set}" = set; then
5807  echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809  if test -n "$CXX"; then
5810  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815  IFS=$as_save_IFS
5816  test -z "$as_dir" && as_dir=.
5817  for ac_exec_ext in '' $ac_executable_extensions; do
5818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821    break 2
5822  fi
5823done
5824done
5825
5826fi
5827fi
5828CXX=$ac_cv_prog_CXX
5829if test -n "$CXX"; then
5830  echo "$as_me:$LINENO: result: $CXX" >&5
5831echo "${ECHO_T}$CXX" >&6
5832else
5833  echo "$as_me:$LINENO: result: no" >&5
5834echo "${ECHO_T}no" >&6
5835fi
5836
5837    test -n "$CXX" && break
5838  done
5839fi
5840if test -z "$CXX"; then
5841  ac_ct_CXX=$CXX
5842  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5843do
5844  # Extract the first word of "$ac_prog", so it can be a program name with args.
5845set dummy $ac_prog; ac_word=$2
5846echo "$as_me:$LINENO: checking for $ac_word" >&5
5847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5849  echo $ECHO_N "(cached) $ECHO_C" >&6
5850else
5851  if test -n "$ac_ct_CXX"; then
5852  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5853else
5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857  IFS=$as_save_IFS
5858  test -z "$as_dir" && as_dir=.
5859  for ac_exec_ext in '' $ac_executable_extensions; do
5860  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861    ac_cv_prog_ac_ct_CXX="$ac_prog"
5862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863    break 2
5864  fi
5865done
5866done
5867
5868fi
5869fi
5870ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5871if test -n "$ac_ct_CXX"; then
5872  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5873echo "${ECHO_T}$ac_ct_CXX" >&6
5874else
5875  echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
5877fi
5878
5879  test -n "$ac_ct_CXX" && break
5880done
5881test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5882
5883  CXX=$ac_ct_CXX
5884fi
5885
5886
5887# Provide some information about the compiler.
5888echo "$as_me:$LINENO:" \
5889     "checking for C++ compiler version" >&5
5890ac_compiler=`set X $ac_compile; echo $2`
5891{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5892  (eval $ac_compiler --version </dev/null >&5) 2>&5
5893  ac_status=$?
5894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895  (exit $ac_status); }
5896{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5897  (eval $ac_compiler -v </dev/null >&5) 2>&5
5898  ac_status=$?
5899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900  (exit $ac_status); }
5901{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5902  (eval $ac_compiler -V </dev/null >&5) 2>&5
5903  ac_status=$?
5904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); }
5906
5907echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5908echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5909if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5910  echo $ECHO_N "(cached) $ECHO_C" >&6
5911else
5912  cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h.  */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h.  */
5918
5919int
5920main ()
5921{
5922#ifndef __GNUC__
5923       choke me
5924#endif
5925
5926  ;
5927  return 0;
5928}
5929_ACEOF
5930rm -f conftest.$ac_objext
5931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5932  (eval $ac_compile) 2>conftest.er1
5933  ac_status=$?
5934  grep -v '^ *+' conftest.er1 >conftest.err
5935  rm -f conftest.er1
5936  cat conftest.err >&5
5937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938  (exit $ac_status); } &&
5939         { ac_try='test -z "$ac_cxx_werror_flag"
5940                         || test ! -s conftest.err'
5941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942  (eval $ac_try) 2>&5
5943  ac_status=$?
5944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945  (exit $ac_status); }; } &&
5946         { ac_try='test -s conftest.$ac_objext'
5947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948  (eval $ac_try) 2>&5
5949  ac_status=$?
5950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951  (exit $ac_status); }; }; then
5952  ac_compiler_gnu=yes
5953else
5954  echo "$as_me: failed program was:" >&5
5955sed 's/^/| /' conftest.$ac_ext >&5
5956
5957ac_compiler_gnu=no
5958fi
5959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5960ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5961
5962fi
5963echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5964echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5965GXX=`test $ac_compiler_gnu = yes && echo yes`
5966ac_test_CXXFLAGS=${CXXFLAGS+set}
5967ac_save_CXXFLAGS=$CXXFLAGS
5968CXXFLAGS="-g"
5969echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5970echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5971if test "${ac_cv_prog_cxx_g+set}" = set; then
5972  echo $ECHO_N "(cached) $ECHO_C" >&6
5973else
5974  cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h.  */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h.  */
5980
5981int
5982main ()
5983{
5984
5985  ;
5986  return 0;
5987}
5988_ACEOF
5989rm -f conftest.$ac_objext
5990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991  (eval $ac_compile) 2>conftest.er1
5992  ac_status=$?
5993  grep -v '^ *+' conftest.er1 >conftest.err
5994  rm -f conftest.er1
5995  cat conftest.err >&5
5996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997  (exit $ac_status); } &&
5998         { ac_try='test -z "$ac_cxx_werror_flag"
5999                         || test ! -s conftest.err'
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); }; } &&
6005         { ac_try='test -s conftest.$ac_objext'
6006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007  (eval $ac_try) 2>&5
6008  ac_status=$?
6009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010  (exit $ac_status); }; }; then
6011  ac_cv_prog_cxx_g=yes
6012else
6013  echo "$as_me: failed program was:" >&5
6014sed 's/^/| /' conftest.$ac_ext >&5
6015
6016ac_cv_prog_cxx_g=no
6017fi
6018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6019fi
6020echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6021echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6022if test "$ac_test_CXXFLAGS" = set; then
6023  CXXFLAGS=$ac_save_CXXFLAGS
6024elif test $ac_cv_prog_cxx_g = yes; then
6025  if test "$GXX" = yes; then
6026    CXXFLAGS="-g -O2"
6027  else
6028    CXXFLAGS="-g"
6029  fi
6030else
6031  if test "$GXX" = yes; then
6032    CXXFLAGS="-O2"
6033  else
6034    CXXFLAGS=
6035  fi
6036fi
6037for ac_declaration in \
6038   '' \
6039   'extern "C" void std::exit (int) throw (); using std::exit;' \
6040   'extern "C" void std::exit (int); using std::exit;' \
6041   'extern "C" void exit (int) throw ();' \
6042   'extern "C" void exit (int);' \
6043   'void exit (int);'
6044do
6045  cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h.  */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h.  */
6051$ac_declaration
6052#include <stdlib.h>
6053int
6054main ()
6055{
6056exit (42);
6057  ;
6058  return 0;
6059}
6060_ACEOF
6061rm -f conftest.$ac_objext
6062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6063  (eval $ac_compile) 2>conftest.er1
6064  ac_status=$?
6065  grep -v '^ *+' conftest.er1 >conftest.err
6066  rm -f conftest.er1
6067  cat conftest.err >&5
6068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069  (exit $ac_status); } &&
6070         { ac_try='test -z "$ac_cxx_werror_flag"
6071                         || test ! -s conftest.err'
6072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073  (eval $ac_try) 2>&5
6074  ac_status=$?
6075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076  (exit $ac_status); }; } &&
6077         { ac_try='test -s conftest.$ac_objext'
6078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6079  (eval $ac_try) 2>&5
6080  ac_status=$?
6081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082  (exit $ac_status); }; }; then
6083  :
6084else
6085  echo "$as_me: failed program was:" >&5
6086sed 's/^/| /' conftest.$ac_ext >&5
6087
6088continue
6089fi
6090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6091  cat >conftest.$ac_ext <<_ACEOF
6092/* confdefs.h.  */
6093_ACEOF
6094cat confdefs.h >>conftest.$ac_ext
6095cat >>conftest.$ac_ext <<_ACEOF
6096/* end confdefs.h.  */
6097$ac_declaration
6098int
6099main ()
6100{
6101exit (42);
6102  ;
6103  return 0;
6104}
6105_ACEOF
6106rm -f conftest.$ac_objext
6107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108  (eval $ac_compile) 2>conftest.er1
6109  ac_status=$?
6110  grep -v '^ *+' conftest.er1 >conftest.err
6111  rm -f conftest.er1
6112  cat conftest.err >&5
6113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114  (exit $ac_status); } &&
6115         { ac_try='test -z "$ac_cxx_werror_flag"
6116                         || test ! -s conftest.err'
6117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118  (eval $ac_try) 2>&5
6119  ac_status=$?
6120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121  (exit $ac_status); }; } &&
6122         { ac_try='test -s conftest.$ac_objext'
6123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124  (eval $ac_try) 2>&5
6125  ac_status=$?
6126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127  (exit $ac_status); }; }; then
6128  break
6129else
6130  echo "$as_me: failed program was:" >&5
6131sed 's/^/| /' conftest.$ac_ext >&5
6132
6133fi
6134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6135done
6136rm -f conftest*
6137if test -n "$ac_declaration"; then
6138  echo '#ifdef __cplusplus' >>confdefs.h
6139  echo $ac_declaration      >>confdefs.h
6140  echo '#endif'             >>confdefs.h
6141fi
6142
6143ac_ext=cc
6144ac_cpp='$CXXCPP $CPPFLAGS'
6145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6148
6149depcc="$CXX"  am_compiler_list=
6150
6151echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6152echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6153if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6154  echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6157  # We make a subdir and do the tests there.  Otherwise we can end up
6158  # making bogus files that we don't know about and never remove.  For
6159  # instance it was reported that on HP-UX the gcc test will end up
6160  # making a dummy file named `D' -- because `-MD' means `put the output
6161  # in D'.
6162  mkdir conftest.dir
6163  # Copy depcomp to subdir because otherwise we won't find it if we're
6164  # using a relative directory.
6165  cp "$am_depcomp" conftest.dir
6166  cd conftest.dir
6167  # We will build objects and dependencies in a subdirectory because
6168  # it helps to detect inapplicable dependency modes.  For instance
6169  # both Tru64's cc and ICC support -MD to output dependencies as a
6170  # side effect of compilation, but ICC will put the dependencies in
6171  # the current directory while Tru64 will put them in the object
6172  # directory.
6173  mkdir sub
6174
6175  am_cv_CXX_dependencies_compiler_type=none
6176  if test "$am_compiler_list" = ""; then
6177     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6178  fi
6179  for depmode in $am_compiler_list; do
6180    # Setup a source with many dependencies, because some compilers
6181    # like to wrap large dependency lists on column 80 (with \), and
6182    # we should not choose a depcomp mode which is confused by this.
6183    #
6184    # We need to recreate these files for each test, as the compiler may
6185    # overwrite some of them when testing with obscure command lines.
6186    # This happens at least with the AIX C compiler.
6187    : > sub/conftest.c
6188    for i in 1 2 3 4 5 6; do
6189      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6190      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6191      # Solaris 8's {/usr,}/bin/sh.
6192      touch sub/conftst$i.h
6193    done
6194    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6195
6196    case $depmode in
6197    nosideeffect)
6198      # after this tag, mechanisms are not by side-effect, so they'll
6199      # only be used when explicitly requested
6200      if test "x$enable_dependency_tracking" = xyes; then
6201        continue
6202      else
6203        break
6204      fi
6205      ;;
6206    none) break ;;
6207    esac
6208    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6209    # mode.  It turns out that the SunPro C++ compiler does not properly
6210    # handle `-M -o', and we need to detect this.
6211    if depmode=$depmode \
6212       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6213       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6214       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6215         >/dev/null 2>conftest.err &&
6216       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6217       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6218       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6219      # icc doesn't choke on unknown options, it will just issue warnings
6220      # or remarks (even with -Werror).  So we grep stderr for any message
6221      # that says an option was ignored or not supported.
6222      # When given -MP, icc 7.0 and 7.1 complain thusly:
6223      #   icc: Command line warning: ignoring option '-M'; no argument required
6224      # The diagnosis changed in icc 8.0:
6225      #   icc: Command line remark: option '-MP' not supported
6226      if (grep 'ignoring option' conftest.err ||
6227          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6228        am_cv_CXX_dependencies_compiler_type=$depmode
6229        break
6230      fi
6231    fi
6232  done
6233
6234  cd ..
6235  rm -rf conftest.dir
6236else
6237  am_cv_CXX_dependencies_compiler_type=none
6238fi
6239
6240fi
6241echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6242echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6243CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6244
6245
6246
6247if
6248  test "x$enable_dependency_tracking" != xno \
6249  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6250  am__fastdepCXX_TRUE=
6251  am__fastdepCXX_FALSE='#'
6252else
6253  am__fastdepCXX_TRUE='#'
6254  am__fastdepCXX_FALSE=
6255fi
6256
6257
6258
6259
6260if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6261    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6262    (test "X$CXX" != "Xg++"))) ; then
6263  ac_ext=cc
6264ac_cpp='$CXXCPP $CPPFLAGS'
6265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6268echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6269echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6270if test -z "$CXXCPP"; then
6271  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6272  echo $ECHO_N "(cached) $ECHO_C" >&6
6273else
6274      # Double quotes because CXXCPP needs to be expanded
6275    for CXXCPP in "$CXX -E" "/lib/cpp"
6276    do
6277      ac_preproc_ok=false
6278for ac_cxx_preproc_warn_flag in '' yes
6279do
6280  # Use a header file that comes with gcc, so configuring glibc
6281  # with a fresh cross-compiler works.
6282  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6283  # <limits.h> exists even on freestanding compilers.
6284  # On the NeXT, cc -E runs the code through the compiler's parser,
6285  # not just through cpp. "Syntax error" is here to catch this case.
6286  cat >conftest.$ac_ext <<_ACEOF
6287/* confdefs.h.  */
6288_ACEOF
6289cat confdefs.h >>conftest.$ac_ext
6290cat >>conftest.$ac_ext <<_ACEOF
6291/* end confdefs.h.  */
6292#ifdef __STDC__
6293# include <limits.h>
6294#else
6295# include <assert.h>
6296#endif
6297                     Syntax error
6298_ACEOF
6299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6300  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6301  ac_status=$?
6302  grep -v '^ *+' conftest.er1 >conftest.err
6303  rm -f conftest.er1
6304  cat conftest.err >&5
6305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306  (exit $ac_status); } >/dev/null; then
6307  if test -s conftest.err; then
6308    ac_cpp_err=$ac_cxx_preproc_warn_flag
6309    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6310  else
6311    ac_cpp_err=
6312  fi
6313else
6314  ac_cpp_err=yes
6315fi
6316if test -z "$ac_cpp_err"; then
6317  :
6318else
6319  echo "$as_me: failed program was:" >&5
6320sed 's/^/| /' conftest.$ac_ext >&5
6321
6322  # Broken: fails on valid input.
6323continue
6324fi
6325rm -f conftest.err conftest.$ac_ext
6326
6327  # OK, works on sane cases.  Now check whether non-existent headers
6328  # can be detected and how.
6329  cat >conftest.$ac_ext <<_ACEOF
6330/* confdefs.h.  */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h.  */
6335#include <ac_nonexistent.h>
6336_ACEOF
6337if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6338  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6339  ac_status=$?
6340  grep -v '^ *+' conftest.er1 >conftest.err
6341  rm -f conftest.er1
6342  cat conftest.err >&5
6343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344  (exit $ac_status); } >/dev/null; then
6345  if test -s conftest.err; then
6346    ac_cpp_err=$ac_cxx_preproc_warn_flag
6347    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6348  else
6349    ac_cpp_err=
6350  fi
6351else
6352  ac_cpp_err=yes
6353fi
6354if test -z "$ac_cpp_err"; then
6355  # Broken: success on invalid input.
6356continue
6357else
6358  echo "$as_me: failed program was:" >&5
6359sed 's/^/| /' conftest.$ac_ext >&5
6360
6361  # Passes both tests.
6362ac_preproc_ok=:
6363break
6364fi
6365rm -f conftest.err conftest.$ac_ext
6366
6367done
6368# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6369rm -f conftest.err conftest.$ac_ext
6370if $ac_preproc_ok; then
6371  break
6372fi
6373
6374    done
6375    ac_cv_prog_CXXCPP=$CXXCPP
6376
6377fi
6378  CXXCPP=$ac_cv_prog_CXXCPP
6379else
6380  ac_cv_prog_CXXCPP=$CXXCPP
6381fi
6382echo "$as_me:$LINENO: result: $CXXCPP" >&5
6383echo "${ECHO_T}$CXXCPP" >&6
6384ac_preproc_ok=false
6385for ac_cxx_preproc_warn_flag in '' yes
6386do
6387  # Use a header file that comes with gcc, so configuring glibc
6388  # with a fresh cross-compiler works.
6389  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6390  # <limits.h> exists even on freestanding compilers.
6391  # On the NeXT, cc -E runs the code through the compiler's parser,
6392  # not just through cpp. "Syntax error" is here to catch this case.
6393  cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h.  */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h.  */
6399#ifdef __STDC__
6400# include <limits.h>
6401#else
6402# include <assert.h>
6403#endif
6404                     Syntax error
6405_ACEOF
6406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6407  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6408  ac_status=$?
6409  grep -v '^ *+' conftest.er1 >conftest.err
6410  rm -f conftest.er1
6411  cat conftest.err >&5
6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); } >/dev/null; then
6414  if test -s conftest.err; then
6415    ac_cpp_err=$ac_cxx_preproc_warn_flag
6416    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6417  else
6418    ac_cpp_err=
6419  fi
6420else
6421  ac_cpp_err=yes
6422fi
6423if test -z "$ac_cpp_err"; then
6424  :
6425else
6426  echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429  # Broken: fails on valid input.
6430continue
6431fi
6432rm -f conftest.err conftest.$ac_ext
6433
6434  # OK, works on sane cases.  Now check whether non-existent headers
6435  # can be detected and how.
6436  cat >conftest.$ac_ext <<_ACEOF
6437/* confdefs.h.  */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h.  */
6442#include <ac_nonexistent.h>
6443_ACEOF
6444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6445  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6446  ac_status=$?
6447  grep -v '^ *+' conftest.er1 >conftest.err
6448  rm -f conftest.er1
6449  cat conftest.err >&5
6450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451  (exit $ac_status); } >/dev/null; then
6452  if test -s conftest.err; then
6453    ac_cpp_err=$ac_cxx_preproc_warn_flag
6454    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6455  else
6456    ac_cpp_err=
6457  fi
6458else
6459  ac_cpp_err=yes
6460fi
6461if test -z "$ac_cpp_err"; then
6462  # Broken: success on invalid input.
6463continue
6464else
6465  echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468  # Passes both tests.
6469ac_preproc_ok=:
6470break
6471fi
6472rm -f conftest.err conftest.$ac_ext
6473
6474done
6475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6476rm -f conftest.err conftest.$ac_ext
6477if $ac_preproc_ok; then
6478  :
6479else
6480  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6481See \`config.log' for more details." >&5
6482echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6483See \`config.log' for more details." >&2;}
6484   { (exit 1); exit 1; }; }
6485fi
6486
6487ac_ext=cc
6488ac_cpp='$CXXCPP $CPPFLAGS'
6489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6492
6493fi
6494
6495
6496ac_ext=f
6497ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6498ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6499ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6500if test -n "$ac_tool_prefix"; then
6501  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6502  do
6503    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6504set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6505echo "$as_me:$LINENO: checking for $ac_word" >&5
6506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6507if test "${ac_cv_prog_F77+set}" = set; then
6508  echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510  if test -n "$F77"; then
6511  ac_cv_prog_F77="$F77" # Let the user override the test.
6512else
6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514for as_dir in $PATH
6515do
6516  IFS=$as_save_IFS
6517  test -z "$as_dir" && as_dir=.
6518  for ac_exec_ext in '' $ac_executable_extensions; do
6519  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6521    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6522    break 2
6523  fi
6524done
6525done
6526
6527fi
6528fi
6529F77=$ac_cv_prog_F77
6530if test -n "$F77"; then
6531  echo "$as_me:$LINENO: result: $F77" >&5
6532echo "${ECHO_T}$F77" >&6
6533else
6534  echo "$as_me:$LINENO: result: no" >&5
6535echo "${ECHO_T}no" >&6
6536fi
6537
6538    test -n "$F77" && break
6539  done
6540fi
6541if test -z "$F77"; then
6542  ac_ct_F77=$F77
6543  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6544do
6545  # Extract the first word of "$ac_prog", so it can be a program name with args.
6546set dummy $ac_prog; ac_word=$2
6547echo "$as_me:$LINENO: checking for $ac_word" >&5
6548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6549if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6550  echo $ECHO_N "(cached) $ECHO_C" >&6
6551else
6552  if test -n "$ac_ct_F77"; then
6553  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6554else
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558  IFS=$as_save_IFS
6559  test -z "$as_dir" && as_dir=.
6560  for ac_exec_ext in '' $ac_executable_extensions; do
6561  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562    ac_cv_prog_ac_ct_F77="$ac_prog"
6563    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564    break 2
6565  fi
6566done
6567done
6568
6569fi
6570fi
6571ac_ct_F77=$ac_cv_prog_ac_ct_F77
6572if test -n "$ac_ct_F77"; then
6573  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6574echo "${ECHO_T}$ac_ct_F77" >&6
6575else
6576  echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6
6578fi
6579
6580  test -n "$ac_ct_F77" && break
6581done
6582
6583  F77=$ac_ct_F77
6584fi
6585
6586
6587# Provide some information about the compiler.
6588echo "$as_me:6588:" \
6589     "checking for Fortran 77 compiler version" >&5
6590ac_compiler=`set X $ac_compile; echo $2`
6591{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6592  (eval $ac_compiler --version </dev/null >&5) 2>&5
6593  ac_status=$?
6594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595  (exit $ac_status); }
6596{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6597  (eval $ac_compiler -v </dev/null >&5) 2>&5
6598  ac_status=$?
6599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600  (exit $ac_status); }
6601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6602  (eval $ac_compiler -V </dev/null >&5) 2>&5
6603  ac_status=$?
6604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605  (exit $ac_status); }
6606rm -f a.out
6607
6608# If we don't use `.F' as extension, the preprocessor is not run on the
6609# input file.  (Note that this only needs to work for GNU compilers.)
6610ac_save_ext=$ac_ext
6611ac_ext=F
6612echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6613echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6614if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6615  echo $ECHO_N "(cached) $ECHO_C" >&6
6616else
6617  cat >conftest.$ac_ext <<_ACEOF
6618      program main
6619#ifndef __GNUC__
6620       choke me
6621#endif
6622
6623      end
6624_ACEOF
6625rm -f conftest.$ac_objext
6626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627  (eval $ac_compile) 2>conftest.er1
6628  ac_status=$?
6629  grep -v '^ *+' conftest.er1 >conftest.err
6630  rm -f conftest.er1
6631  cat conftest.err >&5
6632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633  (exit $ac_status); } &&
6634         { ac_try='test -z "$ac_f77_werror_flag"
6635                         || test ! -s conftest.err'
6636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637  (eval $ac_try) 2>&5
6638  ac_status=$?
6639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640  (exit $ac_status); }; } &&
6641         { ac_try='test -s conftest.$ac_objext'
6642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643  (eval $ac_try) 2>&5
6644  ac_status=$?
6645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646  (exit $ac_status); }; }; then
6647  ac_compiler_gnu=yes
6648else
6649  echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652ac_compiler_gnu=no
6653fi
6654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6655ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6656
6657fi
6658echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6659echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6660ac_ext=$ac_save_ext
6661ac_test_FFLAGS=${FFLAGS+set}
6662ac_save_FFLAGS=$FFLAGS
6663FFLAGS=
6664echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6665echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6666if test "${ac_cv_prog_f77_g+set}" = set; then
6667  echo $ECHO_N "(cached) $ECHO_C" >&6
6668else
6669  FFLAGS=-g
6670cat >conftest.$ac_ext <<_ACEOF
6671      program main
6672
6673      end
6674_ACEOF
6675rm -f conftest.$ac_objext
6676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6677  (eval $ac_compile) 2>conftest.er1
6678  ac_status=$?
6679  grep -v '^ *+' conftest.er1 >conftest.err
6680  rm -f conftest.er1
6681  cat conftest.err >&5
6682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683  (exit $ac_status); } &&
6684         { ac_try='test -z "$ac_f77_werror_flag"
6685                         || test ! -s conftest.err'
6686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687  (eval $ac_try) 2>&5
6688  ac_status=$?
6689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690  (exit $ac_status); }; } &&
6691         { ac_try='test -s conftest.$ac_objext'
6692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693  (eval $ac_try) 2>&5
6694  ac_status=$?
6695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696  (exit $ac_status); }; }; then
6697  ac_cv_prog_f77_g=yes
6698else
6699  echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702ac_cv_prog_f77_g=no
6703fi
6704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6705
6706fi
6707echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6708echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6709if test "$ac_test_FFLAGS" = set; then
6710  FFLAGS=$ac_save_FFLAGS
6711elif test $ac_cv_prog_f77_g = yes; then
6712  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6713    FFLAGS="-g -O2"
6714  else
6715    FFLAGS="-g"
6716  fi
6717else
6718  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6719    FFLAGS="-O2"
6720  else
6721    FFLAGS=
6722  fi
6723fi
6724
6725G77=`test $ac_compiler_gnu = yes && echo yes`
6726ac_ext=c
6727ac_cpp='$CPP $CPPFLAGS'
6728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6730ac_compiler_gnu=$ac_cv_c_compiler_gnu
6731
6732
6733
6734# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6735
6736# find the maximum length of command line arguments
6737echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6738echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6739if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6740  echo $ECHO_N "(cached) $ECHO_C" >&6
6741else
6742    i=0
6743  teststring="ABCD"
6744
6745  case $build_os in
6746  msdosdjgpp*)
6747    # On DJGPP, this test can blow up pretty badly due to problems in libc
6748    # (any single argument exceeding 2000 bytes causes a buffer overrun
6749    # during glob expansion).  Even if it were fixed, the result of this
6750    # check would be larger than it should be.
6751    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6752    ;;
6753
6754  gnu*)
6755    # Under GNU Hurd, this test is not required because there is
6756    # no limit to the length of command line arguments.
6757    # Libtool will interpret -1 as no limit whatsoever
6758    lt_cv_sys_max_cmd_len=-1;
6759    ;;
6760
6761  cygwin* | mingw*)
6762    # On Win9x/ME, this test blows up -- it succeeds, but takes
6763    # about 5 minutes as the teststring grows exponentially.
6764    # Worse, since 9x/ME are not pre-emptively multitasking,
6765    # you end up with a "frozen" computer, even though with patience
6766    # the test eventually succeeds (with a max line length of 256k).
6767    # Instead, let's just punt: use the minimum linelength reported by
6768    # all of the supported platforms: 8192 (on NT/2K/XP).
6769    lt_cv_sys_max_cmd_len=8192;
6770    ;;
6771
6772  amigaos*)
6773    # On AmigaOS with pdksh, this test takes hours, literally.
6774    # So we just punt and use a minimum line length of 8192.
6775    lt_cv_sys_max_cmd_len=8192;
6776    ;;
6777
6778  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6779    # This has been around since 386BSD, at least.  Likely further.
6780    if test -x /sbin/sysctl; then
6781      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6782    elif test -x /usr/sbin/sysctl; then
6783      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6784    else
6785      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6786    fi
6787    # And add a safety zone
6788    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6789    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6790    ;;
6791
6792  interix*)
6793    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6794    lt_cv_sys_max_cmd_len=196608
6795    ;;
6796
6797  osf*)
6798    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6799    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6800    # nice to cause kernel panics so lets avoid the loop below.
6801    # First set a reasonable default.
6802    lt_cv_sys_max_cmd_len=16384
6803    #
6804    if test -x /sbin/sysconfig; then
6805      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6806        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6807      esac
6808    fi
6809    ;;
6810  sco3.2v5*)
6811    lt_cv_sys_max_cmd_len=102400
6812    ;;
6813  sysv5* | sco5v6* | sysv4.2uw2*)
6814    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6815    if test -n "$kargmax"; then
6816      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6817    else
6818      lt_cv_sys_max_cmd_len=32768
6819    fi
6820    ;;
6821  *)
6822    # If test is not a shell built-in, we'll probably end up computing a
6823    # maximum length that is only half of the actual maximum length, but
6824    # we can't tell.
6825    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6826    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6827               = "XX$teststring") >/dev/null 2>&1 &&
6828            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6829            lt_cv_sys_max_cmd_len=$new_result &&
6830            test $i != 17 # 1/2 MB should be enough
6831    do
6832      i=`expr $i + 1`
6833      teststring=$teststring$teststring
6834    done
6835    teststring=
6836    # Add a significant safety factor because C++ compilers can tack on massive
6837    # amounts of additional arguments before passing them to the linker.
6838    # It appears as though 1/2 is a usable value.
6839    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6840    ;;
6841  esac
6842
6843fi
6844
6845if test -n $lt_cv_sys_max_cmd_len ; then
6846  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6847echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6848else
6849  echo "$as_me:$LINENO: result: none" >&5
6850echo "${ECHO_T}none" >&6
6851fi
6852
6853
6854
6855
6856# Check for command to grab the raw symbol name followed by C symbol from nm.
6857echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6858echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6859if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6860  echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862
6863# These are sane defaults that work on at least a few old systems.
6864# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6865
6866# Character class describing NM global symbol codes.
6867symcode='[BCDEGRST]'
6868
6869# Regexp to match symbols that can be accessed directly from C.
6870sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6871
6872# Transform an extracted symbol line into a proper C declaration
6873lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6874
6875# Transform an extracted symbol line into symbol name and symbol address
6876lt_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'"
6877
6878# Define system-specific variables.
6879case $host_os in
6880aix*)
6881  symcode='[BCDT]'
6882  ;;
6883cygwin* | mingw* | pw32*)
6884  symcode='[ABCDGISTW]'
6885  ;;
6886hpux*) # Its linker distinguishes data from code symbols
6887  if test "$host_cpu" = ia64; then
6888    symcode='[ABCDEGRST]'
6889  fi
6890  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6891  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'"
6892  ;;
6893linux*)
6894  if test "$host_cpu" = ia64; then
6895    symcode='[ABCDGIRSTW]'
6896    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6897    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'"
6898  fi
6899  ;;
6900irix* | nonstopux*)
6901  symcode='[BCDEGRST]'
6902  ;;
6903osf*)
6904  symcode='[BCDEGQRST]'
6905  ;;
6906solaris*)
6907  symcode='[BDRT]'
6908  ;;
6909sco3.2v5*)
6910  symcode='[DT]'
6911  ;;
6912sysv4.2uw2*)
6913  symcode='[DT]'
6914  ;;
6915sysv5* | sco5v6* | unixware* | OpenUNIX*)
6916  symcode='[ABDT]'
6917  ;;
6918sysv4)
6919  symcode='[DFNSTU]'
6920  ;;
6921esac
6922
6923# Handle CRLF in mingw tool chain
6924opt_cr=
6925case $build_os in
6926mingw*)
6927  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6928  ;;
6929esac
6930
6931# If we're using GNU nm, then use its standard symbol codes.
6932case `$NM -V 2>&1` in
6933*GNU* | *'with BFD'*)
6934  symcode='[ABCDGIRSTW]' ;;
6935esac
6936
6937# Try without a prefix undercore, then with it.
6938for ac_symprfx in "" "_"; do
6939
6940  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6941  symxfrm="\\1 $ac_symprfx\\2 \\2"
6942
6943  # Write the raw and C identifiers.
6944  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6945
6946  # Check to see that the pipe works correctly.
6947  pipe_works=no
6948
6949  rm -f conftest*
6950  cat > conftest.$ac_ext <<EOF
6951#ifdef __cplusplus
6952extern "C" {
6953#endif
6954char nm_test_var;
6955void nm_test_func(){}
6956#ifdef __cplusplus
6957}
6958#endif
6959int main(){nm_test_var='a';nm_test_func();return(0);}
6960EOF
6961
6962  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963  (eval $ac_compile) 2>&5
6964  ac_status=$?
6965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966  (exit $ac_status); }; then
6967    # Now try to grab the symbols.
6968    nlist=conftest.nm
6969    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6970  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6971  ac_status=$?
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); } && test -s "$nlist"; then
6974      # Try sorting and uniquifying the output.
6975      if sort "$nlist" | uniq > "$nlist"T; then
6976        mv -f "$nlist"T "$nlist"
6977      else
6978        rm -f "$nlist"T
6979      fi
6980
6981      # Make sure that we snagged all the symbols we need.
6982      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6983        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6984          cat <<EOF > conftest.$ac_ext
6985#ifdef __cplusplus
6986extern "C" {
6987#endif
6988
6989EOF
6990          # Now generate the symbol file.
6991          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6992
6993          cat <<EOF >> conftest.$ac_ext
6994#if defined (__STDC__) && __STDC__
6995# define lt_ptr_t void *
6996#else
6997# define lt_ptr_t char *
6998# define const
6999#endif
7000
7001/* The mapping between symbol names and symbols. */
7002const struct {
7003  const char *name;
7004  lt_ptr_t address;
7005}
7006lt_preloaded_symbols[] =
7007{
7008EOF
7009          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7010          cat <<\EOF >> conftest.$ac_ext
7011  {0, (lt_ptr_t) 0}
7012};
7013
7014#ifdef __cplusplus
7015}
7016#endif
7017EOF
7018          # Now try linking the two files.
7019          mv conftest.$ac_objext conftstm.$ac_objext
7020          lt_save_LIBS="$LIBS"
7021          lt_save_CFLAGS="$CFLAGS"
7022          LIBS="conftstm.$ac_objext"
7023          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7024          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025  (eval $ac_link) 2>&5
7026  ac_status=$?
7027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7029            pipe_works=yes
7030          fi
7031          LIBS="$lt_save_LIBS"
7032          CFLAGS="$lt_save_CFLAGS"
7033        else
7034          echo "cannot find nm_test_func in $nlist" >&5
7035        fi
7036      else
7037        echo "cannot find nm_test_var in $nlist" >&5
7038      fi
7039    else
7040      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7041    fi
7042  else
7043    echo "$progname: failed program was:" >&5
7044    cat conftest.$ac_ext >&5
7045  fi
7046  rm -f conftest* conftst*
7047
7048  # Do not use the global_symbol_pipe unless it works.
7049  if test "$pipe_works" = yes; then
7050    break
7051  else
7052    lt_cv_sys_global_symbol_pipe=
7053  fi
7054done
7055
7056fi
7057
7058if test -z "$lt_cv_sys_global_symbol_pipe"; then
7059  lt_cv_sys_global_symbol_to_cdecl=
7060fi
7061if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7062  echo "$as_me:$LINENO: result: failed" >&5
7063echo "${ECHO_T}failed" >&6
7064else
7065  echo "$as_me:$LINENO: result: ok" >&5
7066echo "${ECHO_T}ok" >&6
7067fi
7068
7069echo "$as_me:$LINENO: checking for objdir" >&5
7070echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7071if test "${lt_cv_objdir+set}" = set; then
7072  echo $ECHO_N "(cached) $ECHO_C" >&6
7073else
7074  rm -f .libs 2>/dev/null
7075mkdir .libs 2>/dev/null
7076if test -d .libs; then
7077  lt_cv_objdir=.libs
7078else
7079  # MS-DOS does not allow filenames that begin with a dot.
7080  lt_cv_objdir=_libs
7081fi
7082rmdir .libs 2>/dev/null
7083fi
7084echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7085echo "${ECHO_T}$lt_cv_objdir" >&6
7086objdir=$lt_cv_objdir
7087
7088
7089
7090
7091
7092case $host_os in
7093aix3*)
7094  # AIX sometimes has problems with the GCC collect2 program.  For some
7095  # reason, if we set the COLLECT_NAMES environment variable, the problems
7096  # vanish in a puff of smoke.
7097  if test "X${COLLECT_NAMES+set}" != Xset; then
7098    COLLECT_NAMES=
7099    export COLLECT_NAMES
7100  fi
7101  ;;
7102esac
7103
7104# Sed substitution that helps us do robust quoting.  It backslashifies
7105# metacharacters that are still active within double-quoted strings.
7106Xsed='sed -e 1s/^X//'
7107sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7108
7109# Same as above, but do not quote variable references.
7110double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7111
7112# Sed substitution to delay expansion of an escaped shell variable in a
7113# double_quote_subst'ed string.
7114delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7115
7116# Sed substitution to avoid accidental globbing in evaled expressions
7117no_glob_subst='s/\*/\\\*/g'
7118
7119# Constants:
7120rm="rm -f"
7121
7122# Global variables:
7123default_ofile=libtool
7124can_build_shared=yes
7125
7126# All known linkers require a `.a' archive for static linking (except MSVC,
7127# which needs '.lib').
7128libext=a
7129ltmain="$ac_aux_dir/ltmain.sh"
7130ofile="$default_ofile"
7131with_gnu_ld="$lt_cv_prog_gnu_ld"
7132
7133if test -n "$ac_tool_prefix"; then
7134  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7135set dummy ${ac_tool_prefix}ar; ac_word=$2
7136echo "$as_me:$LINENO: checking for $ac_word" >&5
7137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7138if test "${ac_cv_prog_AR+set}" = set; then
7139  echo $ECHO_N "(cached) $ECHO_C" >&6
7140else
7141  if test -n "$AR"; then
7142  ac_cv_prog_AR="$AR" # Let the user override the test.
7143else
7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147  IFS=$as_save_IFS
7148  test -z "$as_dir" && as_dir=.
7149  for ac_exec_ext in '' $ac_executable_extensions; do
7150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151    ac_cv_prog_AR="${ac_tool_prefix}ar"
7152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153    break 2
7154  fi
7155done
7156done
7157
7158fi
7159fi
7160AR=$ac_cv_prog_AR
7161if test -n "$AR"; then
7162  echo "$as_me:$LINENO: result: $AR" >&5
7163echo "${ECHO_T}$AR" >&6
7164else
7165  echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167fi
7168
7169fi
7170if test -z "$ac_cv_prog_AR"; then
7171  ac_ct_AR=$AR
7172  # Extract the first word of "ar", so it can be a program name with args.
7173set dummy ar; ac_word=$2
7174echo "$as_me:$LINENO: checking for $ac_word" >&5
7175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7176if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7177  echo $ECHO_N "(cached) $ECHO_C" >&6
7178else
7179  if test -n "$ac_ct_AR"; then
7180  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7181else
7182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185  IFS=$as_save_IFS
7186  test -z "$as_dir" && as_dir=.
7187  for ac_exec_ext in '' $ac_executable_extensions; do
7188  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189    ac_cv_prog_ac_ct_AR="ar"
7190    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7191    break 2
7192  fi
7193done
7194done
7195
7196  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7197fi
7198fi
7199ac_ct_AR=$ac_cv_prog_ac_ct_AR
7200if test -n "$ac_ct_AR"; then
7201  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7202echo "${ECHO_T}$ac_ct_AR" >&6
7203else
7204  echo "$as_me:$LINENO: result: no" >&5
7205echo "${ECHO_T}no" >&6
7206fi
7207
7208  AR=$ac_ct_AR
7209else
7210  AR="$ac_cv_prog_AR"
7211fi
7212
7213if test -n "$ac_tool_prefix"; then
7214  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7215set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7216echo "$as_me:$LINENO: checking for $ac_word" >&5
7217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7218if test "${ac_cv_prog_RANLIB+set}" = set; then
7219  echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221  if test -n "$RANLIB"; then
7222  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227  IFS=$as_save_IFS
7228  test -z "$as_dir" && as_dir=.
7229  for ac_exec_ext in '' $ac_executable_extensions; do
7230  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7232    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233    break 2
7234  fi
7235done
7236done
7237
7238fi
7239fi
7240RANLIB=$ac_cv_prog_RANLIB
7241if test -n "$RANLIB"; then
7242  echo "$as_me:$LINENO: result: $RANLIB" >&5
7243echo "${ECHO_T}$RANLIB" >&6
7244else
7245  echo "$as_me:$LINENO: result: no" >&5
7246echo "${ECHO_T}no" >&6
7247fi
7248
7249fi
7250if test -z "$ac_cv_prog_RANLIB"; then
7251  ac_ct_RANLIB=$RANLIB
7252  # Extract the first word of "ranlib", so it can be a program name with args.
7253set dummy ranlib; ac_word=$2
7254echo "$as_me:$LINENO: checking for $ac_word" >&5
7255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7257  echo $ECHO_N "(cached) $ECHO_C" >&6
7258else
7259  if test -n "$ac_ct_RANLIB"; then
7260  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7261else
7262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265  IFS=$as_save_IFS
7266  test -z "$as_dir" && as_dir=.
7267  for ac_exec_ext in '' $ac_executable_extensions; do
7268  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269    ac_cv_prog_ac_ct_RANLIB="ranlib"
7270    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271    break 2
7272  fi
7273done
7274done
7275
7276  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7277fi
7278fi
7279ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7280if test -n "$ac_ct_RANLIB"; then
7281  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7282echo "${ECHO_T}$ac_ct_RANLIB" >&6
7283else
7284  echo "$as_me:$LINENO: result: no" >&5
7285echo "${ECHO_T}no" >&6
7286fi
7287
7288  RANLIB=$ac_ct_RANLIB
7289else
7290  RANLIB="$ac_cv_prog_RANLIB"
7291fi
7292
7293if test -n "$ac_tool_prefix"; then
7294  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7295set dummy ${ac_tool_prefix}strip; ac_word=$2
7296echo "$as_me:$LINENO: checking for $ac_word" >&5
7297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7298if test "${ac_cv_prog_STRIP+set}" = set; then
7299  echo $ECHO_N "(cached) $ECHO_C" >&6
7300else
7301  if test -n "$STRIP"; then
7302  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7303else
7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307  IFS=$as_save_IFS
7308  test -z "$as_dir" && as_dir=.
7309  for ac_exec_ext in '' $ac_executable_extensions; do
7310  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7312    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7313    break 2
7314  fi
7315done
7316done
7317
7318fi
7319fi
7320STRIP=$ac_cv_prog_STRIP
7321if test -n "$STRIP"; then
7322  echo "$as_me:$LINENO: result: $STRIP" >&5
7323echo "${ECHO_T}$STRIP" >&6
7324else
7325  echo "$as_me:$LINENO: result: no" >&5
7326echo "${ECHO_T}no" >&6
7327fi
7328
7329fi
7330if test -z "$ac_cv_prog_STRIP"; then
7331  ac_ct_STRIP=$STRIP
7332  # Extract the first word of "strip", so it can be a program name with args.
7333set dummy strip; ac_word=$2
7334echo "$as_me:$LINENO: checking for $ac_word" >&5
7335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7337  echo $ECHO_N "(cached) $ECHO_C" >&6
7338else
7339  if test -n "$ac_ct_STRIP"; then
7340  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345  IFS=$as_save_IFS
7346  test -z "$as_dir" && as_dir=.
7347  for ac_exec_ext in '' $ac_executable_extensions; do
7348  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349    ac_cv_prog_ac_ct_STRIP="strip"
7350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351    break 2
7352  fi
7353done
7354done
7355
7356  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7357fi
7358fi
7359ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7360if test -n "$ac_ct_STRIP"; then
7361  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7362echo "${ECHO_T}$ac_ct_STRIP" >&6
7363else
7364  echo "$as_me:$LINENO: result: no" >&5
7365echo "${ECHO_T}no" >&6
7366fi
7367
7368  STRIP=$ac_ct_STRIP
7369else
7370  STRIP="$ac_cv_prog_STRIP"
7371fi
7372
7373
7374old_CC="$CC"
7375old_CFLAGS="$CFLAGS"
7376
7377# Set sane defaults for various variables
7378test -z "$AR" && AR=ar
7379test -z "$AR_FLAGS" && AR_FLAGS=cru
7380test -z "$AS" && AS=as
7381test -z "$CC" && CC=cc
7382test -z "$LTCC" && LTCC=$CC
7383test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7384test -z "$DLLTOOL" && DLLTOOL=dlltool
7385test -z "$LD" && LD=ld
7386test -z "$LN_S" && LN_S="ln -s"
7387test -z "$MAGIC_CMD" && MAGIC_CMD=file
7388test -z "$NM" && NM=nm
7389test -z "$SED" && SED=sed
7390test -z "$OBJDUMP" && OBJDUMP=objdump
7391test -z "$RANLIB" && RANLIB=:
7392test -z "$STRIP" && STRIP=:
7393test -z "$ac_objext" && ac_objext=o
7394
7395# Determine commands to create old-style static archives.
7396old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7397old_postinstall_cmds='chmod 644 $oldlib'
7398old_postuninstall_cmds=
7399
7400if test -n "$RANLIB"; then
7401  case $host_os in
7402  openbsd*)
7403    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7404    ;;
7405  *)
7406    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7407    ;;
7408  esac
7409  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7410fi
7411
7412for cc_temp in $compiler""; do
7413  case $cc_temp in
7414    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7415    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7416    \-*) ;;
7417    *) break;;
7418  esac
7419done
7420cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7421
7422
7423# Only perform the check for file, if the check method requires it
7424case $deplibs_check_method in
7425file_magic*)
7426  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7427    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7428echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7429if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7430  echo $ECHO_N "(cached) $ECHO_C" >&6
7431else
7432  case $MAGIC_CMD in
7433[\\/*] |  ?:[\\/]*)
7434  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7435  ;;
7436*)
7437  lt_save_MAGIC_CMD="$MAGIC_CMD"
7438  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7439  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7440  for ac_dir in $ac_dummy; do
7441    IFS="$lt_save_ifs"
7442    test -z "$ac_dir" && ac_dir=.
7443    if test -f $ac_dir/${ac_tool_prefix}file; then
7444      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7445      if test -n "$file_magic_test_file"; then
7446        case $deplibs_check_method in
7447        "file_magic "*)
7448          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7449          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7450          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7451            $EGREP "$file_magic_regex" > /dev/null; then
7452            :
7453          else
7454            cat <<EOF 1>&2
7455
7456*** Warning: the command libtool uses to detect shared libraries,
7457*** $file_magic_cmd, produces output that libtool cannot recognize.
7458*** The result is that libtool may fail to recognize shared libraries
7459*** as such.  This will affect the creation of libtool libraries that
7460*** depend on shared libraries, but programs linked with such libtool
7461*** libraries will work regardless of this problem.  Nevertheless, you
7462*** may want to report the problem to your system manager and/or to
7463*** bug-libtool@gnu.org
7464
7465EOF
7466          fi ;;
7467        esac
7468      fi
7469      break
7470    fi
7471  done
7472  IFS="$lt_save_ifs"
7473  MAGIC_CMD="$lt_save_MAGIC_CMD"
7474  ;;
7475esac
7476fi
7477
7478MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7479if test -n "$MAGIC_CMD"; then
7480  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7481echo "${ECHO_T}$MAGIC_CMD" >&6
7482else
7483  echo "$as_me:$LINENO: result: no" >&5
7484echo "${ECHO_T}no" >&6
7485fi
7486
7487if test -z "$lt_cv_path_MAGIC_CMD"; then
7488  if test -n "$ac_tool_prefix"; then
7489    echo "$as_me:$LINENO: checking for file" >&5
7490echo $ECHO_N "checking for file... $ECHO_C" >&6
7491if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7492  echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494  case $MAGIC_CMD in
7495[\\/*] |  ?:[\\/]*)
7496  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7497  ;;
7498*)
7499  lt_save_MAGIC_CMD="$MAGIC_CMD"
7500  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7501  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7502  for ac_dir in $ac_dummy; do
7503    IFS="$lt_save_ifs"
7504    test -z "$ac_dir" && ac_dir=.
7505    if test -f $ac_dir/file; then
7506      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7507      if test -n "$file_magic_test_file"; then
7508        case $deplibs_check_method in
7509        "file_magic "*)
7510          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7511          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7512          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7513            $EGREP "$file_magic_regex" > /dev/null; then
7514            :
7515          else
7516            cat <<EOF 1>&2
7517
7518*** Warning: the command libtool uses to detect shared libraries,
7519*** $file_magic_cmd, produces output that libtool cannot recognize.
7520*** The result is that libtool may fail to recognize shared libraries
7521*** as such.  This will affect the creation of libtool libraries that
7522*** depend on shared libraries, but programs linked with such libtool
7523*** libraries will work regardless of this problem.  Nevertheless, you
7524*** may want to report the problem to your system manager and/or to
7525*** bug-libtool@gnu.org
7526
7527EOF
7528          fi ;;
7529        esac
7530      fi
7531      break
7532    fi
7533  done
7534  IFS="$lt_save_ifs"
7535  MAGIC_CMD="$lt_save_MAGIC_CMD"
7536  ;;
7537esac
7538fi
7539
7540MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7541if test -n "$MAGIC_CMD"; then
7542  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7543echo "${ECHO_T}$MAGIC_CMD" >&6
7544else
7545  echo "$as_me:$LINENO: result: no" >&5
7546echo "${ECHO_T}no" >&6
7547fi
7548
7549  else
7550    MAGIC_CMD=:
7551  fi
7552fi
7553
7554  fi
7555  ;;
7556esac
7557
7558enable_dlopen=no
7559enable_win32_dll=no
7560
7561# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7562if test "${enable_libtool_lock+set}" = set; then
7563  enableval="$enable_libtool_lock"
7564
7565fi;
7566test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7567
7568
7569# Check whether --with-pic or --without-pic was given.
7570if test "${with_pic+set}" = set; then
7571  withval="$with_pic"
7572  pic_mode="$withval"
7573else
7574  pic_mode=default
7575fi;
7576test -z "$pic_mode" && pic_mode=default
7577
7578# Use C for the default configuration in the libtool script
7579tagname=
7580lt_save_CC="$CC"
7581ac_ext=c
7582ac_cpp='$CPP $CPPFLAGS'
7583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7585ac_compiler_gnu=$ac_cv_c_compiler_gnu
7586
7587
7588# Source file extension for C test sources.
7589ac_ext=c
7590
7591# Object file extension for compiled C test sources.
7592objext=o
7593objext=$objext
7594
7595# Code to be used in simple compile tests
7596lt_simple_compile_test_code="int some_variable = 0;\n"
7597
7598# Code to be used in simple link tests
7599lt_simple_link_test_code='int main(){return(0);}\n'
7600
7601
7602# If no C compiler was specified, use CC.
7603LTCC=${LTCC-"$CC"}
7604
7605# If no C compiler flags were specified, use CFLAGS.
7606LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7607
7608# Allow CC to be a program name with arguments.
7609compiler=$CC
7610
7611
7612# save warnings/boilerplate of simple test code
7613ac_outfile=conftest.$ac_objext
7614printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7615eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7616_lt_compiler_boilerplate=`cat conftest.err`
7617$rm conftest*
7618
7619ac_outfile=conftest.$ac_objext
7620printf "$lt_simple_link_test_code" >conftest.$ac_ext
7621eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7622_lt_linker_boilerplate=`cat conftest.err`
7623$rm conftest*
7624
7625
7626## CAVEAT EMPTOR:
7627## There is no encapsulation within the following macros, do not change
7628## the running order or otherwise move them around unless you know exactly
7629## what you are doing...
7630
7631lt_prog_compiler_no_builtin_flag=
7632
7633if test "$GCC" = yes; then
7634  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7635
7636
7637echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7638echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7639if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7640  echo $ECHO_N "(cached) $ECHO_C" >&6
7641else
7642  lt_cv_prog_compiler_rtti_exceptions=no
7643  ac_outfile=conftest.$ac_objext
7644   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7645   lt_compiler_flag="-fno-rtti -fno-exceptions"
7646   # Insert the option either (1) after the last *FLAGS variable, or
7647   # (2) before a word containing "conftest.", or (3) at the end.
7648   # Note that $ac_compile itself does not contain backslashes and begins
7649   # with a dollar sign (not a hyphen), so the echo should work correctly.
7650   # The option is referenced via a variable to avoid confusing sed.
7651   lt_compile=`echo "$ac_compile" | $SED \
7652   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7653   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7654   -e 's:$: $lt_compiler_flag:'`
7655   (eval echo "\"\$as_me:7655: $lt_compile\"" >&5)
7656   (eval "$lt_compile" 2>conftest.err)
7657   ac_status=$?
7658   cat conftest.err >&5
7659   echo "$as_me:7659: \$? = $ac_status" >&5
7660   if (exit $ac_status) && test -s "$ac_outfile"; then
7661     # The compiler can only warn and ignore the option if not recognized
7662     # So say no if there are warnings other than the usual output.
7663     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7664     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7665     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7666       lt_cv_prog_compiler_rtti_exceptions=yes
7667     fi
7668   fi
7669   $rm conftest*
7670
7671fi
7672echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7673echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7674
7675if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7676    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7677else
7678    :
7679fi
7680
7681fi
7682
7683lt_prog_compiler_wl=
7684lt_prog_compiler_pic=
7685lt_prog_compiler_static=
7686
7687echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7688echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7689
7690  if test "$GCC" = yes; then
7691    lt_prog_compiler_wl='-Wl,'
7692    lt_prog_compiler_static='-static'
7693
7694    case $host_os in
7695      aix*)
7696      # All AIX code is PIC.
7697      if test "$host_cpu" = ia64; then
7698        # AIX 5 now supports IA64 processor
7699        lt_prog_compiler_static='-Bstatic'
7700      fi
7701      ;;
7702
7703    amigaos*)
7704      # FIXME: we need at least 68020 code to build shared libraries, but
7705      # adding the `-m68020' flag to GCC prevents building anything better,
7706      # like `-m68040'.
7707      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7708      ;;
7709
7710    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7711      # PIC is the default for these OSes.
7712      ;;
7713
7714    mingw* | pw32* | os2*)
7715      # This hack is so that the source file can tell whether it is being
7716      # built for inclusion in a dll (and should export symbols for example).
7717      lt_prog_compiler_pic='-DDLL_EXPORT'
7718      ;;
7719
7720    darwin* | rhapsody*)
7721      # PIC is the default on this platform
7722      # Common symbols not allowed in MH_DYLIB files
7723      lt_prog_compiler_pic='-fno-common'
7724      ;;
7725
7726    interix3*)
7727      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7728      # Instead, we relocate shared libraries at runtime.
7729      ;;
7730
7731    msdosdjgpp*)
7732      # Just because we use GCC doesn't mean we suddenly get shared libraries
7733      # on systems that don't support them.
7734      lt_prog_compiler_can_build_shared=no
7735      enable_shared=no
7736      ;;
7737
7738    sysv4*MP*)
7739      if test -d /usr/nec; then
7740        lt_prog_compiler_pic=-Kconform_pic
7741      fi
7742      ;;
7743
7744    hpux*)
7745      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7746      # not for PA HP-UX.
7747      case $host_cpu in
7748      hppa*64*|ia64*)
7749        # +Z the default
7750        ;;
7751      *)
7752        lt_prog_compiler_pic='-fPIC'
7753        ;;
7754      esac
7755      ;;
7756
7757    *)
7758      lt_prog_compiler_pic='-fPIC'
7759      ;;
7760    esac
7761  else
7762    # PORTME Check for flag to pass linker flags through the system compiler.
7763    case $host_os in
7764    aix*)
7765      lt_prog_compiler_wl='-Wl,'
7766      if test "$host_cpu" = ia64; then
7767        # AIX 5 now supports IA64 processor
7768        lt_prog_compiler_static='-Bstatic'
7769      else
7770        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7771      fi
7772      ;;
7773      darwin*)
7774        # PIC is the default on this platform
7775        # Common symbols not allowed in MH_DYLIB files
7776       case $cc_basename in
7777         xlc*)
7778         lt_prog_compiler_pic='-qnocommon'
7779         lt_prog_compiler_wl='-Wl,'
7780         ;;
7781       esac
7782       ;;
7783
7784    mingw* | pw32* | os2*)
7785      # This hack is so that the source file can tell whether it is being
7786      # built for inclusion in a dll (and should export symbols for example).
7787      lt_prog_compiler_pic='-DDLL_EXPORT'
7788      ;;
7789
7790    hpux9* | hpux10* | hpux11*)
7791      lt_prog_compiler_wl='-Wl,'
7792      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7793      # not for PA HP-UX.
7794      case $host_cpu in
7795      hppa*64*|ia64*)
7796        # +Z the default
7797        ;;
7798      *)
7799        lt_prog_compiler_pic='+Z'
7800        ;;
7801      esac
7802      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7803      lt_prog_compiler_static='${wl}-a ${wl}archive'
7804      ;;
7805
7806    irix5* | irix6* | nonstopux*)
7807      lt_prog_compiler_wl='-Wl,'
7808      # PIC (with -KPIC) is the default.
7809      lt_prog_compiler_static='-non_shared'
7810      ;;
7811
7812    newsos6)
7813      lt_prog_compiler_pic='-KPIC'
7814      lt_prog_compiler_static='-Bstatic'
7815      ;;
7816
7817    linux*)
7818      case $cc_basename in
7819      icc* | ecc*)
7820        lt_prog_compiler_wl='-Wl,'
7821        lt_prog_compiler_pic='-KPIC'
7822        lt_prog_compiler_static='-static'
7823        ;;
7824      pgcc* | pgf77* | pgf90* | pgf95*)
7825        # Portland Group compilers (*not* the Pentium gcc compiler,
7826        # which looks to be a dead project)
7827        lt_prog_compiler_wl='-Wl,'
7828        lt_prog_compiler_pic='-fpic'
7829        lt_prog_compiler_static='-Bstatic'
7830        ;;
7831      ccc*)
7832        lt_prog_compiler_wl='-Wl,'
7833        # All Alpha code is PIC.
7834        lt_prog_compiler_static='-non_shared'
7835        ;;
7836      esac
7837      ;;
7838
7839    osf3* | osf4* | osf5*)
7840      lt_prog_compiler_wl='-Wl,'
7841      # All OSF/1 code is PIC.
7842      lt_prog_compiler_static='-non_shared'
7843      ;;
7844
7845    solaris*)
7846      lt_prog_compiler_pic='-KPIC'
7847      lt_prog_compiler_static='-Bstatic'
7848      case $cc_basename in
7849      f77* | f90* | f95*)
7850        lt_prog_compiler_wl='-Qoption ld ';;
7851      *)
7852        lt_prog_compiler_wl='-Wl,';;
7853      esac
7854      ;;
7855
7856    sunos4*)
7857      lt_prog_compiler_wl='-Qoption ld '
7858      lt_prog_compiler_pic='-PIC'
7859      lt_prog_compiler_static='-Bstatic'
7860      ;;
7861
7862    sysv4 | sysv4.2uw2* | sysv4.3*)
7863      lt_prog_compiler_wl='-Wl,'
7864      lt_prog_compiler_pic='-KPIC'
7865      lt_prog_compiler_static='-Bstatic'
7866      ;;
7867
7868    sysv4*MP*)
7869      if test -d /usr/nec ;then
7870        lt_prog_compiler_pic='-Kconform_pic'
7871        lt_prog_compiler_static='-Bstatic'
7872      fi
7873      ;;
7874
7875    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7876      lt_prog_compiler_wl='-Wl,'
7877      lt_prog_compiler_pic='-KPIC'
7878      lt_prog_compiler_static='-Bstatic'
7879      ;;
7880
7881    unicos*)
7882      lt_prog_compiler_wl='-Wl,'
7883      lt_prog_compiler_can_build_shared=no
7884      ;;
7885
7886    uts4*)
7887      lt_prog_compiler_pic='-pic'
7888      lt_prog_compiler_static='-Bstatic'
7889      ;;
7890
7891    *)
7892      lt_prog_compiler_can_build_shared=no
7893      ;;
7894    esac
7895  fi
7896
7897echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7898echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7899
7900#
7901# Check to make sure the PIC flag actually works.
7902#
7903if test -n "$lt_prog_compiler_pic"; then
7904
7905echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7906echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7907if test "${lt_prog_compiler_pic_works+set}" = set; then
7908  echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910  lt_prog_compiler_pic_works=no
7911  ac_outfile=conftest.$ac_objext
7912   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7913   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7914   # Insert the option either (1) after the last *FLAGS variable, or
7915   # (2) before a word containing "conftest.", or (3) at the end.
7916   # Note that $ac_compile itself does not contain backslashes and begins
7917   # with a dollar sign (not a hyphen), so the echo should work correctly.
7918   # The option is referenced via a variable to avoid confusing sed.
7919   lt_compile=`echo "$ac_compile" | $SED \
7920   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7921   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7922   -e 's:$: $lt_compiler_flag:'`
7923   (eval echo "\"\$as_me:7923: $lt_compile\"" >&5)
7924   (eval "$lt_compile" 2>conftest.err)
7925   ac_status=$?
7926   cat conftest.err >&5
7927   echo "$as_me:7927: \$? = $ac_status" >&5
7928   if (exit $ac_status) && test -s "$ac_outfile"; then
7929     # The compiler can only warn and ignore the option if not recognized
7930     # So say no if there are warnings other than the usual output.
7931     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7932     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7933     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7934       lt_prog_compiler_pic_works=yes
7935     fi
7936   fi
7937   $rm conftest*
7938
7939fi
7940echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7941echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7942
7943if test x"$lt_prog_compiler_pic_works" = xyes; then
7944    case $lt_prog_compiler_pic in
7945     "" | " "*) ;;
7946     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7947     esac
7948else
7949    lt_prog_compiler_pic=
7950     lt_prog_compiler_can_build_shared=no
7951fi
7952
7953fi
7954case $host_os in
7955  # For platforms which do not support PIC, -DPIC is meaningless:
7956  *djgpp*)
7957    lt_prog_compiler_pic=
7958    ;;
7959  *)
7960    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7961    ;;
7962esac
7963
7964#
7965# Check to make sure the static flag actually works.
7966#
7967wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7968echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7969echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7970if test "${lt_prog_compiler_static_works+set}" = set; then
7971  echo $ECHO_N "(cached) $ECHO_C" >&6
7972else
7973  lt_prog_compiler_static_works=no
7974   save_LDFLAGS="$LDFLAGS"
7975   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7976   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7977   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7978     # The linker can only warn and ignore the option if not recognized
7979     # So say no if there are warnings
7980     if test -s conftest.err; then
7981       # Append any errors to the config.log.
7982       cat conftest.err 1>&5
7983       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7984       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7985       if diff conftest.exp conftest.er2 >/dev/null; then
7986         lt_prog_compiler_static_works=yes
7987       fi
7988     else
7989       lt_prog_compiler_static_works=yes
7990     fi
7991   fi
7992   $rm conftest*
7993   LDFLAGS="$save_LDFLAGS"
7994
7995fi
7996echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7997echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7998
7999if test x"$lt_prog_compiler_static_works" = xyes; then
8000    :
8001else
8002    lt_prog_compiler_static=
8003fi
8004
8005
8006echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8007echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8008if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8009  echo $ECHO_N "(cached) $ECHO_C" >&6
8010else
8011  lt_cv_prog_compiler_c_o=no
8012   $rm -r conftest 2>/dev/null
8013   mkdir conftest
8014   cd conftest
8015   mkdir out
8016   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8017
8018   lt_compiler_flag="-o out/conftest2.$ac_objext"
8019   # Insert the option either (1) after the last *FLAGS variable, or
8020   # (2) before a word containing "conftest.", or (3) at the end.
8021   # Note that $ac_compile itself does not contain backslashes and begins
8022   # with a dollar sign (not a hyphen), so the echo should work correctly.
8023   lt_compile=`echo "$ac_compile" | $SED \
8024   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8025   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8026   -e 's:$: $lt_compiler_flag:'`
8027   (eval echo "\"\$as_me:8027: $lt_compile\"" >&5)
8028   (eval "$lt_compile" 2>out/conftest.err)
8029   ac_status=$?
8030   cat out/conftest.err >&5
8031   echo "$as_me:8031: \$? = $ac_status" >&5
8032   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8033   then
8034     # The compiler can only warn and ignore the option if not recognized
8035     # So say no if there are warnings
8036     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8037     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8038     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8039       lt_cv_prog_compiler_c_o=yes
8040     fi
8041   fi
8042   chmod u+w . 2>&5
8043   $rm conftest*
8044   # SGI C++ compiler will create directory out/ii_files/ for
8045   # template instantiation
8046   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8047   $rm out/* && rmdir out
8048   cd ..
8049   rmdir conftest
8050   $rm conftest*
8051
8052fi
8053echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8054echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8055
8056
8057hard_links="nottested"
8058if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8059  # do not overwrite the value of need_locks provided by the user
8060  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8061echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8062  hard_links=yes
8063  $rm conftest*
8064  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8065  touch conftest.a
8066  ln conftest.a conftest.b 2>&5 || hard_links=no
8067  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8068  echo "$as_me:$LINENO: result: $hard_links" >&5
8069echo "${ECHO_T}$hard_links" >&6
8070  if test "$hard_links" = no; then
8071    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8072echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8073    need_locks=warn
8074  fi
8075else
8076  need_locks=no
8077fi
8078
8079echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8080echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8081
8082  runpath_var=
8083  allow_undefined_flag=
8084  enable_shared_with_static_runtimes=no
8085  archive_cmds=
8086  archive_expsym_cmds=
8087  old_archive_From_new_cmds=
8088  old_archive_from_expsyms_cmds=
8089  export_dynamic_flag_spec=
8090  whole_archive_flag_spec=
8091  thread_safe_flag_spec=
8092  hardcode_libdir_flag_spec=
8093  hardcode_libdir_flag_spec_ld=
8094  hardcode_libdir_separator=
8095  hardcode_direct=no
8096  hardcode_minus_L=no
8097  hardcode_shlibpath_var=unsupported
8098  link_all_deplibs=unknown
8099  hardcode_automatic=no
8100  module_cmds=
8101  module_expsym_cmds=
8102  always_export_symbols=no
8103  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8104  # include_expsyms should be a list of space-separated symbols to be *always*
8105  # included in the symbol list
8106  include_expsyms=
8107  # exclude_expsyms can be an extended regexp of symbols to exclude
8108  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8109  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8110  # as well as any symbol that contains `d'.
8111  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8112  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8113  # platforms (ab)use it in PIC code, but their linkers get confused if
8114  # the symbol is explicitly referenced.  Since portable code cannot
8115  # rely on this symbol name, it's probably fine to never include it in
8116  # preloaded symbol tables.
8117  extract_expsyms_cmds=
8118  # Just being paranoid about ensuring that cc_basename is set.
8119  for cc_temp in $compiler""; do
8120  case $cc_temp in
8121    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8122    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8123    \-*) ;;
8124    *) break;;
8125  esac
8126done
8127cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8128
8129  case $host_os in
8130  cygwin* | mingw* | pw32*)
8131    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8132    # When not using gcc, we currently assume that we are using
8133    # Microsoft Visual C++.
8134    if test "$GCC" != yes; then
8135      with_gnu_ld=no
8136    fi
8137    ;;
8138  interix*)
8139    # we just hope/assume this is gcc and not c89 (= MSVC++)
8140    with_gnu_ld=yes
8141    ;;
8142  openbsd*)
8143    with_gnu_ld=no
8144    ;;
8145  esac
8146
8147  ld_shlibs=yes
8148  if test "$with_gnu_ld" = yes; then
8149    # If archive_cmds runs LD, not CC, wlarc should be empty
8150    wlarc='${wl}'
8151
8152    # Set some defaults for GNU ld with shared library support. These
8153    # are reset later if shared libraries are not supported. Putting them
8154    # here allows them to be overridden if necessary.
8155    runpath_var=LD_RUN_PATH
8156    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8157    export_dynamic_flag_spec='${wl}--export-dynamic'
8158    # ancient GNU ld didn't support --whole-archive et. al.
8159    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8160        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8161      else
8162        whole_archive_flag_spec=
8163    fi
8164    supports_anon_versioning=no
8165    case `$LD -v 2>/dev/null` in
8166      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8167      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8168      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8169      *\ 2.11.*) ;; # other 2.11 versions
8170      *) supports_anon_versioning=yes ;;
8171    esac
8172
8173    # See if GNU ld supports shared libraries.
8174    case $host_os in
8175    aix3* | aix4* | aix5*)
8176      # On AIX/PPC, the GNU linker is very broken
8177      if test "$host_cpu" != ia64; then
8178        ld_shlibs=no
8179        cat <<EOF 1>&2
8180
8181*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8182*** to be unable to reliably create shared libraries on AIX.
8183*** Therefore, libtool is disabling shared libraries support.  If you
8184*** really care for shared libraries, you may want to modify your PATH
8185*** so that a non-GNU linker is found, and then restart.
8186
8187EOF
8188      fi
8189      ;;
8190
8191    amigaos*)
8192      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)'
8193      hardcode_libdir_flag_spec='-L$libdir'
8194      hardcode_minus_L=yes
8195
8196      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8197      # that the semantics of dynamic libraries on AmigaOS, at least up
8198      # to version 4, is to share data among multiple programs linked
8199      # with the same dynamic library.  Since this doesn't match the
8200      # behavior of shared libraries on other platforms, we can't use
8201      # them.
8202      ld_shlibs=no
8203      ;;
8204
8205    beos*)
8206      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8207        allow_undefined_flag=unsupported
8208        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8209        # support --undefined.  This deserves some investigation.  FIXME
8210        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8211      else
8212        ld_shlibs=no
8213      fi
8214      ;;
8215
8216    cygwin* | mingw* | pw32*)
8217      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8218      # as there is no search path for DLLs.
8219      hardcode_libdir_flag_spec='-L$libdir'
8220      allow_undefined_flag=unsupported
8221      always_export_symbols=no
8222      enable_shared_with_static_runtimes=yes
8223      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8224
8225      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8226        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8227        # If the export-symbols file already is a .def file (1st line
8228        # is EXPORTS), use it as is; otherwise, prepend...
8229        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8230          cp $export_symbols $output_objdir/$soname.def;
8231        else
8232          echo EXPORTS > $output_objdir/$soname.def;
8233          cat $export_symbols >> $output_objdir/$soname.def;
8234        fi~
8235        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8236      else
8237        ld_shlibs=no
8238      fi
8239      ;;
8240
8241    interix3*)
8242      hardcode_direct=no
8243      hardcode_shlibpath_var=no
8244      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8245      export_dynamic_flag_spec='${wl}-E'
8246      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8247      # Instead, shared libraries are loaded at an image base (0x10000000 by
8248      # default) and relocated if they conflict, which is a slow very memory
8249      # consuming and fragmenting process.  To avoid this, we pick a random,
8250      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8251      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8252      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8253      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'
8254      ;;
8255
8256    linux*)
8257      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258        tmp_addflag=
8259        case $cc_basename,$host_cpu in
8260        pgcc*)                          # Portland Group C compiler
8261          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'
8262          tmp_addflag=' $pic_flag'
8263          ;;
8264        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8265          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'
8266          tmp_addflag=' $pic_flag -Mnomain' ;;
8267        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8268          tmp_addflag=' -i_dynamic' ;;
8269        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8270          tmp_addflag=' -i_dynamic -nofor_main' ;;
8271        ifc* | ifort*)                  # Intel Fortran compiler
8272          tmp_addflag=' -nofor_main' ;;
8273        esac
8274        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275
8276        if test $supports_anon_versioning = yes; then
8277          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8278  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8279  $echo "local: *; };" >> $output_objdir/$libname.ver~
8280          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8281        fi
8282      else
8283        ld_shlibs=no
8284      fi
8285      ;;
8286
8287    netbsd*)
8288      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8289        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8290        wlarc=
8291      else
8292        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8293        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8294      fi
8295      ;;
8296
8297    solaris*)
8298      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8299        ld_shlibs=no
8300        cat <<EOF 1>&2
8301
8302*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8303*** create shared libraries on Solaris systems.  Therefore, libtool
8304*** is disabling shared libraries support.  We urge you to upgrade GNU
8305*** binutils to release 2.9.1 or newer.  Another option is to modify
8306*** your PATH or compiler configuration so that the native linker is
8307*** used, and then restart.
8308
8309EOF
8310      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8311        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8313      else
8314        ld_shlibs=no
8315      fi
8316      ;;
8317
8318    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8319      case `$LD -v 2>&1` in
8320        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8321        ld_shlibs=no
8322        cat <<_LT_EOF 1>&2
8323
8324*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8325*** reliably create shared libraries on SCO systems.  Therefore, libtool
8326*** is disabling shared libraries support.  We urge you to upgrade GNU
8327*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8328*** your PATH or compiler configuration so that the native linker is
8329*** used, and then restart.
8330
8331_LT_EOF
8332        ;;
8333        *)
8334          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8335            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8336            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8337            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8338          else
8339            ld_shlibs=no
8340          fi
8341        ;;
8342      esac
8343      ;;
8344
8345    sunos4*)
8346      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8347      wlarc=
8348      hardcode_direct=yes
8349      hardcode_shlibpath_var=no
8350      ;;
8351
8352    *)
8353      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8354        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8355        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8356      else
8357        ld_shlibs=no
8358      fi
8359      ;;
8360    esac
8361
8362    if test "$ld_shlibs" = no; then
8363      runpath_var=
8364      hardcode_libdir_flag_spec=
8365      export_dynamic_flag_spec=
8366      whole_archive_flag_spec=
8367    fi
8368  else
8369    # PORTME fill in a description of your system's linker (not GNU ld)
8370    case $host_os in
8371    aix3*)
8372      allow_undefined_flag=unsupported
8373      always_export_symbols=yes
8374      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'
8375      # Note: this linker hardcodes the directories in LIBPATH if there
8376      # are no directories specified by -L.
8377      hardcode_minus_L=yes
8378      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8379        # Neither direct hardcoding nor static linking is supported with a
8380        # broken collect2.
8381        hardcode_direct=unsupported
8382      fi
8383      ;;
8384
8385    aix4* | aix5*)
8386      if test "$host_cpu" = ia64; then
8387        # On IA64, the linker does run time linking by default, so we don't
8388        # have to do anything special.
8389        aix_use_runtimelinking=no
8390        exp_sym_flag='-Bexport'
8391        no_entry_flag=""
8392      else
8393        # If we're using GNU nm, then we don't want the "-C" option.
8394        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8395        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8396          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'
8397        else
8398          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'
8399        fi
8400        aix_use_runtimelinking=no
8401
8402        # Test if we are trying to use run time linking or normal
8403        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8404        # need to do runtime linking.
8405        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8406          for ld_flag in $LDFLAGS; do
8407          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8408            aix_use_runtimelinking=yes
8409            break
8410          fi
8411          done
8412          ;;
8413        esac
8414
8415        exp_sym_flag='-bexport'
8416        no_entry_flag='-bnoentry'
8417      fi
8418
8419      # When large executables or shared objects are built, AIX ld can
8420      # have problems creating the table of contents.  If linking a library
8421      # or program results in "error TOC overflow" add -mminimal-toc to
8422      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8423      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8424
8425      archive_cmds=''
8426      hardcode_direct=yes
8427      hardcode_libdir_separator=':'
8428      link_all_deplibs=yes
8429
8430      if test "$GCC" = yes; then
8431        case $host_os in aix4.[012]|aix4.[012].*)
8432        # We only want to do this on AIX 4.2 and lower, the check
8433        # below for broken collect2 doesn't work under 4.3+
8434          collect2name=`${CC} -print-prog-name=collect2`
8435          if test -f "$collect2name" && \
8436           strings "$collect2name" | grep resolve_lib_name >/dev/null
8437          then
8438          # We have reworked collect2
8439          hardcode_direct=yes
8440          else
8441          # We have old collect2
8442          hardcode_direct=unsupported
8443          # It fails to find uninstalled libraries when the uninstalled
8444          # path is not listed in the libpath.  Setting hardcode_minus_L
8445          # to unsupported forces relinking
8446          hardcode_minus_L=yes
8447          hardcode_libdir_flag_spec='-L$libdir'
8448          hardcode_libdir_separator=
8449          fi
8450          ;;
8451        esac
8452        shared_flag='-shared'
8453        if test "$aix_use_runtimelinking" = yes; then
8454          shared_flag="$shared_flag "'${wl}-G'
8455        fi
8456      else
8457        # not using gcc
8458        if test "$host_cpu" = ia64; then
8459        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8460        # chokes on -Wl,-G. The following line is correct:
8461          shared_flag='-G'
8462        else
8463          if test "$aix_use_runtimelinking" = yes; then
8464            shared_flag='${wl}-G'
8465          else
8466            shared_flag='${wl}-bM:SRE'
8467          fi
8468        fi
8469      fi
8470
8471      # It seems that -bexpall does not export symbols beginning with
8472      # underscore (_), so it is better to generate a list of symbols to export.
8473      always_export_symbols=yes
8474      if test "$aix_use_runtimelinking" = yes; then
8475        # Warning - without using the other runtime loading flags (-brtl),
8476        # -berok will link without error, but may produce a broken library.
8477        allow_undefined_flag='-berok'
8478       # Determine the default libpath from the value encoded in an empty executable.
8479       cat >conftest.$ac_ext <<_ACEOF
8480/* confdefs.h.  */
8481_ACEOF
8482cat confdefs.h >>conftest.$ac_ext
8483cat >>conftest.$ac_ext <<_ACEOF
8484/* end confdefs.h.  */
8485
8486int
8487main ()
8488{
8489
8490  ;
8491  return 0;
8492}
8493_ACEOF
8494rm -f conftest.$ac_objext conftest$ac_exeext
8495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496  (eval $ac_link) 2>conftest.er1
8497  ac_status=$?
8498  grep -v '^ *+' conftest.er1 >conftest.err
8499  rm -f conftest.er1
8500  cat conftest.err >&5
8501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502  (exit $ac_status); } &&
8503         { ac_try='test -z "$ac_c_werror_flag"
8504                         || test ! -s conftest.err'
8505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506  (eval $ac_try) 2>&5
8507  ac_status=$?
8508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509  (exit $ac_status); }; } &&
8510         { ac_try='test -s conftest$ac_exeext'
8511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512  (eval $ac_try) 2>&5
8513  ac_status=$?
8514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515  (exit $ac_status); }; }; then
8516
8517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8518}'`
8519# Check for a 64-bit object if we didn't find anything.
8520if 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; }
8521}'`; fi
8522else
8523  echo "$as_me: failed program was:" >&5
8524sed 's/^/| /' conftest.$ac_ext >&5
8525
8526fi
8527rm -f conftest.err conftest.$ac_objext \
8528      conftest$ac_exeext conftest.$ac_ext
8529if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8530
8531       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8532        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"
8533       else
8534        if test "$host_cpu" = ia64; then
8535          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8536          allow_undefined_flag="-z nodefs"
8537          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"
8538        else
8539         # Determine the default libpath from the value encoded in an empty executable.
8540         cat >conftest.$ac_ext <<_ACEOF
8541/* confdefs.h.  */
8542_ACEOF
8543cat confdefs.h >>conftest.$ac_ext
8544cat >>conftest.$ac_ext <<_ACEOF
8545/* end confdefs.h.  */
8546
8547int
8548main ()
8549{
8550
8551  ;
8552  return 0;
8553}
8554_ACEOF
8555rm -f conftest.$ac_objext conftest$ac_exeext
8556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8557  (eval $ac_link) 2>conftest.er1
8558  ac_status=$?
8559  grep -v '^ *+' conftest.er1 >conftest.err
8560  rm -f conftest.er1
8561  cat conftest.err >&5
8562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563  (exit $ac_status); } &&
8564         { ac_try='test -z "$ac_c_werror_flag"
8565                         || test ! -s conftest.err'
8566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567  (eval $ac_try) 2>&5
8568  ac_status=$?
8569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570  (exit $ac_status); }; } &&
8571         { ac_try='test -s conftest$ac_exeext'
8572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573  (eval $ac_try) 2>&5
8574  ac_status=$?
8575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576  (exit $ac_status); }; }; then
8577
8578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8579}'`
8580# Check for a 64-bit object if we didn't find anything.
8581if 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; }
8582}'`; fi
8583else
8584  echo "$as_me: failed program was:" >&5
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
8587fi
8588rm -f conftest.err conftest.$ac_objext \
8589      conftest$ac_exeext conftest.$ac_ext
8590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8591
8592         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8593          # Warning - without using the other run time loading flags,
8594          # -berok will link without error, but may produce a broken library.
8595          no_undefined_flag=' ${wl}-bernotok'
8596          allow_undefined_flag=' ${wl}-berok'
8597          # Exported symbols can be pulled into shared objects from archives
8598          whole_archive_flag_spec='$convenience'
8599          archive_cmds_need_lc=yes
8600          # This is similar to how AIX traditionally builds its shared libraries.
8601          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'
8602        fi
8603      fi
8604      ;;
8605
8606    amigaos*)
8607      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)'
8608      hardcode_libdir_flag_spec='-L$libdir'
8609      hardcode_minus_L=yes
8610      # see comment about different semantics on the GNU ld section
8611      ld_shlibs=no
8612      ;;
8613
8614    bsdi[45]*)
8615      export_dynamic_flag_spec=-rdynamic
8616      ;;
8617
8618    cygwin* | mingw* | pw32*)
8619      # When not using gcc, we currently assume that we are using
8620      # Microsoft Visual C++.
8621      # hardcode_libdir_flag_spec is actually meaningless, as there is
8622      # no search path for DLLs.
8623      hardcode_libdir_flag_spec=' '
8624      allow_undefined_flag=unsupported
8625      # Tell ltmain to make .lib files, not .a files.
8626      libext=lib
8627      # Tell ltmain to make .dll files, not .so files.
8628      shrext_cmds=".dll"
8629      # FIXME: Setting linknames here is a bad hack.
8630      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8631      # The linker will automatically build a .lib file if we build a DLL.
8632      old_archive_From_new_cmds='true'
8633      # FIXME: Should let the user specify the lib program.
8634      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8635      fix_srcfile_path='`cygpath -w "$srcfile"`'
8636      enable_shared_with_static_runtimes=yes
8637      ;;
8638
8639    darwin* | rhapsody*)
8640      case $host_os in
8641        rhapsody* | darwin1.[012])
8642         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8643         ;;
8644       *) # Darwin 1.3 on
8645         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8646           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8647         else
8648           case ${MACOSX_DEPLOYMENT_TARGET} in
8649             10.[012])
8650               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8651               ;;
8652             10.*)
8653               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8654               ;;
8655           esac
8656         fi
8657         ;;
8658      esac
8659      archive_cmds_need_lc=no
8660      hardcode_direct=no
8661      hardcode_automatic=yes
8662      hardcode_shlibpath_var=unsupported
8663      whole_archive_flag_spec=''
8664      link_all_deplibs=yes
8665    if test "$GCC" = yes ; then
8666        output_verbose_link_cmd='echo'
8667        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8668      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8669      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8670      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}'
8671      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}'
8672    else
8673      case $cc_basename in
8674        xlc*)
8675         output_verbose_link_cmd='echo'
8676         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8677         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8678          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8679         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}'
8680          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}'
8681          ;;
8682       *)
8683         ld_shlibs=no
8684          ;;
8685      esac
8686    fi
8687      ;;
8688
8689    dgux*)
8690      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8691      hardcode_libdir_flag_spec='-L$libdir'
8692      hardcode_shlibpath_var=no
8693      ;;
8694
8695    freebsd1*)
8696      ld_shlibs=no
8697      ;;
8698
8699    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8700    # support.  Future versions do this automatically, but an explicit c++rt0.o
8701    # does not break anything, and helps significantly (at the cost of a little
8702    # extra space).
8703    freebsd2.2*)
8704      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8705      hardcode_libdir_flag_spec='-R$libdir'
8706      hardcode_direct=yes
8707      hardcode_shlibpath_var=no
8708      ;;
8709
8710    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8711    freebsd2*)
8712      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8713      hardcode_direct=yes
8714      hardcode_minus_L=yes
8715      hardcode_shlibpath_var=no
8716      ;;
8717
8718    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8719    freebsd* | kfreebsd*-gnu | dragonfly*)
8720      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8721      hardcode_libdir_flag_spec='-R$libdir'
8722      hardcode_direct=yes
8723      hardcode_shlibpath_var=no
8724      ;;
8725
8726    hpux9*)
8727      if test "$GCC" = yes; then
8728        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'
8729      else
8730        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'
8731      fi
8732      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8733      hardcode_libdir_separator=:
8734      hardcode_direct=yes
8735
8736      # hardcode_minus_L: Not really in the search PATH,
8737      # but as the default location of the library.
8738      hardcode_minus_L=yes
8739      export_dynamic_flag_spec='${wl}-E'
8740      ;;
8741
8742    hpux10*)
8743      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8744        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8745      else
8746        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8747      fi
8748      if test "$with_gnu_ld" = no; then
8749        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8750        hardcode_libdir_separator=:
8751
8752        hardcode_direct=yes
8753        export_dynamic_flag_spec='${wl}-E'
8754
8755        # hardcode_minus_L: Not really in the search PATH,
8756        # but as the default location of the library.
8757        hardcode_minus_L=yes
8758      fi
8759      ;;
8760
8761    hpux11*)
8762      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8763        case $host_cpu in
8764        hppa*64*)
8765          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8766          ;;
8767        ia64*)
8768          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8769          ;;
8770        *)
8771          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8772          ;;
8773        esac
8774      else
8775        case $host_cpu in
8776        hppa*64*)
8777          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8778          ;;
8779        ia64*)
8780          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8781          ;;
8782        *)
8783          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8784          ;;
8785        esac
8786      fi
8787      if test "$with_gnu_ld" = no; then
8788        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8789        hardcode_libdir_separator=:
8790
8791        case $host_cpu in
8792        hppa*64*|ia64*)
8793          hardcode_libdir_flag_spec_ld='+b $libdir'
8794          hardcode_direct=no
8795          hardcode_shlibpath_var=no
8796          ;;
8797        *)
8798          hardcode_direct=yes
8799          export_dynamic_flag_spec='${wl}-E'
8800
8801          # hardcode_minus_L: Not really in the search PATH,
8802          # but as the default location of the library.
8803          hardcode_minus_L=yes
8804          ;;
8805        esac
8806      fi
8807      ;;
8808
8809    irix5* | irix6* | nonstopux*)
8810      if test "$GCC" = yes; then
8811        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'
8812      else
8813        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'
8814        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8815      fi
8816      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8817      hardcode_libdir_separator=:
8818      link_all_deplibs=yes
8819      ;;
8820
8821    netbsd*)
8822      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8823        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8824      else
8825        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8826      fi
8827      hardcode_libdir_flag_spec='-R$libdir'
8828      hardcode_direct=yes
8829      hardcode_shlibpath_var=no
8830      ;;
8831
8832    newsos6)
8833      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8834      hardcode_direct=yes
8835      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8836      hardcode_libdir_separator=:
8837      hardcode_shlibpath_var=no
8838      ;;
8839
8840    openbsd*)
8841      hardcode_direct=yes
8842      hardcode_shlibpath_var=no
8843      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8844        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8845        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8846        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8847        export_dynamic_flag_spec='${wl}-E'
8848      else
8849       case $host_os in
8850         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8851           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8852           hardcode_libdir_flag_spec='-R$libdir'
8853           ;;
8854         *)
8855           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8856           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8857           ;;
8858       esac
8859      fi
8860      ;;
8861
8862    os2*)
8863      hardcode_libdir_flag_spec='-L$libdir'
8864      hardcode_minus_L=yes
8865      allow_undefined_flag=unsupported
8866      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'
8867      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8868      ;;
8869
8870    osf3*)
8871      if test "$GCC" = yes; then
8872        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8873        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'
8874      else
8875        allow_undefined_flag=' -expect_unresolved \*'
8876        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'
8877      fi
8878      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8879      hardcode_libdir_separator=:
8880      ;;
8881
8882    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8883      if test "$GCC" = yes; then
8884        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8885        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'
8886        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8887      else
8888        allow_undefined_flag=' -expect_unresolved \*'
8889        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'
8890        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8891        $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'
8892
8893        # Both c and cxx compiler support -rpath directly
8894        hardcode_libdir_flag_spec='-rpath $libdir'
8895      fi
8896      hardcode_libdir_separator=:
8897      ;;
8898
8899    solaris*)
8900      no_undefined_flag=' -z text'
8901      if test "$GCC" = yes; then
8902        wlarc='${wl}'
8903        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8904        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8905          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8906      else
8907        wlarc=''
8908        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8909        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8910        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8911      fi
8912      hardcode_libdir_flag_spec='-R$libdir'
8913      hardcode_shlibpath_var=no
8914      case $host_os in
8915      solaris2.[0-5] | solaris2.[0-5].*) ;;
8916      *)
8917        # The compiler driver will combine linker options so we
8918        # cannot just pass the convience library names through
8919        # without $wl, iff we do not link with $LD.
8920        # Luckily, gcc supports the same syntax we need for Sun Studio.
8921        # Supported since Solaris 2.6 (maybe 2.5.1?)
8922        case $wlarc in
8923        '')
8924          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8925        *)
8926          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' ;;
8927        esac ;;
8928      esac
8929      link_all_deplibs=yes
8930      ;;
8931
8932    sunos4*)
8933      if test "x$host_vendor" = xsequent; then
8934        # Use $CC to link under sequent, because it throws in some extra .o
8935        # files that make .init and .fini sections work.
8936        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8937      else
8938        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8939      fi
8940      hardcode_libdir_flag_spec='-L$libdir'
8941      hardcode_direct=yes
8942      hardcode_minus_L=yes
8943      hardcode_shlibpath_var=no
8944      ;;
8945
8946    sysv4)
8947      case $host_vendor in
8948        sni)
8949          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950          hardcode_direct=yes # is this really true???
8951        ;;
8952        siemens)
8953          ## LD is ld it makes a PLAMLIB
8954          ## CC just makes a GrossModule.
8955          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8956          reload_cmds='$CC -r -o $output$reload_objs'
8957          hardcode_direct=no
8958        ;;
8959        motorola)
8960          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8961          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8962        ;;
8963      esac
8964      runpath_var='LD_RUN_PATH'
8965      hardcode_shlibpath_var=no
8966      ;;
8967
8968    sysv4.3*)
8969      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8970      hardcode_shlibpath_var=no
8971      export_dynamic_flag_spec='-Bexport'
8972      ;;
8973
8974    sysv4*MP*)
8975      if test -d /usr/nec; then
8976        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8977        hardcode_shlibpath_var=no
8978        runpath_var=LD_RUN_PATH
8979        hardcode_runpath_var=yes
8980        ld_shlibs=yes
8981      fi
8982      ;;
8983
8984    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8985      no_undefined_flag='${wl}-z,text'
8986      archive_cmds_need_lc=no
8987      hardcode_shlibpath_var=no
8988      runpath_var='LD_RUN_PATH'
8989
8990      if test "$GCC" = yes; then
8991        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8992        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8993      else
8994        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8995        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8996      fi
8997      ;;
8998
8999    sysv5* | sco3.2v5* | sco5v6*)
9000      # Note: We can NOT use -z defs as we might desire, because we do not
9001      # link with -lc, and that would cause any symbols used from libc to
9002      # always be unresolved, which means just about no library would
9003      # ever link correctly.  If we're not using GNU ld we use -z text
9004      # though, which does catch some bad symbols but isn't as heavy-handed
9005      # as -z defs.
9006      no_undefined_flag='${wl}-z,text'
9007      allow_undefined_flag='${wl}-z,nodefs'
9008      archive_cmds_need_lc=no
9009      hardcode_shlibpath_var=no
9010      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9011      hardcode_libdir_separator=':'
9012      link_all_deplibs=yes
9013      export_dynamic_flag_spec='${wl}-Bexport'
9014      runpath_var='LD_RUN_PATH'
9015
9016      if test "$GCC" = yes; then
9017        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9018        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9019      else
9020        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9021        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9022      fi
9023      ;;
9024
9025    uts4*)
9026      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9027      hardcode_libdir_flag_spec='-L$libdir'
9028      hardcode_shlibpath_var=no
9029      ;;
9030
9031    *)
9032      ld_shlibs=no
9033      ;;
9034    esac
9035  fi
9036
9037echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9038echo "${ECHO_T}$ld_shlibs" >&6
9039test "$ld_shlibs" = no && can_build_shared=no
9040
9041#
9042# Do we need to explicitly link libc?
9043#
9044case "x$archive_cmds_need_lc" in
9045x|xyes)
9046  # Assume -lc should be added
9047  archive_cmds_need_lc=yes
9048
9049  if test "$enable_shared" = yes && test "$GCC" = yes; then
9050    case $archive_cmds in
9051    *'~'*)
9052      # FIXME: we may have to deal with multi-command sequences.
9053      ;;
9054    '$CC '*)
9055      # Test whether the compiler implicitly links with -lc since on some
9056      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9057      # to ld, don't add -lc before -lgcc.
9058      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9059echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9060      $rm conftest*
9061      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9062
9063      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064  (eval $ac_compile) 2>&5
9065  ac_status=$?
9066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067  (exit $ac_status); } 2>conftest.err; then
9068        soname=conftest
9069        lib=conftest
9070        libobjs=conftest.$ac_objext
9071        deplibs=
9072        wl=$lt_prog_compiler_wl
9073        pic_flag=$lt_prog_compiler_pic
9074        compiler_flags=-v
9075        linker_flags=-v
9076        verstring=
9077        output_objdir=.
9078        libname=conftest
9079        lt_save_allow_undefined_flag=$allow_undefined_flag
9080        allow_undefined_flag=
9081        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9082  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9083  ac_status=$?
9084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085  (exit $ac_status); }
9086        then
9087          archive_cmds_need_lc=no
9088        else
9089          archive_cmds_need_lc=yes
9090        fi
9091        allow_undefined_flag=$lt_save_allow_undefined_flag
9092      else
9093        cat conftest.err 1>&5
9094      fi
9095      $rm conftest*
9096      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9097echo "${ECHO_T}$archive_cmds_need_lc" >&6
9098      ;;
9099    esac
9100  fi
9101  ;;
9102esac
9103
9104echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9105echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9106library_names_spec=
9107libname_spec='lib$name'
9108soname_spec=
9109shrext_cmds=".so"
9110postinstall_cmds=
9111postuninstall_cmds=
9112finish_cmds=
9113finish_eval=
9114shlibpath_var=
9115shlibpath_overrides_runpath=unknown
9116version_type=none
9117dynamic_linker="$host_os ld.so"
9118sys_lib_dlsearch_path_spec="/lib /usr/lib"
9119if test "$GCC" = yes; then
9120  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9121  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9122    # if the path contains ";" then we assume it to be the separator
9123    # otherwise default to the standard path separator (i.e. ":") - it is
9124    # assumed that no part of a normal pathname contains ";" but that should
9125    # okay in the real world where ";" in dirpaths is itself problematic.
9126    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9127  else
9128    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9129  fi
9130else
9131  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9132fi
9133need_lib_prefix=unknown
9134hardcode_into_libs=no
9135
9136# when you set need_version to no, make sure it does not cause -set_version
9137# flags to be left without arguments
9138need_version=unknown
9139
9140case $host_os in
9141aix3*)
9142  version_type=linux
9143  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9144  shlibpath_var=LIBPATH
9145
9146  # AIX 3 has no versioning support, so we append a major version to the name.
9147  soname_spec='${libname}${release}${shared_ext}$major'
9148  ;;
9149
9150aix4* | aix5*)
9151  version_type=linux
9152  need_lib_prefix=no
9153  need_version=no
9154  hardcode_into_libs=yes
9155  if test "$host_cpu" = ia64; then
9156    # AIX 5 supports IA64
9157    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9158    shlibpath_var=LD_LIBRARY_PATH
9159  else
9160    # With GCC up to 2.95.x, collect2 would create an import file
9161    # for dependence libraries.  The import file would start with
9162    # the line `#! .'.  This would cause the generated library to
9163    # depend on `.', always an invalid library.  This was fixed in
9164    # development snapshots of GCC prior to 3.0.
9165    case $host_os in
9166      aix4 | aix4.[01] | aix4.[01].*)
9167      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9168           echo ' yes '
9169           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9170        :
9171      else
9172        can_build_shared=no
9173      fi
9174      ;;
9175    esac
9176    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9177    # soname into executable. Probably we can add versioning support to
9178    # collect2, so additional links can be useful in future.
9179    if test "$aix_use_runtimelinking" = yes; then
9180      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9181      # instead of lib<name>.a to let people know that these are not
9182      # typical AIX shared libraries.
9183      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9184    else
9185      # We preserve .a as extension for shared libraries through AIX4.2
9186      # and later when we are not doing run time linking.
9187      library_names_spec='${libname}${release}.a $libname.a'
9188      soname_spec='${libname}${release}${shared_ext}$major'
9189    fi
9190    shlibpath_var=LIBPATH
9191  fi
9192  ;;
9193
9194amigaos*)
9195  library_names_spec='$libname.ixlibrary $libname.a'
9196  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9197  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'
9198  ;;
9199
9200beos*)
9201  library_names_spec='${libname}${shared_ext}'
9202  dynamic_linker="$host_os ld.so"
9203  shlibpath_var=LIBRARY_PATH
9204  ;;
9205
9206bsdi[45]*)
9207  version_type=linux
9208  need_version=no
9209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210  soname_spec='${libname}${release}${shared_ext}$major'
9211  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9212  shlibpath_var=LD_LIBRARY_PATH
9213  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9214  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9215  # the default ld.so.conf also contains /usr/contrib/lib and
9216  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9217  # libtool to hard-code these into programs
9218  ;;
9219
9220cygwin* | mingw* | pw32*)
9221  version_type=windows
9222  shrext_cmds=".dll"
9223  need_version=no
9224  need_lib_prefix=no
9225
9226  case $GCC,$host_os in
9227  yes,cygwin* | yes,mingw* | yes,pw32*)
9228    library_names_spec='$libname.dll.a'
9229    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9230    postinstall_cmds='base_file=`basename \${file}`~
9231      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9232      dldir=$destdir/`dirname \$dlpath`~
9233      test -d \$dldir || mkdir -p \$dldir~
9234      $install_prog $dir/$dlname \$dldir/$dlname~
9235      chmod a+x \$dldir/$dlname'
9236    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9237      dlpath=$dir/\$dldll~
9238       $rm \$dlpath'
9239    shlibpath_overrides_runpath=yes
9240
9241    case $host_os in
9242    cygwin*)
9243      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9244      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9245      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9246      ;;
9247    mingw*)
9248      # MinGW DLLs use traditional 'lib' prefix
9249      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9250      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9251      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9252        # It is most probably a Windows format PATH printed by
9253        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9254        # path with ; separators, and with drive letters. We can handle the
9255        # drive letters (cygwin fileutils understands them), so leave them,
9256        # especially as we might pass files found there to a mingw objdump,
9257        # which wouldn't understand a cygwinified path. Ahh.
9258        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9259      else
9260        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9261      fi
9262      ;;
9263    pw32*)
9264      # pw32 DLLs use 'pw' prefix rather than 'lib'
9265      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9266      ;;
9267    esac
9268    ;;
9269
9270  *)
9271    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9272    ;;
9273  esac
9274  dynamic_linker='Win32 ld.exe'
9275  # FIXME: first we should search . and the directory the executable is in
9276  shlibpath_var=PATH
9277  ;;
9278
9279darwin* | rhapsody*)
9280  dynamic_linker="$host_os dyld"
9281  version_type=darwin
9282  need_lib_prefix=no
9283  need_version=no
9284  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9285  soname_spec='${libname}${release}${major}$shared_ext'
9286  shlibpath_overrides_runpath=yes
9287  shlibpath_var=DYLD_LIBRARY_PATH
9288  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9289  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9290  if test "$GCC" = yes; then
9291    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"`
9292  else
9293    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9294  fi
9295  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9296  ;;
9297
9298dgux*)
9299  version_type=linux
9300  need_lib_prefix=no
9301  need_version=no
9302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9303  soname_spec='${libname}${release}${shared_ext}$major'
9304  shlibpath_var=LD_LIBRARY_PATH
9305  ;;
9306
9307freebsd1*)
9308  dynamic_linker=no
9309  ;;
9310
9311kfreebsd*-gnu)
9312  version_type=linux
9313  need_lib_prefix=no
9314  need_version=no
9315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9316  soname_spec='${libname}${release}${shared_ext}$major'
9317  shlibpath_var=LD_LIBRARY_PATH
9318  shlibpath_overrides_runpath=no
9319  hardcode_into_libs=yes
9320  dynamic_linker='GNU ld.so'
9321  ;;
9322
9323freebsd* | dragonfly*)
9324  # DragonFly does not have aout.  When/if they implement a new
9325  # versioning mechanism, adjust this.
9326  if test -x /usr/bin/objformat; then
9327    objformat=`/usr/bin/objformat`
9328  else
9329    case $host_os in
9330    freebsd[123]*) objformat=aout ;;
9331    *) objformat=elf ;;
9332    esac
9333  fi
9334  version_type=freebsd-$objformat
9335  case $version_type in
9336    freebsd-elf*)
9337      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9338      need_version=no
9339      need_lib_prefix=no
9340      ;;
9341    freebsd-*)
9342      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9343      need_version=yes
9344      ;;
9345  esac
9346  shlibpath_var=LD_LIBRARY_PATH
9347  case $host_os in
9348  freebsd2*)
9349    shlibpath_overrides_runpath=yes
9350    ;;
9351  freebsd3.[01]* | freebsdelf3.[01]*)
9352    shlibpath_overrides_runpath=yes
9353    hardcode_into_libs=yes
9354    ;;
9355  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9356  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9357    shlibpath_overrides_runpath=no
9358    hardcode_into_libs=yes
9359    ;;
9360  freebsd*) # from 4.6 on
9361    shlibpath_overrides_runpath=yes
9362    hardcode_into_libs=yes
9363    ;;
9364  esac
9365  ;;
9366
9367gnu*)
9368  version_type=linux
9369  need_lib_prefix=no
9370  need_version=no
9371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9372  soname_spec='${libname}${release}${shared_ext}$major'
9373  shlibpath_var=LD_LIBRARY_PATH
9374  hardcode_into_libs=yes
9375  ;;
9376
9377hpux9* | hpux10* | hpux11*)
9378  # Give a soname corresponding to the major version so that dld.sl refuses to
9379  # link against other versions.
9380  version_type=sunos
9381  need_lib_prefix=no
9382  need_version=no
9383  case $host_cpu in
9384  ia64*)
9385    shrext_cmds='.so'
9386    hardcode_into_libs=yes
9387    dynamic_linker="$host_os dld.so"
9388    shlibpath_var=LD_LIBRARY_PATH
9389    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9390    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391    soname_spec='${libname}${release}${shared_ext}$major'
9392    if test "X$HPUX_IA64_MODE" = X32; then
9393      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9394    else
9395      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9396    fi
9397    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9398    ;;
9399   hppa*64*)
9400     shrext_cmds='.sl'
9401     hardcode_into_libs=yes
9402     dynamic_linker="$host_os dld.sl"
9403     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9404     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9406     soname_spec='${libname}${release}${shared_ext}$major'
9407     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9408     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9409     ;;
9410   *)
9411    shrext_cmds='.sl'
9412    dynamic_linker="$host_os dld.sl"
9413    shlibpath_var=SHLIB_PATH
9414    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416    soname_spec='${libname}${release}${shared_ext}$major'
9417    ;;
9418  esac
9419  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9420  postinstall_cmds='chmod 555 $lib'
9421  ;;
9422
9423interix3*)
9424  version_type=linux
9425  need_lib_prefix=no
9426  need_version=no
9427  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9428  soname_spec='${libname}${release}${shared_ext}$major'
9429  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9430  shlibpath_var=LD_LIBRARY_PATH
9431  shlibpath_overrides_runpath=no
9432  hardcode_into_libs=yes
9433  ;;
9434
9435irix5* | irix6* | nonstopux*)
9436  case $host_os in
9437    nonstopux*) version_type=nonstopux ;;
9438    *)
9439        if test "$lt_cv_prog_gnu_ld" = yes; then
9440                version_type=linux
9441        else
9442                version_type=irix
9443        fi ;;
9444  esac
9445  need_lib_prefix=no
9446  need_version=no
9447  soname_spec='${libname}${release}${shared_ext}$major'
9448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9449  case $host_os in
9450  irix5* | nonstopux*)
9451    libsuff= shlibsuff=
9452    ;;
9453  *)
9454    case $LD in # libtool.m4 will add one of these switches to LD
9455    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9456      libsuff= shlibsuff= libmagic=32-bit;;
9457    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9458      libsuff=32 shlibsuff=N32 libmagic=N32;;
9459    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9460      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9461    *) libsuff= shlibsuff= libmagic=never-match;;
9462    esac
9463    ;;
9464  esac
9465  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9466  shlibpath_overrides_runpath=no
9467  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9468  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9469  hardcode_into_libs=yes
9470  ;;
9471
9472# No shared lib support for Linux oldld, aout, or coff.
9473linux*oldld* | linux*aout* | linux*coff*)
9474  dynamic_linker=no
9475  ;;
9476
9477# This must be Linux ELF.
9478linux*)
9479  version_type=linux
9480  need_lib_prefix=no
9481  need_version=no
9482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483  soname_spec='${libname}${release}${shared_ext}$major'
9484  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9485  shlibpath_var=LD_LIBRARY_PATH
9486  shlibpath_overrides_runpath=no
9487  # This implies no fast_install, which is unacceptable.
9488  # Some rework will be needed to allow for fast_install
9489  # before this can be enabled.
9490  hardcode_into_libs=yes
9491
9492  # Append ld.so.conf contents to the search path
9493  if test -f /etc/ld.so.conf; then
9494    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' ' '`
9495    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9496  fi
9497
9498  # We used to test for /lib/ld.so.1 and disable shared libraries on
9499  # powerpc, because MkLinux only supported shared libraries with the
9500  # GNU dynamic linker.  Since this was broken with cross compilers,
9501  # most powerpc-linux boxes support dynamic linking these days and
9502  # people can always --disable-shared, the test was removed, and we
9503  # assume the GNU/Linux dynamic linker is in use.
9504  dynamic_linker='GNU/Linux ld.so'
9505  ;;
9506
9507knetbsd*-gnu)
9508  version_type=linux
9509  need_lib_prefix=no
9510  need_version=no
9511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9512  soname_spec='${libname}${release}${shared_ext}$major'
9513  shlibpath_var=LD_LIBRARY_PATH
9514  shlibpath_overrides_runpath=no
9515  hardcode_into_libs=yes
9516  dynamic_linker='GNU ld.so'
9517  ;;
9518
9519netbsd*)
9520  version_type=sunos
9521  need_lib_prefix=no
9522  need_version=no
9523  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9524    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9525    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9526    dynamic_linker='NetBSD (a.out) ld.so'
9527  else
9528    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9529    soname_spec='${libname}${release}${shared_ext}$major'
9530    dynamic_linker='NetBSD ld.elf_so'
9531  fi
9532  shlibpath_var=LD_LIBRARY_PATH
9533  shlibpath_overrides_runpath=yes
9534  hardcode_into_libs=yes
9535  ;;
9536
9537newsos6)
9538  version_type=linux
9539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540  shlibpath_var=LD_LIBRARY_PATH
9541  shlibpath_overrides_runpath=yes
9542  ;;
9543
9544nto-qnx*)
9545  version_type=linux
9546  need_lib_prefix=no
9547  need_version=no
9548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549  soname_spec='${libname}${release}${shared_ext}$major'
9550  shlibpath_var=LD_LIBRARY_PATH
9551  shlibpath_overrides_runpath=yes
9552  ;;
9553
9554openbsd*)
9555  version_type=sunos
9556  sys_lib_dlsearch_path_spec="/usr/lib"
9557  need_lib_prefix=no
9558  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9559  case $host_os in
9560    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9561    *)                         need_version=no  ;;
9562  esac
9563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9564  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9565  shlibpath_var=LD_LIBRARY_PATH
9566  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9567    case $host_os in
9568      openbsd2.[89] | openbsd2.[89].*)
9569        shlibpath_overrides_runpath=no
9570        ;;
9571      *)
9572        shlibpath_overrides_runpath=yes
9573        ;;
9574      esac
9575  else
9576    shlibpath_overrides_runpath=yes
9577  fi
9578  ;;
9579
9580os2*)
9581  libname_spec='$name'
9582  shrext_cmds=".dll"
9583  need_lib_prefix=no
9584  library_names_spec='$libname${shared_ext} $libname.a'
9585  dynamic_linker='OS/2 ld.exe'
9586  shlibpath_var=LIBPATH
9587  ;;
9588
9589osf3* | osf4* | osf5*)
9590  version_type=osf
9591  need_lib_prefix=no
9592  need_version=no
9593  soname_spec='${libname}${release}${shared_ext}$major'
9594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595  shlibpath_var=LD_LIBRARY_PATH
9596  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9597  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9598  ;;
9599
9600solaris*)
9601  version_type=linux
9602  need_lib_prefix=no
9603  need_version=no
9604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9605  soname_spec='${libname}${release}${shared_ext}$major'
9606  shlibpath_var=LD_LIBRARY_PATH
9607  shlibpath_overrides_runpath=yes
9608  hardcode_into_libs=yes
9609  # ldd complains unless libraries are executable
9610  postinstall_cmds='chmod +x $lib'
9611  ;;
9612
9613sunos4*)
9614  version_type=sunos
9615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9616  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9617  shlibpath_var=LD_LIBRARY_PATH
9618  shlibpath_overrides_runpath=yes
9619  if test "$with_gnu_ld" = yes; then
9620    need_lib_prefix=no
9621  fi
9622  need_version=yes
9623  ;;
9624
9625sysv4 | sysv4.3*)
9626  version_type=linux
9627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9628  soname_spec='${libname}${release}${shared_ext}$major'
9629  shlibpath_var=LD_LIBRARY_PATH
9630  case $host_vendor in
9631    sni)
9632      shlibpath_overrides_runpath=no
9633      need_lib_prefix=no
9634      export_dynamic_flag_spec='${wl}-Blargedynsym'
9635      runpath_var=LD_RUN_PATH
9636      ;;
9637    siemens)
9638      need_lib_prefix=no
9639      ;;
9640    motorola)
9641      need_lib_prefix=no
9642      need_version=no
9643      shlibpath_overrides_runpath=no
9644      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9645      ;;
9646  esac
9647  ;;
9648
9649sysv4*MP*)
9650  if test -d /usr/nec ;then
9651    version_type=linux
9652    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9653    soname_spec='$libname${shared_ext}.$major'
9654    shlibpath_var=LD_LIBRARY_PATH
9655  fi
9656  ;;
9657
9658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9659  version_type=freebsd-elf
9660  need_lib_prefix=no
9661  need_version=no
9662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9663  soname_spec='${libname}${release}${shared_ext}$major'
9664  shlibpath_var=LD_LIBRARY_PATH
9665  hardcode_into_libs=yes
9666  if test "$with_gnu_ld" = yes; then
9667    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9668    shlibpath_overrides_runpath=no
9669  else
9670    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9671    shlibpath_overrides_runpath=yes
9672    case $host_os in
9673      sco3.2v5*)
9674        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9675        ;;
9676    esac
9677  fi
9678  sys_lib_dlsearch_path_spec='/usr/lib'
9679  ;;
9680
9681uts4*)
9682  version_type=linux
9683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684  soname_spec='${libname}${release}${shared_ext}$major'
9685  shlibpath_var=LD_LIBRARY_PATH
9686  ;;
9687
9688*)
9689  dynamic_linker=no
9690  ;;
9691esac
9692echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9693echo "${ECHO_T}$dynamic_linker" >&6
9694test "$dynamic_linker" = no && can_build_shared=no
9695
9696variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9697if test "$GCC" = yes; then
9698  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9699fi
9700
9701echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9702echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9703hardcode_action=
9704if test -n "$hardcode_libdir_flag_spec" || \
9705   test -n "$runpath_var" || \
9706   test "X$hardcode_automatic" = "Xyes" ; then
9707
9708  # We can hardcode non-existant directories.
9709  if test "$hardcode_direct" != no &&
9710     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9711     # have to relink, otherwise we might link with an installed library
9712     # when we should be linking with a yet-to-be-installed one
9713     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9714     test "$hardcode_minus_L" != no; then
9715    # Linking always hardcodes the temporary library directory.
9716    hardcode_action=relink
9717  else
9718    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9719    hardcode_action=immediate
9720  fi
9721else
9722  # We cannot hardcode anything, or else we can only hardcode existing
9723  # directories.
9724  hardcode_action=unsupported
9725fi
9726echo "$as_me:$LINENO: result: $hardcode_action" >&5
9727echo "${ECHO_T}$hardcode_action" >&6
9728
9729if test "$hardcode_action" = relink; then
9730  # Fast installation is not supported
9731  enable_fast_install=no
9732elif test "$shlibpath_overrides_runpath" = yes ||
9733     test "$enable_shared" = no; then
9734  # Fast installation is not necessary
9735  enable_fast_install=needless
9736fi
9737
9738striplib=
9739old_striplib=
9740echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9741echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9742if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9743  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9744  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9745  echo "$as_me:$LINENO: result: yes" >&5
9746echo "${ECHO_T}yes" >&6
9747else
9748# FIXME - insert some real tests, host_os isn't really good enough
9749  case $host_os in
9750   darwin*)
9751       if test -n "$STRIP" ; then
9752         striplib="$STRIP -x"
9753         echo "$as_me:$LINENO: result: yes" >&5
9754echo "${ECHO_T}yes" >&6
9755       else
9756  echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758fi
9759       ;;
9760   *)
9761  echo "$as_me:$LINENO: result: no" >&5
9762echo "${ECHO_T}no" >&6
9763    ;;
9764  esac
9765fi
9766
9767if test "x$enable_dlopen" != xyes; then
9768  enable_dlopen=unknown
9769  enable_dlopen_self=unknown
9770  enable_dlopen_self_static=unknown
9771else
9772  lt_cv_dlopen=no
9773  lt_cv_dlopen_libs=
9774
9775  case $host_os in
9776  beos*)
9777    lt_cv_dlopen="load_add_on"
9778    lt_cv_dlopen_libs=
9779    lt_cv_dlopen_self=yes
9780    ;;
9781
9782  mingw* | pw32*)
9783    lt_cv_dlopen="LoadLibrary"
9784    lt_cv_dlopen_libs=
9785   ;;
9786
9787  cygwin*)
9788    lt_cv_dlopen="dlopen"
9789    lt_cv_dlopen_libs=
9790   ;;
9791
9792  darwin*)
9793  # if libdl is installed we need to link against it
9794    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9795echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9796if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9797  echo $ECHO_N "(cached) $ECHO_C" >&6
9798else
9799  ac_check_lib_save_LIBS=$LIBS
9800LIBS="-ldl  $LIBS"
9801cat >conftest.$ac_ext <<_ACEOF
9802/* confdefs.h.  */
9803_ACEOF
9804cat confdefs.h >>conftest.$ac_ext
9805cat >>conftest.$ac_ext <<_ACEOF
9806/* end confdefs.h.  */
9807
9808/* Override any gcc2 internal prototype to avoid an error.  */
9809#ifdef __cplusplus
9810extern "C"
9811#endif
9812/* We use char because int might match the return type of a gcc2
9813   builtin and then its argument prototype would still apply.  */
9814char dlopen ();
9815int
9816main ()
9817{
9818dlopen ();
9819  ;
9820  return 0;
9821}
9822_ACEOF
9823rm -f conftest.$ac_objext conftest$ac_exeext
9824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825  (eval $ac_link) 2>conftest.er1
9826  ac_status=$?
9827  grep -v '^ *+' conftest.er1 >conftest.err
9828  rm -f conftest.er1
9829  cat conftest.err >&5
9830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831  (exit $ac_status); } &&
9832         { ac_try='test -z "$ac_c_werror_flag"
9833                         || test ! -s conftest.err'
9834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9835  (eval $ac_try) 2>&5
9836  ac_status=$?
9837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838  (exit $ac_status); }; } &&
9839         { ac_try='test -s conftest$ac_exeext'
9840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841  (eval $ac_try) 2>&5
9842  ac_status=$?
9843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844  (exit $ac_status); }; }; then
9845  ac_cv_lib_dl_dlopen=yes
9846else
9847  echo "$as_me: failed program was:" >&5
9848sed 's/^/| /' conftest.$ac_ext >&5
9849
9850ac_cv_lib_dl_dlopen=no
9851fi
9852rm -f conftest.err conftest.$ac_objext \
9853      conftest$ac_exeext conftest.$ac_ext
9854LIBS=$ac_check_lib_save_LIBS
9855fi
9856echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9857echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9858if test $ac_cv_lib_dl_dlopen = yes; then
9859  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9860else
9861
9862    lt_cv_dlopen="dyld"
9863    lt_cv_dlopen_libs=
9864    lt_cv_dlopen_self=yes
9865
9866fi
9867
9868   ;;
9869
9870  *)
9871    echo "$as_me:$LINENO: checking for shl_load" >&5
9872echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9873if test "${ac_cv_func_shl_load+set}" = set; then
9874  echo $ECHO_N "(cached) $ECHO_C" >&6
9875else
9876  cat >conftest.$ac_ext <<_ACEOF
9877/* confdefs.h.  */
9878_ACEOF
9879cat confdefs.h >>conftest.$ac_ext
9880cat >>conftest.$ac_ext <<_ACEOF
9881/* end confdefs.h.  */
9882/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9883   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9884#define shl_load innocuous_shl_load
9885
9886/* System header to define __stub macros and hopefully few prototypes,
9887    which can conflict with char shl_load (); below.
9888    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9889    <limits.h> exists even on freestanding compilers.  */
9890
9891#ifdef __STDC__
9892# include <limits.h>
9893#else
9894# include <assert.h>
9895#endif
9896
9897#undef shl_load
9898
9899/* Override any gcc2 internal prototype to avoid an error.  */
9900#ifdef __cplusplus
9901extern "C"
9902{
9903#endif
9904/* We use char because int might match the return type of a gcc2
9905   builtin and then its argument prototype would still apply.  */
9906char shl_load ();
9907/* The GNU C library defines this for functions which it implements
9908    to always fail with ENOSYS.  Some functions are actually named
9909    something starting with __ and the normal name is an alias.  */
9910#if defined (__stub_shl_load) || defined (__stub___shl_load)
9911choke me
9912#else
9913char (*f) () = shl_load;
9914#endif
9915#ifdef __cplusplus
9916}
9917#endif
9918
9919int
9920main ()
9921{
9922return f != shl_load;
9923  ;
9924  return 0;
9925}
9926_ACEOF
9927rm -f conftest.$ac_objext conftest$ac_exeext
9928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9929  (eval $ac_link) 2>conftest.er1
9930  ac_status=$?
9931  grep -v '^ *+' conftest.er1 >conftest.err
9932  rm -f conftest.er1
9933  cat conftest.err >&5
9934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935  (exit $ac_status); } &&
9936         { ac_try='test -z "$ac_c_werror_flag"
9937                         || test ! -s conftest.err'
9938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939  (eval $ac_try) 2>&5
9940  ac_status=$?
9941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942  (exit $ac_status); }; } &&
9943         { ac_try='test -s conftest$ac_exeext'
9944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945  (eval $ac_try) 2>&5
9946  ac_status=$?
9947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948  (exit $ac_status); }; }; then
9949  ac_cv_func_shl_load=yes
9950else
9951  echo "$as_me: failed program was:" >&5
9952sed 's/^/| /' conftest.$ac_ext >&5
9953
9954ac_cv_func_shl_load=no
9955fi
9956rm -f conftest.err conftest.$ac_objext \
9957      conftest$ac_exeext conftest.$ac_ext
9958fi
9959echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9960echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9961if test $ac_cv_func_shl_load = yes; then
9962  lt_cv_dlopen="shl_load"
9963else
9964  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9965echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9966if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9967  echo $ECHO_N "(cached) $ECHO_C" >&6
9968else
9969  ac_check_lib_save_LIBS=$LIBS
9970LIBS="-ldld  $LIBS"
9971cat >conftest.$ac_ext <<_ACEOF
9972/* confdefs.h.  */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h.  */
9977
9978/* Override any gcc2 internal prototype to avoid an error.  */
9979#ifdef __cplusplus
9980extern "C"
9981#endif
9982/* We use char because int might match the return type of a gcc2
9983   builtin and then its argument prototype would still apply.  */
9984char shl_load ();
9985int
9986main ()
9987{
9988shl_load ();
9989  ;
9990  return 0;
9991}
9992_ACEOF
9993rm -f conftest.$ac_objext conftest$ac_exeext
9994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9995  (eval $ac_link) 2>conftest.er1
9996  ac_status=$?
9997  grep -v '^ *+' conftest.er1 >conftest.err
9998  rm -f conftest.er1
9999  cat conftest.err >&5
10000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001  (exit $ac_status); } &&
10002         { ac_try='test -z "$ac_c_werror_flag"
10003                         || test ! -s conftest.err'
10004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005  (eval $ac_try) 2>&5
10006  ac_status=$?
10007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008  (exit $ac_status); }; } &&
10009         { ac_try='test -s conftest$ac_exeext'
10010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011  (eval $ac_try) 2>&5
10012  ac_status=$?
10013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014  (exit $ac_status); }; }; then
10015  ac_cv_lib_dld_shl_load=yes
10016else
10017  echo "$as_me: failed program was:" >&5
10018sed 's/^/| /' conftest.$ac_ext >&5
10019
10020ac_cv_lib_dld_shl_load=no
10021fi
10022rm -f conftest.err conftest.$ac_objext \
10023      conftest$ac_exeext conftest.$ac_ext
10024LIBS=$ac_check_lib_save_LIBS
10025fi
10026echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10027echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10028if test $ac_cv_lib_dld_shl_load = yes; then
10029  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10030else
10031  echo "$as_me:$LINENO: checking for dlopen" >&5
10032echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10033if test "${ac_cv_func_dlopen+set}" = set; then
10034  echo $ECHO_N "(cached) $ECHO_C" >&6
10035else
10036  cat >conftest.$ac_ext <<_ACEOF
10037/* confdefs.h.  */
10038_ACEOF
10039cat confdefs.h >>conftest.$ac_ext
10040cat >>conftest.$ac_ext <<_ACEOF
10041/* end confdefs.h.  */
10042/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10043   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10044#define dlopen innocuous_dlopen
10045
10046/* System header to define __stub macros and hopefully few prototypes,
10047    which can conflict with char dlopen (); below.
10048    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10049    <limits.h> exists even on freestanding compilers.  */
10050
10051#ifdef __STDC__
10052# include <limits.h>
10053#else
10054# include <assert.h>
10055#endif
10056
10057#undef dlopen
10058
10059/* Override any gcc2 internal prototype to avoid an error.  */
10060#ifdef __cplusplus
10061extern "C"
10062{
10063#endif
10064/* We use char because int might match the return type of a gcc2
10065   builtin and then its argument prototype would still apply.  */
10066char dlopen ();
10067/* The GNU C library defines this for functions which it implements
10068    to always fail with ENOSYS.  Some functions are actually named
10069    something starting with __ and the normal name is an alias.  */
10070#if defined (__stub_dlopen) || defined (__stub___dlopen)
10071choke me
10072#else
10073char (*f) () = dlopen;
10074#endif
10075#ifdef __cplusplus
10076}
10077#endif
10078
10079int
10080main ()
10081{
10082return f != dlopen;
10083  ;
10084  return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext conftest$ac_exeext
10088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089  (eval $ac_link) 2>conftest.er1
10090  ac_status=$?
10091  grep -v '^ *+' conftest.er1 >conftest.err
10092  rm -f conftest.er1
10093  cat conftest.err >&5
10094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095  (exit $ac_status); } &&
10096         { ac_try='test -z "$ac_c_werror_flag"
10097                         || test ! -s conftest.err'
10098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099  (eval $ac_try) 2>&5
10100  ac_status=$?
10101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102  (exit $ac_status); }; } &&
10103         { ac_try='test -s conftest$ac_exeext'
10104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105  (eval $ac_try) 2>&5
10106  ac_status=$?
10107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108  (exit $ac_status); }; }; then
10109  ac_cv_func_dlopen=yes
10110else
10111  echo "$as_me: failed program was:" >&5
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
10114ac_cv_func_dlopen=no
10115fi
10116rm -f conftest.err conftest.$ac_objext \
10117      conftest$ac_exeext conftest.$ac_ext
10118fi
10119echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10120echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10121if test $ac_cv_func_dlopen = yes; then
10122  lt_cv_dlopen="dlopen"
10123else
10124  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10125echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10126if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10127  echo $ECHO_N "(cached) $ECHO_C" >&6
10128else
10129  ac_check_lib_save_LIBS=$LIBS
10130LIBS="-ldl  $LIBS"
10131cat >conftest.$ac_ext <<_ACEOF
10132/* confdefs.h.  */
10133_ACEOF
10134cat confdefs.h >>conftest.$ac_ext
10135cat >>conftest.$ac_ext <<_ACEOF
10136/* end confdefs.h.  */
10137
10138/* Override any gcc2 internal prototype to avoid an error.  */
10139#ifdef __cplusplus
10140extern "C"
10141#endif
10142/* We use char because int might match the return type of a gcc2
10143   builtin and then its argument prototype would still apply.  */
10144char dlopen ();
10145int
10146main ()
10147{
10148dlopen ();
10149  ;
10150  return 0;
10151}
10152_ACEOF
10153rm -f conftest.$ac_objext conftest$ac_exeext
10154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10155  (eval $ac_link) 2>conftest.er1
10156  ac_status=$?
10157  grep -v '^ *+' conftest.er1 >conftest.err
10158  rm -f conftest.er1
10159  cat conftest.err >&5
10160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161  (exit $ac_status); } &&
10162         { ac_try='test -z "$ac_c_werror_flag"
10163                         || test ! -s conftest.err'
10164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165  (eval $ac_try) 2>&5
10166  ac_status=$?
10167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168  (exit $ac_status); }; } &&
10169         { ac_try='test -s conftest$ac_exeext'
10170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171  (eval $ac_try) 2>&5
10172  ac_status=$?
10173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174  (exit $ac_status); }; }; then
10175  ac_cv_lib_dl_dlopen=yes
10176else
10177  echo "$as_me: failed program was:" >&5
10178sed 's/^/| /' conftest.$ac_ext >&5
10179
10180ac_cv_lib_dl_dlopen=no
10181fi
10182rm -f conftest.err conftest.$ac_objext \
10183      conftest$ac_exeext conftest.$ac_ext
10184LIBS=$ac_check_lib_save_LIBS
10185fi
10186echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10187echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10188if test $ac_cv_lib_dl_dlopen = yes; then
10189  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10190else
10191  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10192echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10193if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10194  echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196  ac_check_lib_save_LIBS=$LIBS
10197LIBS="-lsvld  $LIBS"
10198cat >conftest.$ac_ext <<_ACEOF
10199/* confdefs.h.  */
10200_ACEOF
10201cat confdefs.h >>conftest.$ac_ext
10202cat >>conftest.$ac_ext <<_ACEOF
10203/* end confdefs.h.  */
10204
10205/* Override any gcc2 internal prototype to avoid an error.  */
10206#ifdef __cplusplus
10207extern "C"
10208#endif
10209/* We use char because int might match the return type of a gcc2
10210   builtin and then its argument prototype would still apply.  */
10211char dlopen ();
10212int
10213main ()
10214{
10215dlopen ();
10216  ;
10217  return 0;
10218}
10219_ACEOF
10220rm -f conftest.$ac_objext conftest$ac_exeext
10221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222  (eval $ac_link) 2>conftest.er1
10223  ac_status=$?
10224  grep -v '^ *+' conftest.er1 >conftest.err
10225  rm -f conftest.er1
10226  cat conftest.err >&5
10227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228  (exit $ac_status); } &&
10229         { ac_try='test -z "$ac_c_werror_flag"
10230                         || test ! -s conftest.err'
10231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232  (eval $ac_try) 2>&5
10233  ac_status=$?
10234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235  (exit $ac_status); }; } &&
10236         { ac_try='test -s conftest$ac_exeext'
10237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238  (eval $ac_try) 2>&5
10239  ac_status=$?
10240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241  (exit $ac_status); }; }; then
10242  ac_cv_lib_svld_dlopen=yes
10243else
10244  echo "$as_me: failed program was:" >&5
10245sed 's/^/| /' conftest.$ac_ext >&5
10246
10247ac_cv_lib_svld_dlopen=no
10248fi
10249rm -f conftest.err conftest.$ac_objext \
10250      conftest$ac_exeext conftest.$ac_ext
10251LIBS=$ac_check_lib_save_LIBS
10252fi
10253echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10254echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10255if test $ac_cv_lib_svld_dlopen = yes; then
10256  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10257else
10258  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10259echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10260if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10261  echo $ECHO_N "(cached) $ECHO_C" >&6
10262else
10263  ac_check_lib_save_LIBS=$LIBS
10264LIBS="-ldld  $LIBS"
10265cat >conftest.$ac_ext <<_ACEOF
10266/* confdefs.h.  */
10267_ACEOF
10268cat confdefs.h >>conftest.$ac_ext
10269cat >>conftest.$ac_ext <<_ACEOF
10270/* end confdefs.h.  */
10271
10272/* Override any gcc2 internal prototype to avoid an error.  */
10273#ifdef __cplusplus
10274extern "C"
10275#endif
10276/* We use char because int might match the return type of a gcc2
10277   builtin and then its argument prototype would still apply.  */
10278char dld_link ();
10279int
10280main ()
10281{
10282dld_link ();
10283  ;
10284  return 0;
10285}
10286_ACEOF
10287rm -f conftest.$ac_objext conftest$ac_exeext
10288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289  (eval $ac_link) 2>conftest.er1
10290  ac_status=$?
10291  grep -v '^ *+' conftest.er1 >conftest.err
10292  rm -f conftest.er1
10293  cat conftest.err >&5
10294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295  (exit $ac_status); } &&
10296         { ac_try='test -z "$ac_c_werror_flag"
10297                         || test ! -s conftest.err'
10298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299  (eval $ac_try) 2>&5
10300  ac_status=$?
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); }; } &&
10303         { ac_try='test -s conftest$ac_exeext'
10304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305  (eval $ac_try) 2>&5
10306  ac_status=$?
10307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308  (exit $ac_status); }; }; then
10309  ac_cv_lib_dld_dld_link=yes
10310else
10311  echo "$as_me: failed program was:" >&5
10312sed 's/^/| /' conftest.$ac_ext >&5
10313
10314ac_cv_lib_dld_dld_link=no
10315fi
10316rm -f conftest.err conftest.$ac_objext \
10317      conftest$ac_exeext conftest.$ac_ext
10318LIBS=$ac_check_lib_save_LIBS
10319fi
10320echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10321echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10322if test $ac_cv_lib_dld_dld_link = yes; then
10323  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10324fi
10325
10326
10327fi
10328
10329
10330fi
10331
10332
10333fi
10334
10335
10336fi
10337
10338
10339fi
10340
10341    ;;
10342  esac
10343
10344  if test "x$lt_cv_dlopen" != xno; then
10345    enable_dlopen=yes
10346  else
10347    enable_dlopen=no
10348  fi
10349
10350  case $lt_cv_dlopen in
10351  dlopen)
10352    save_CPPFLAGS="$CPPFLAGS"
10353    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10354
10355    save_LDFLAGS="$LDFLAGS"
10356    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10357
10358    save_LIBS="$LIBS"
10359    LIBS="$lt_cv_dlopen_libs $LIBS"
10360
10361    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10362echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10363if test "${lt_cv_dlopen_self+set}" = set; then
10364  echo $ECHO_N "(cached) $ECHO_C" >&6
10365else
10366          if test "$cross_compiling" = yes; then :
10367  lt_cv_dlopen_self=cross
10368else
10369  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10370  lt_status=$lt_dlunknown
10371  cat > conftest.$ac_ext <<EOF
10372#line 10372 "configure"
10373#include "confdefs.h"
10374
10375#if HAVE_DLFCN_H
10376#include <dlfcn.h>
10377#endif
10378
10379#include <stdio.h>
10380
10381#ifdef RTLD_GLOBAL
10382#  define LT_DLGLOBAL           RTLD_GLOBAL
10383#else
10384#  ifdef DL_GLOBAL
10385#    define LT_DLGLOBAL         DL_GLOBAL
10386#  else
10387#    define LT_DLGLOBAL         0
10388#  endif
10389#endif
10390
10391/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10392   find out it does not work in some platform. */
10393#ifndef LT_DLLAZY_OR_NOW
10394#  ifdef RTLD_LAZY
10395#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10396#  else
10397#    ifdef DL_LAZY
10398#      define LT_DLLAZY_OR_NOW          DL_LAZY
10399#    else
10400#      ifdef RTLD_NOW
10401#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10402#      else
10403#        ifdef DL_NOW
10404#          define LT_DLLAZY_OR_NOW      DL_NOW
10405#        else
10406#          define LT_DLLAZY_OR_NOW      0
10407#        endif
10408#      endif
10409#    endif
10410#  endif
10411#endif
10412
10413#ifdef __cplusplus
10414extern "C" void exit (int);
10415#endif
10416
10417void fnord() { int i=42;}
10418int main ()
10419{
10420  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10421  int status = $lt_dlunknown;
10422
10423  if (self)
10424    {
10425      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10426      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10427      /* dlclose (self); */
10428    }
10429  else
10430    puts (dlerror ());
10431
10432    exit (status);
10433}
10434EOF
10435  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10436  (eval $ac_link) 2>&5
10437  ac_status=$?
10438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10440    (./conftest; exit; ) >&5 2>/dev/null
10441    lt_status=$?
10442    case x$lt_status in
10443      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10444      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10445      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10446    esac
10447  else :
10448    # compilation failed
10449    lt_cv_dlopen_self=no
10450  fi
10451fi
10452rm -fr conftest*
10453
10454
10455fi
10456echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10457echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10458
10459    if test "x$lt_cv_dlopen_self" = xyes; then
10460      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10461      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10462echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10463if test "${lt_cv_dlopen_self_static+set}" = set; then
10464  echo $ECHO_N "(cached) $ECHO_C" >&6
10465else
10466          if test "$cross_compiling" = yes; then :
10467  lt_cv_dlopen_self_static=cross
10468else
10469  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10470  lt_status=$lt_dlunknown
10471  cat > conftest.$ac_ext <<EOF
10472#line 10472 "configure"
10473#include "confdefs.h"
10474
10475#if HAVE_DLFCN_H
10476#include <dlfcn.h>
10477#endif
10478
10479#include <stdio.h>
10480
10481#ifdef RTLD_GLOBAL
10482#  define LT_DLGLOBAL           RTLD_GLOBAL
10483#else
10484#  ifdef DL_GLOBAL
10485#    define LT_DLGLOBAL         DL_GLOBAL
10486#  else
10487#    define LT_DLGLOBAL         0
10488#  endif
10489#endif
10490
10491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10492   find out it does not work in some platform. */
10493#ifndef LT_DLLAZY_OR_NOW
10494#  ifdef RTLD_LAZY
10495#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10496#  else
10497#    ifdef DL_LAZY
10498#      define LT_DLLAZY_OR_NOW          DL_LAZY
10499#    else
10500#      ifdef RTLD_NOW
10501#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10502#      else
10503#        ifdef DL_NOW
10504#          define LT_DLLAZY_OR_NOW      DL_NOW
10505#        else
10506#          define LT_DLLAZY_OR_NOW      0
10507#        endif
10508#      endif
10509#    endif
10510#  endif
10511#endif
10512
10513#ifdef __cplusplus
10514extern "C" void exit (int);
10515#endif
10516
10517void fnord() { int i=42;}
10518int main ()
10519{
10520  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10521  int status = $lt_dlunknown;
10522
10523  if (self)
10524    {
10525      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10526      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10527      /* dlclose (self); */
10528    }
10529  else
10530    puts (dlerror ());
10531
10532    exit (status);
10533}
10534EOF
10535  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536  (eval $ac_link) 2>&5
10537  ac_status=$?
10538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10540    (./conftest; exit; ) >&5 2>/dev/null
10541    lt_status=$?
10542    case x$lt_status in
10543      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10544      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10545      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10546    esac
10547  else :
10548    # compilation failed
10549    lt_cv_dlopen_self_static=no
10550  fi
10551fi
10552rm -fr conftest*
10553
10554
10555fi
10556echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10557echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10558    fi
10559
10560    CPPFLAGS="$save_CPPFLAGS"
10561    LDFLAGS="$save_LDFLAGS"
10562    LIBS="$save_LIBS"
10563    ;;
10564  esac
10565
10566  case $lt_cv_dlopen_self in
10567  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10568  *) enable_dlopen_self=unknown ;;
10569  esac
10570
10571  case $lt_cv_dlopen_self_static in
10572  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10573  *) enable_dlopen_self_static=unknown ;;
10574  esac
10575fi
10576
10577
10578# Report which library types will actually be built
10579echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10580echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10581echo "$as_me:$LINENO: result: $can_build_shared" >&5
10582echo "${ECHO_T}$can_build_shared" >&6
10583
10584echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10585echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10586test "$can_build_shared" = "no" && enable_shared=no
10587
10588# On AIX, shared libraries and static libraries use the same namespace, and
10589# are all built from PIC.
10590case $host_os in
10591aix3*)
10592  test "$enable_shared" = yes && enable_static=no
10593  if test -n "$RANLIB"; then
10594    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10595    postinstall_cmds='$RANLIB $lib'
10596  fi
10597  ;;
10598
10599aix4* | aix5*)
10600  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10601    test "$enable_shared" = yes && enable_static=no
10602  fi
10603    ;;
10604esac
10605echo "$as_me:$LINENO: result: $enable_shared" >&5
10606echo "${ECHO_T}$enable_shared" >&6
10607
10608echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10609echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10610# Make sure either enable_shared or enable_static is yes.
10611test "$enable_shared" = yes || enable_static=yes
10612echo "$as_me:$LINENO: result: $enable_static" >&5
10613echo "${ECHO_T}$enable_static" >&6
10614
10615# The else clause should only fire when bootstrapping the
10616# libtool distribution, otherwise you forgot to ship ltmain.sh
10617# with your package, and you will get complaints that there are
10618# no rules to generate ltmain.sh.
10619if test -f "$ltmain"; then
10620  # See if we are running on zsh, and set the options which allow our commands through
10621  # without removal of \ escapes.
10622  if test -n "${ZSH_VERSION+set}" ; then
10623    setopt NO_GLOB_SUBST
10624  fi
10625  # Now quote all the things that may contain metacharacters while being
10626  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10627  # variables and quote the copies for generation of the libtool script.
10628  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10629    SED SHELL STRIP \
10630    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10631    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10632    deplibs_check_method reload_flag reload_cmds need_locks \
10633    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10634    lt_cv_sys_global_symbol_to_c_name_address \
10635    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10636    old_postinstall_cmds old_postuninstall_cmds \
10637    compiler \
10638    CC \
10639    LD \
10640    lt_prog_compiler_wl \
10641    lt_prog_compiler_pic \
10642    lt_prog_compiler_static \
10643    lt_prog_compiler_no_builtin_flag \
10644    export_dynamic_flag_spec \
10645    thread_safe_flag_spec \
10646    whole_archive_flag_spec \
10647    enable_shared_with_static_runtimes \
10648    old_archive_cmds \
10649    old_archive_from_new_cmds \
10650    predep_objects \
10651    postdep_objects \
10652    predeps \
10653    postdeps \
10654    compiler_lib_search_path \
10655    archive_cmds \
10656    archive_expsym_cmds \
10657    postinstall_cmds \
10658    postuninstall_cmds \
10659    old_archive_from_expsyms_cmds \
10660    allow_undefined_flag \
10661    no_undefined_flag \
10662    export_symbols_cmds \
10663    hardcode_libdir_flag_spec \
10664    hardcode_libdir_flag_spec_ld \
10665    hardcode_libdir_separator \
10666    hardcode_automatic \
10667    module_cmds \
10668    module_expsym_cmds \
10669    lt_cv_prog_compiler_c_o \
10670    exclude_expsyms \
10671    include_expsyms; do
10672
10673    case $var in
10674    old_archive_cmds | \
10675    old_archive_from_new_cmds | \
10676    archive_cmds | \
10677    archive_expsym_cmds | \
10678    module_cmds | \
10679    module_expsym_cmds | \
10680    old_archive_from_expsyms_cmds | \
10681    export_symbols_cmds | \
10682    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10683    postinstall_cmds | postuninstall_cmds | \
10684    old_postinstall_cmds | old_postuninstall_cmds | \
10685    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10686      # Double-quote double-evaled strings.
10687      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10688      ;;
10689    *)
10690      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10691      ;;
10692    esac
10693  done
10694
10695  case $lt_echo in
10696  *'\$0 --fallback-echo"')
10697    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10698    ;;
10699  esac
10700
10701cfgfile="${ofile}T"
10702  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10703  $rm -f "$cfgfile"
10704  { echo "$as_me:$LINENO: creating $ofile" >&5
10705echo "$as_me: creating $ofile" >&6;}
10706
10707  cat <<__EOF__ >> "$cfgfile"
10708#! $SHELL
10709
10710# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10711# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10712# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10713#
10714# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10715# Free Software Foundation, Inc.
10716#
10717# This file is part of GNU Libtool:
10718# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10719#
10720# This program is free software; you can redistribute it and/or modify
10721# it under the terms of the GNU General Public License as published by
10722# the Free Software Foundation; either version 2 of the License, or
10723# (at your option) any later version.
10724#
10725# This program is distributed in the hope that it will be useful, but
10726# WITHOUT ANY WARRANTY; without even the implied warranty of
10727# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10728# General Public License for more details.
10729#
10730# You should have received a copy of the GNU General Public License
10731# along with this program; if not, write to the Free Software
10732# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10733#
10734# As a special exception to the GNU General Public License, if you
10735# distribute this file as part of a program that contains a
10736# configuration script generated by Autoconf, you may include it under
10737# the same distribution terms that you use for the rest of that program.
10738
10739# A sed program that does not truncate output.
10740SED=$lt_SED
10741
10742# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10743Xsed="$SED -e 1s/^X//"
10744
10745# The HP-UX ksh and POSIX shell print the target directory to stdout
10746# if CDPATH is set.
10747(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10748
10749# The names of the tagged configurations supported by this script.
10750available_tags=
10751
10752# ### BEGIN LIBTOOL CONFIG
10753
10754# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10755
10756# Shell to use when invoking shell scripts.
10757SHELL=$lt_SHELL
10758
10759# Whether or not to build shared libraries.
10760build_libtool_libs=$enable_shared
10761
10762# Whether or not to build static libraries.
107