source: ThirdParty/Glpk/trunk/configure @ 1669

Last change on this file since 1669 was 1669, checked in by stefan, 10 years ago

add prefix to COIN_PKG_CONFIG_PATH, also if it does not exists at configure time

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