source: ThirdParty/Glpk/stable/1.1/configure @ 853

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

temporarily committing release candidate to stable

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