source: ThirdParty/Blas/branches/BSPsplit/configure @ 1446

Last change on this file since 1446 was 1446, checked in by stefan, 10 years ago

stop using COIN_HAS_PROJECT; some cleanup; use MODULE_BLAS in Mumps

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