source: ThirdParty/Glpk/stable/1.9/configure @ 2937

Last change on this file since 2937 was 2937, checked in by stefan, 6 years ago

temporarily committing release candidate

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