source: ThirdParty/Glpk/trunk/configure @ 942

Last change on this file since 942 was 942, checked in by stefan, 12 years ago

upgrade to glpk 4.26; check in configure whether we have the correct glpk version for compilation

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