source: ThirdParty/Blas/trunk/configure @ 182

Last change on this file since 182 was 182, checked in by andreasw, 14 years ago

reran autotools

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