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

Last change on this file since 3445 was 3445, checked in by tkr, 6 years ago

temporarily committing release candidate

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