source: ThirdParty/Glpk/stable/1.0/configure @ 569

Last change on this file since 569 was 569, checked in by andreasw, 12 years ago

restoring stable/1.0

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