source: ThirdParty/Blas/stable/1.0/configure @ 536

Last change on this file since 536 was 536, checked in by andreasw, 13 years ago

sychronizing trunk rev 534 with Blas/stable/1.0

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