source: ThirdParty/Glpk/stable/1.7/configure @ 1782

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

temporarily committing release candidate

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