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

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

restoring stable/1.0

  • Property svn:executable set to *
File size: 763.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 1.0stable.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='1.0stable'
433PACKAGE_STRING='ThirdPartyBlas 1.0stable'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS FLIBS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyBlas 1.0stable to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyBlas 1.0stable:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-blas compile this project (Blas) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS. Set to mingw to use gcc/g++/ld with
1077                          -mno-cygwin. Set to msvc to use cl/link. Default
1078                          when mentioned: mingw. Default when not mentioned:
1079                          disabled.
1080  --enable-static[=PKGS]
1081                          build static libraries [default=no]
1082  --disable-dependency-tracking  speeds up one-time build
1083  --enable-dependency-tracking   do not reject slow dependency extractors
1084  --enable-maintainer-mode  enable make rules and dependencies not useful
1085                          (and sometimes confusing) to the casual installer
1086  --enable-shared[=PKGS]
1087                          build shared libraries [default=yes]
1088  --enable-fast-install[=PKGS]
1089                          optimize for fast installation [default=yes]
1090  --disable-libtool-lock  avoid locking (might break parallel builds)
1091
1092Optional Packages:
1093  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1094  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1095  --with-blas-verbosity specify the debug verbosity level for project Blas
1096  --with-blas-checklevel specify the sanity check level for project Blas
1097  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1098  --with-pic              try to use only PIC/non-PIC objects [default=use
1099                          both]
1100  --with-tags[=TAGS]
1101                          include additional configurations [automatic]
1102  --with-blas             specify BLAS library (or BUILD for compilation)
1103
1104Some influential environment variables:
1105  CDEFS       Additional -D flags to be used when compiling C code.
1106  ADD_CFLAGS  Additional C compiler options
1107  DBG_CFLAGS  Debug C compiler options
1108  OPT_CFLAGS  Optimize C compiler options
1109  CC          C compiler command
1110  CFLAGS      C compiler flags
1111  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1112              nonstandard directory <lib dir>
1113  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114              headers in a nonstandard directory <include dir>
1115  MPICC       C MPI Compiler
1116  ADD_FFLAGS  Additional Fortran compiler options
1117  DBG_FFLAGS  Debug Fortran compiler options
1118  OPT_FFLAGS  Optimize Fortran compiler options
1119  F77         Fortran 77 compiler command
1120  FFLAGS      Fortran 77 compiler flags
1121  MPIF77      Fortran MPI Compiler
1122  CPP         C preprocessor
1123  CXX         C++ compiler command
1124  CXXFLAGS    C++ compiler flags
1125  CXXCPP      C++ preprocessor
1126
1127Use these variables to override the choices made by `configure' or to help
1128it to find libraries and programs with nonstandard names/locations.
1129
1130Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1131_ACEOF
1132fi
1133
1134if test "$ac_init_help" = "recursive"; then
1135  # If there are subdirs, report their specific --help.
1136  ac_popdir=`pwd`
1137  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1138    test -d $ac_dir || continue
1139    ac_builddir=.
1140
1141if test "$ac_dir" != .; then
1142  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1143  # A "../" for each directory in $ac_dir_suffix.
1144  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1145else
1146  ac_dir_suffix= ac_top_builddir=
1147fi
1148
1149case $srcdir in
1150  .)  # No --srcdir option.  We are building in place.
1151    ac_srcdir=.
1152    if test -z "$ac_top_builddir"; then
1153       ac_top_srcdir=.
1154    else
1155       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1156    fi ;;
1157  [\\/]* | ?:[\\/]* )  # Absolute path.
1158    ac_srcdir=$srcdir$ac_dir_suffix;
1159    ac_top_srcdir=$srcdir ;;
1160  *) # Relative path.
1161    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1162    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1163esac
1164
1165# Do not use `cd foo && pwd` to compute absolute paths, because
1166# the directories may not exist.
1167case `pwd` in
1168.) ac_abs_builddir="$ac_dir";;
1169*)
1170  case "$ac_dir" in
1171  .) ac_abs_builddir=`pwd`;;
1172  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1173  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1174  esac;;
1175esac
1176case $ac_abs_builddir in
1177.) ac_abs_top_builddir=${ac_top_builddir}.;;
1178*)
1179  case ${ac_top_builddir}. in
1180  .) ac_abs_top_builddir=$ac_abs_builddir;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1182  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_srcdir=$ac_srcdir;;
1187*)
1188  case $ac_srcdir in
1189  .) ac_abs_srcdir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1191  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_top_srcdir=$ac_top_srcdir;;
1196*)
1197  case $ac_top_srcdir in
1198  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1200  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1201  esac;;
1202esac
1203
1204    cd $ac_dir
1205    # Check for guested configure; otherwise get Cygnus style configure.
1206    if test -f $ac_srcdir/configure.gnu; then
1207      echo
1208      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1209    elif test -f $ac_srcdir/configure; then
1210      echo
1211      $SHELL $ac_srcdir/configure  --help=recursive
1212    elif test -f $ac_srcdir/configure.ac ||
1213           test -f $ac_srcdir/configure.in; then
1214      echo
1215      $ac_configure --help
1216    else
1217      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1218    fi
1219    cd $ac_popdir
1220  done
1221fi
1222
1223test -n "$ac_init_help" && exit 0
1224if $ac_init_version; then
1225  cat <<\_ACEOF
1226ThirdPartyBlas configure 1.0stable
1227generated by GNU Autoconf 2.59
1228
1229Copyright (C) 2003 Free Software Foundation, Inc.
1230This configure script is free software; the Free Software Foundation
1231gives unlimited permission to copy, distribute and modify it.
1232
1233
1234Copyright 2006 International Business Machines and others.
1235All Rights Reserved.
1236This file is part of the open source package Coin which is distributed
1237under the Common Public License.
1238_ACEOF
1239  exit 0
1240fi
1241exec 5>config.log
1242cat >&5 <<_ACEOF
1243This file contains any messages produced by compilers while
1244running configure, to aid debugging if configure makes a mistake.
1245
1246It was created by ThirdPartyBlas $as_me 1.0stable, which was
1247generated by GNU Autoconf 2.59.  Invocation command line was
1248
1249  $ $0 $@
1250
1251_ACEOF
1252{
1253cat <<_ASUNAME
1254## --------- ##
1255## Platform. ##
1256## --------- ##
1257
1258hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1259uname -m = `(uname -m) 2>/dev/null || echo unknown`
1260uname -r = `(uname -r) 2>/dev/null || echo unknown`
1261uname -s = `(uname -s) 2>/dev/null || echo unknown`
1262uname -v = `(uname -v) 2>/dev/null || echo unknown`
1263
1264/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1265/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1266
1267/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1268/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1269/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1270hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1271/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1272/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1273/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1274
1275_ASUNAME
1276
1277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1278for as_dir in $PATH
1279do
1280  IFS=$as_save_IFS
1281  test -z "$as_dir" && as_dir=.
1282  echo "PATH: $as_dir"
1283done
1284
1285} >&5
1286
1287cat >&5 <<_ACEOF
1288
1289
1290## ----------- ##
1291## Core tests. ##
1292## ----------- ##
1293
1294_ACEOF
1295
1296
1297# Keep a trace of the command line.
1298# Strip out --no-create and --no-recursion so they do not pile up.
1299# Strip out --silent because we don't want to record it for future runs.
1300# Also quote any args containing shell meta-characters.
1301# Make two passes to allow for proper duplicate-argument suppression.
1302ac_configure_args=
1303ac_configure_args0=
1304ac_configure_args1=
1305ac_sep=
1306ac_must_keep_next=false
1307for ac_pass in 1 2
1308do
1309  for ac_arg
1310  do
1311    case $ac_arg in
1312    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1313    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314    | -silent | --silent | --silen | --sile | --sil)
1315      continue ;;
1316    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1317      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1318    esac
1319    case $ac_pass in
1320    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1321    2)
1322      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1323      if test $ac_must_keep_next = true; then
1324        ac_must_keep_next=false # Got value, back to normal.
1325      else
1326        case $ac_arg in
1327          *=* | --config-cache | -C | -disable-* | --disable-* \
1328          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1329          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1330          | -with-* | --with-* | -without-* | --without-* | --x)
1331            case "$ac_configure_args0 " in
1332              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1333            esac
1334            ;;
1335          -* ) ac_must_keep_next=true ;;
1336        esac
1337      fi
1338      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1339      # Get rid of the leading space.
1340      ac_sep=" "
1341      ;;
1342    esac
1343  done
1344done
1345$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1346$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1347
1348# When interrupted or exit'd, cleanup temporary files, and complete
1349# config.log.  We remove comments because anyway the quotes in there
1350# would cause problems or look ugly.
1351# WARNING: Be sure not to use single quotes in there, as some shells,
1352# such as our DU 5.0 friend, will then `close' the trap.
1353trap 'exit_status=$?
1354  # Save into config.log some information that might help in debugging.
1355  {
1356    echo
1357
1358    cat <<\_ASBOX
1359## ---------------- ##
1360## Cache variables. ##
1361## ---------------- ##
1362_ASBOX
1363    echo
1364    # The following way of writing the cache mishandles newlines in values,
1365{
1366  (set) 2>&1 |
1367    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1368    *ac_space=\ *)
1369      sed -n \
1370        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1371          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1372      ;;
1373    *)
1374      sed -n \
1375        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1376      ;;
1377    esac;
1378}
1379    echo
1380
1381    cat <<\_ASBOX
1382## ----------------- ##
1383## Output variables. ##
1384## ----------------- ##
1385_ASBOX
1386    echo
1387    for ac_var in $ac_subst_vars
1388    do
1389      eval ac_val=$`echo $ac_var`
1390      echo "$ac_var='"'"'$ac_val'"'"'"
1391    done | sort
1392    echo
1393
1394    if test -n "$ac_subst_files"; then
1395      cat <<\_ASBOX
1396## ------------- ##
1397## Output files. ##
1398## ------------- ##
1399_ASBOX
1400      echo
1401      for ac_var in $ac_subst_files
1402      do
1403        eval ac_val=$`echo $ac_var`
1404        echo "$ac_var='"'"'$ac_val'"'"'"
1405      done | sort
1406      echo
1407    fi
1408
1409    if test -s confdefs.h; then
1410      cat <<\_ASBOX
1411## ----------- ##
1412## confdefs.h. ##
1413## ----------- ##
1414_ASBOX
1415      echo
1416      sed "/^$/d" confdefs.h | sort
1417      echo
1418    fi
1419    test "$ac_signal" != 0 &&
1420      echo "$as_me: caught signal $ac_signal"
1421    echo "$as_me: exit $exit_status"
1422  } >&5
1423  rm -f core *.core &&
1424  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1425    exit $exit_status
1426     ' 0
1427for ac_signal in 1 2 13 15; do
1428  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1429done
1430ac_signal=0
1431
1432# confdefs.h avoids OS command line length limits that DEFS can exceed.
1433rm -rf conftest* confdefs.h
1434# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1435echo >confdefs.h
1436
1437# Predefined preprocessor variables.
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_NAME "$PACKAGE_NAME"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_VERSION "$PACKAGE_VERSION"
1451_ACEOF
1452
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_STRING "$PACKAGE_STRING"
1456_ACEOF
1457
1458
1459cat >>confdefs.h <<_ACEOF
1460#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1461_ACEOF
1462
1463
1464# Let the site file select an alternate cache file if it wants to.
1465# Prefer explicitly selected file to automatically selected ones.
1466if test -z "$CONFIG_SITE"; then
1467  if test "x$prefix" != xNONE; then
1468    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1469  else
1470    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1471  fi
1472fi
1473for ac_site_file in $CONFIG_SITE; do
1474  if test -r "$ac_site_file"; then
1475    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1476echo "$as_me: loading site script $ac_site_file" >&6;}
1477    sed 's/^/| /' "$ac_site_file" >&5
1478    . "$ac_site_file"
1479  fi
1480done
1481
1482if test -r "$cache_file"; then
1483  # Some versions of bash will fail to source /dev/null (special
1484  # files actually), so we avoid doing that.
1485  if test -f "$cache_file"; then
1486    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1487echo "$as_me: loading cache $cache_file" >&6;}
1488    case $cache_file in
1489      [\\/]* | ?:[\\/]* ) . $cache_file;;
1490      *)                      . ./$cache_file;;
1491    esac
1492  fi
1493else
1494  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1495echo "$as_me: creating cache $cache_file" >&6;}
1496  >$cache_file
1497fi
1498
1499# Check that the precious variables saved in the cache have kept the same
1500# value.
1501ac_cache_corrupted=false
1502for ac_var in `(set) 2>&1 |
1503               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1504  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1505  eval ac_new_set=\$ac_env_${ac_var}_set
1506  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1507  eval ac_new_val="\$ac_env_${ac_var}_value"
1508  case $ac_old_set,$ac_new_set in
1509    set,)
1510      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1511echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1512      ac_cache_corrupted=: ;;
1513    ,set)
1514      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1515echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1516      ac_cache_corrupted=: ;;
1517    ,);;
1518    *)
1519      if test "x$ac_old_val" != "x$ac_new_val"; then
1520        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1521echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1522        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1523echo "$as_me:   former value:  $ac_old_val" >&2;}
1524        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1525echo "$as_me:   current value: $ac_new_val" >&2;}
1526        ac_cache_corrupted=:
1527      fi;;
1528  esac
1529  # Pass precious variables to config.status.
1530  if test "$ac_new_set" = set; then
1531    case $ac_new_val in
1532    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1533      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1534    *) ac_arg=$ac_var=$ac_new_val ;;
1535    esac
1536    case " $ac_configure_args " in
1537      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1538      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1539    esac
1540  fi
1541done
1542if $ac_cache_corrupted; then
1543  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1544echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1545  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1546echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1547   { (exit 1); exit 1; }; }
1548fi
1549
1550ac_ext=c
1551ac_cpp='$CPP $CPPFLAGS'
1552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1554ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585# List one file in the package so that the configure script can test
1586# whether the package is actually there
1587
1588
1589# Where should everything be installed by default?  Here, we want it
1590# to be installed directly in 'bin', 'lib', 'include' subdirectories
1591# of the directory where configure is run.  The default would be
1592# /usr/local.
1593
1594
1595# Initialize the ADDLIBS variable
1596ADDLIBS="-lm $LIBS"
1597
1598
1599# Initialize the FADDLIBS variable (which is to be used with a fortran
1600# compiler and will not include FLIBS)
1601FADDLIBS="$LIBS"
1602
1603
1604# A useful makefile conditional that is always false
1605
1606
1607if false; then
1608  ALWAYS_FALSE_TRUE=
1609  ALWAYS_FALSE_FALSE='#'
1610else
1611  ALWAYS_FALSE_TRUE='#'
1612  ALWAYS_FALSE_FALSE=
1613fi
1614
1615
1616# We set the following variable so that we know later in AC_COIN_FINALIZE
1617# that we are in a project main directory
1618coin_projectdir=yes
1619
1620
1621#############################################################################
1622#                         Standard build tool stuff                         #
1623#############################################################################
1624
1625# Get the system type
1626ac_aux_dir=
1627for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1628  if test -f $ac_dir/install-sh; then
1629    ac_aux_dir=$ac_dir
1630    ac_install_sh="$ac_aux_dir/install-sh -c"
1631    break
1632  elif test -f $ac_dir/install.sh; then
1633    ac_aux_dir=$ac_dir
1634    ac_install_sh="$ac_aux_dir/install.sh -c"
1635    break
1636  elif test -f $ac_dir/shtool; then
1637    ac_aux_dir=$ac_dir
1638    ac_install_sh="$ac_aux_dir/shtool install -c"
1639    break
1640  fi
1641done
1642if test -z "$ac_aux_dir"; then
1643  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1644echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1645   { (exit 1); exit 1; }; }
1646fi
1647ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1648ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1649ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1650
1651# Make sure we can run config.sub.
1652$ac_config_sub sun4 >/dev/null 2>&1 ||
1653  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1654echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1655   { (exit 1); exit 1; }; }
1656
1657echo "$as_me:$LINENO: checking build system type" >&5
1658echo $ECHO_N "checking build system type... $ECHO_C" >&6
1659if test "${ac_cv_build+set}" = set; then
1660  echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662  ac_cv_build_alias=$build_alias
1663test -z "$ac_cv_build_alias" &&
1664  ac_cv_build_alias=`$ac_config_guess`
1665test -z "$ac_cv_build_alias" &&
1666  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1667echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1668   { (exit 1); exit 1; }; }
1669ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1670  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1671echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1672   { (exit 1); exit 1; }; }
1673
1674fi
1675echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1676echo "${ECHO_T}$ac_cv_build" >&6
1677build=$ac_cv_build
1678build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681
1682
1683
1684# Check if user wants to produce debugging code
1685
1686echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1687echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1688
1689# Check whether --enable-debug or --disable-debug was given.
1690if test "${enable_debug+set}" = set; then
1691  enableval="$enable_debug"
1692  case "${enableval}" in
1693   yes) coin_debug_compile=true
1694        enable_shared=no
1695        ;;
1696   no)  coin_debug_compile=false
1697        ;;
1698   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1699echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1700   { (exit 1); exit 1; }; }
1701        ;;
1702esac
1703else
1704  coin_debug_compile=false
1705fi;
1706
1707# Check whether --enable-debug-blas or --disable-debug-blas was given.
1708if test "${enable_debug_blas+set}" = set; then
1709  enableval="$enable_debug_blas"
1710  case "${enableval}" in
1711    yes) coin_debug_compile=true
1712         enable_shared=no
1713         ;;
1714    no)  coin_debug_compile=false
1715         ;;
1716    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1717echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1718   { (exit 1); exit 1; }; }
1719         ;;
1720 esac
1721else
1722  :
1723fi;
1724
1725 # m4_ifvaln([Blas],
1726
1727if test $coin_debug_compile = true; then
1728  echo "$as_me:$LINENO: result: yes" >&5
1729echo "${ECHO_T}yes" >&6
1730else
1731  echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
1733fi
1734
1735
1736# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1737if test "${with_blas_verbosity+set}" = set; then
1738  withval="$with_blas_verbosity"
1739  if test "$withval" = yes; then
1740                withval=1
1741              fi
1742              coin_blas_verbosity=$withval
1743else
1744  coin_blas_verbosity=0
1745fi;
1746
1747cat >>confdefs.h <<_ACEOF
1748#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1749_ACEOF
1750
1751
1752
1753# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1754if test "${with_blas_checklevel+set}" = set; then
1755  withval="$with_blas_checklevel"
1756  if test "$withval" = yes; then
1757                withval=1
1758              fi
1759              coin_blas_checklevel=$withval
1760else
1761  coin_blas_checklevel=0
1762fi;
1763
1764cat >>confdefs.h <<_ACEOF
1765#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1766_ACEOF
1767
1768
1769# We use the following variable to have a string with the upper case
1770# version of the project name
1771COIN_PRJCT=BLAS
1772
1773
1774 # m4_ifvaln([Blas],
1775
1776
1777
1778# Get the name of the Fortran compiler and appropriate compiler options
1779case $build in
1780  *-mingw*)
1781    if test "${LD+set}" = set; then :; else
1782      LD=link
1783    fi
1784    ;;
1785 esac
1786 case $enable_doscompile in
1787   msvc)
1788     if test "x${LD+set}" = xset; then :; else
1789       LD=link
1790     fi
1791     ;;
1792 esac
1793
1794
1795 # Check whether --enable-doscompile or --disable-doscompile was given.
1796if test "${enable_doscompile+set}" = set; then
1797  enableval="$enable_doscompile"
1798  if test "$enable_doscompile" != no; then
1799     case $build in
1800       *-cygwin*) ;;
1801       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1802echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1803   { (exit 1); exit 1; }; } ;;
1804     esac
1805   fi
1806else
1807  enable_doscompile=no
1808fi;
1809 case "$enable_doscompile" in
1810   msvc|mingw|no) ;;
1811   yes) enable_doscompile=mingw ;;
1812   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1813                    Try configure --help=recursive." >&5
1814echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1815                    Try configure --help=recursive." >&2;}
1816   { (exit 1); exit 1; }; }
1817      ;;
1818  esac
1819  if test "$enable_doscompile" != no ; then
1820    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1821echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1822  fi
1823
1824
1825
1826
1827ac_ext=c
1828ac_cpp='$CPP $CPPFLAGS'
1829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832
1833
1834# For consistency, we set the C compiler to the same value of the C++
1835# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1836if test x"$CXX" != x; then
1837  case "$CXX" in
1838    cl* | */cl* | CL* | */CL*)
1839      if test x"$CC" = x; then
1840        CC="$CXX"
1841        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1842echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1843      fi
1844      ;;
1845  esac
1846fi
1847
1848
1849
1850
1851
1852
1853coin_has_cc=yes
1854
1855save_cflags="$CFLAGS"
1856# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1857# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1858# is likely to be a non-functional shell. But many installations will have
1859# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1860case $build in
1861  *-cygwin* | *-mingw*)
1862             if test "$enable_doscompile" = msvc ; then
1863               comps="cl"
1864             else
1865               comps="gcc cl"
1866             fi ;;
1867  sparc-sun-solaris*)
1868             comps="cc xlc gcc pgcc icc" ;;
1869  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1870  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1871esac
1872
1873# We delete the cached value, since the test might not have been
1874# performed with our choice of compilers earlier
1875$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1876# AC_MSG_NOTICE([C compiler candidates: $comps])
1877ac_ext=c
1878ac_cpp='$CPP $CPPFLAGS'
1879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1881ac_compiler_gnu=$ac_cv_c_compiler_gnu
1882if test -n "$ac_tool_prefix"; then
1883  for ac_prog in $comps
1884  do
1885    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1886set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_CC+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$CC"; then
1893  ac_cv_prog_CC="$CC" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898  IFS=$as_save_IFS
1899  test -z "$as_dir" && as_dir=.
1900  for ac_exec_ext in '' $ac_executable_extensions; do
1901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904    break 2
1905  fi
1906done
1907done
1908
1909fi
1910fi
1911CC=$ac_cv_prog_CC
1912if test -n "$CC"; then
1913  echo "$as_me:$LINENO: result: $CC" >&5
1914echo "${ECHO_T}$CC" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920    test -n "$CC" && break
1921  done
1922fi
1923if test -z "$CC"; then
1924  ac_ct_CC=$CC
1925  for ac_prog in $comps
1926do
1927  # Extract the first word of "$ac_prog", so it can be a program name with args.
1928set dummy $ac_prog; ac_word=$2
1929echo "$as_me:$LINENO: checking for $ac_word" >&5
1930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1931if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932  echo $ECHO_N "(cached) $ECHO_C" >&6
1933else
1934  if test -n "$ac_ct_CC"; then
1935  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1936else
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940  IFS=$as_save_IFS
1941  test -z "$as_dir" && as_dir=.
1942  for ac_exec_ext in '' $ac_executable_extensions; do
1943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944    ac_cv_prog_ac_ct_CC="$ac_prog"
1945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946    break 2
1947  fi
1948done
1949done
1950
1951fi
1952fi
1953ac_ct_CC=$ac_cv_prog_ac_ct_CC
1954if test -n "$ac_ct_CC"; then
1955  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1956echo "${ECHO_T}$ac_ct_CC" >&6
1957else
1958  echo "$as_me:$LINENO: result: no" >&5
1959echo "${ECHO_T}no" >&6
1960fi
1961
1962  test -n "$ac_ct_CC" && break
1963done
1964
1965  CC=$ac_ct_CC
1966fi
1967
1968
1969test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1970See \`config.log' for more details." >&5
1971echo "$as_me: error: no acceptable C compiler found in \$PATH
1972See \`config.log' for more details." >&2;}
1973   { (exit 1); exit 1; }; }
1974
1975# Provide some information about the compiler.
1976echo "$as_me:$LINENO:" \
1977     "checking for C compiler version" >&5
1978ac_compiler=`set X $ac_compile; echo $2`
1979{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1980  (eval $ac_compiler --version </dev/null >&5) 2>&5
1981  ac_status=$?
1982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983  (exit $ac_status); }
1984{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1985  (eval $ac_compiler -v </dev/null >&5) 2>&5
1986  ac_status=$?
1987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988  (exit $ac_status); }
1989{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1990  (eval $ac_compiler -V </dev/null >&5) 2>&5
1991  ac_status=$?
1992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993  (exit $ac_status); }
1994
1995cat >conftest.$ac_ext <<_ACEOF
1996/* confdefs.h.  */
1997_ACEOF
1998cat confdefs.h >>conftest.$ac_ext
1999cat >>conftest.$ac_ext <<_ACEOF
2000/* end confdefs.h.  */
2001
2002int
2003main ()
2004{
2005
2006  ;
2007  return 0;
2008}
2009_ACEOF
2010ac_clean_files_save=$ac_clean_files
2011ac_clean_files="$ac_clean_files a.out a.exe b.out"
2012# Try to create an executable without -o first, disregard a.out.
2013# It will help us diagnose broken compilers, and finding out an intuition
2014# of exeext.
2015echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2016echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2017ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019  (eval $ac_link_default) 2>&5
2020  ac_status=$?
2021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022  (exit $ac_status); }; then
2023  # Find the output, starting from the most likely.  This scheme is
2024# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2025# resort.
2026
2027# Be careful to initialize this variable, since it used to be cached.
2028# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2029ac_cv_exeext=
2030# b.out is created by i960 compilers.
2031for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2032do
2033  test -f "$ac_file" || continue
2034  case $ac_file in
2035    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2036        ;;
2037    conftest.$ac_ext )
2038        # This is the source file.
2039        ;;
2040    [ab].out )
2041        # We found the default executable, but exeext='' is most
2042        # certainly right.
2043        break;;
2044    *.* )
2045        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046        # FIXME: I believe we export ac_cv_exeext for Libtool,
2047        # but it would be cool to find out if it's true.  Does anybody
2048        # maintain Libtool? --akim.
2049        export ac_cv_exeext
2050        break;;
2051    * )
2052        break;;
2053  esac
2054done
2055else
2056  echo "$as_me: failed program was:" >&5
2057sed 's/^/| /' conftest.$ac_ext >&5
2058
2059{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2060See \`config.log' for more details." >&5
2061echo "$as_me: error: C compiler cannot create executables
2062See \`config.log' for more details." >&2;}
2063   { (exit 77); exit 77; }; }
2064fi
2065
2066ac_exeext=$ac_cv_exeext
2067echo "$as_me:$LINENO: result: $ac_file" >&5
2068echo "${ECHO_T}$ac_file" >&6
2069
2070# Check the compiler produces executables we can run.  If not, either
2071# the compiler is broken, or we cross compile.
2072echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2073echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2074# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2075# If not cross compiling, check that we can run a simple program.
2076if test "$cross_compiling" != yes; then
2077  if { ac_try='./$ac_file'
2078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079  (eval $ac_try) 2>&5
2080  ac_status=$?
2081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082  (exit $ac_status); }; }; then
2083    cross_compiling=no
2084  else
2085    if test "$cross_compiling" = maybe; then
2086        cross_compiling=yes
2087    else
2088        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2089If you meant to cross compile, use \`--host'.
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: cannot run C compiled programs.
2092If you meant to cross compile, use \`--host'.
2093See \`config.log' for more details." >&2;}
2094   { (exit 1); exit 1; }; }
2095    fi
2096  fi
2097fi
2098echo "$as_me:$LINENO: result: yes" >&5
2099echo "${ECHO_T}yes" >&6
2100
2101rm -f a.out a.exe conftest$ac_cv_exeext b.out
2102ac_clean_files=$ac_clean_files_save
2103# Check the compiler produces executables we can run.  If not, either
2104# the compiler is broken, or we cross compile.
2105echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2106echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2107echo "$as_me:$LINENO: result: $cross_compiling" >&5
2108echo "${ECHO_T}$cross_compiling" >&6
2109
2110echo "$as_me:$LINENO: checking for suffix of executables" >&5
2111echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113  (eval $ac_link) 2>&5
2114  ac_status=$?
2115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116  (exit $ac_status); }; then
2117  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2118# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2119# work properly (i.e., refer to `conftest.exe'), while it won't with
2120# `rm'.
2121for ac_file in conftest.exe conftest conftest.*; do
2122  test -f "$ac_file" || continue
2123  case $ac_file in
2124    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2125    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2126          export ac_cv_exeext
2127          break;;
2128    * ) break;;
2129  esac
2130done
2131else
2132  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2133See \`config.log' for more details." >&5
2134echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2135See \`config.log' for more details." >&2;}
2136   { (exit 1); exit 1; }; }
2137fi
2138
2139rm -f conftest$ac_cv_exeext
2140echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2141echo "${ECHO_T}$ac_cv_exeext" >&6
2142
2143rm -f conftest.$ac_ext
2144EXEEXT=$ac_cv_exeext
2145ac_exeext=$EXEEXT
2146echo "$as_me:$LINENO: checking for suffix of object files" >&5
2147echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2148if test "${ac_cv_objext+set}" = set; then
2149  echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151  cat >conftest.$ac_ext <<_ACEOF
2152/* confdefs.h.  */
2153_ACEOF
2154cat confdefs.h >>conftest.$ac_ext
2155cat >>conftest.$ac_ext <<_ACEOF
2156/* end confdefs.h.  */
2157
2158int
2159main ()
2160{
2161
2162  ;
2163  return 0;
2164}
2165_ACEOF
2166rm -f conftest.o conftest.obj
2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168  (eval $ac_compile) 2>&5
2169  ac_status=$?
2170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171  (exit $ac_status); }; then
2172  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2173  case $ac_file in
2174    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2175    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2176       break;;
2177  esac
2178done
2179else
2180  echo "$as_me: failed program was:" >&5
2181sed 's/^/| /' conftest.$ac_ext >&5
2182
2183{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2184See \`config.log' for more details." >&5
2185echo "$as_me: error: cannot compute suffix of object files: cannot compile
2186See \`config.log' for more details." >&2;}
2187   { (exit 1); exit 1; }; }
2188fi
2189
2190rm -f conftest.$ac_cv_objext conftest.$ac_ext
2191fi
2192echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2193echo "${ECHO_T}$ac_cv_objext" >&6
2194OBJEXT=$ac_cv_objext
2195ac_objext=$OBJEXT
2196echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2197echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2198if test "${ac_cv_c_compiler_gnu+set}" = set; then
2199  echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
2201  cat >conftest.$ac_ext <<_ACEOF
2202/* confdefs.h.  */
2203_ACEOF
2204cat confdefs.h >>conftest.$ac_ext
2205cat >>conftest.$ac_ext <<_ACEOF
2206/* end confdefs.h.  */
2207
2208int
2209main ()
2210{
2211#ifndef __GNUC__
2212       choke me
2213#endif
2214
2215  ;
2216  return 0;
2217}
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221  (eval $ac_compile) 2>conftest.er1
2222  ac_status=$?
2223  grep -v '^ *+' conftest.er1 >conftest.err
2224  rm -f conftest.er1
2225  cat conftest.err >&5
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); } &&
2228         { ac_try='test -z "$ac_c_werror_flag"
2229                         || test ! -s conftest.err'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; } &&
2235         { ac_try='test -s conftest.$ac_objext'
2236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237  (eval $ac_try) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; }; then
2241  ac_compiler_gnu=yes
2242else
2243  echo "$as_me: failed program was:" >&5
2244sed 's/^/| /' conftest.$ac_ext >&5
2245
2246ac_compiler_gnu=no
2247fi
2248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2249ac_cv_c_compiler_gnu=$ac_compiler_gnu
2250
2251fi
2252echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2253echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2254GCC=`test $ac_compiler_gnu = yes && echo yes`
2255ac_test_CFLAGS=${CFLAGS+set}
2256ac_save_CFLAGS=$CFLAGS
2257CFLAGS="-g"
2258echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2259echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2260if test "${ac_cv_prog_cc_g+set}" = set; then
2261  echo $ECHO_N "(cached) $ECHO_C" >&6
2262else
2263  cat >conftest.$ac_ext <<_ACEOF
2264/* confdefs.h.  */
2265_ACEOF
2266cat confdefs.h >>conftest.$ac_ext
2267cat >>conftest.$ac_ext <<_ACEOF
2268/* end confdefs.h.  */
2269
2270int
2271main ()
2272{
2273
2274  ;
2275  return 0;
2276}
2277_ACEOF
2278rm -f conftest.$ac_objext
2279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280  (eval $ac_compile) 2>conftest.er1
2281  ac_status=$?
2282  grep -v '^ *+' conftest.er1 >conftest.err
2283  rm -f conftest.er1
2284  cat conftest.err >&5
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); } &&
2287         { ac_try='test -z "$ac_c_werror_flag"
2288                         || test ! -s conftest.err'
2289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290  (eval $ac_try) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }; } &&
2294         { ac_try='test -s conftest.$ac_objext'
2295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296  (eval $ac_try) 2>&5
2297  ac_status=$?
2298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299  (exit $ac_status); }; }; then
2300  ac_cv_prog_cc_g=yes
2301else
2302  echo "$as_me: failed program was:" >&5
2303sed 's/^/| /' conftest.$ac_ext >&5
2304
2305ac_cv_prog_cc_g=no
2306fi
2307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2308fi
2309echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2310echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2311if test "$ac_test_CFLAGS" = set; then
2312  CFLAGS=$ac_save_CFLAGS
2313elif test $ac_cv_prog_cc_g = yes; then
2314  if test "$GCC" = yes; then
2315    CFLAGS="-g -O2"
2316  else
2317    CFLAGS="-g"
2318  fi
2319else
2320  if test "$GCC" = yes; then
2321    CFLAGS="-O2"
2322  else
2323    CFLAGS=
2324  fi
2325fi
2326echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2327echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2328if test "${ac_cv_prog_cc_stdc+set}" = set; then
2329  echo $ECHO_N "(cached) $ECHO_C" >&6
2330else
2331  ac_cv_prog_cc_stdc=no
2332ac_save_CC=$CC
2333cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h.  */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h.  */
2339#include <stdarg.h>
2340#include <stdio.h>
2341#include <sys/types.h>
2342#include <sys/stat.h>
2343/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2344struct buf { int x; };
2345FILE * (*rcsopen) (struct buf *, struct stat *, int);
2346static char *e (p, i)
2347     char **p;
2348     int i;
2349{
2350  return p[i];
2351}
2352static char *f (char * (*g) (char **, int), char **p, ...)
2353{
2354  char *s;
2355  va_list v;
2356  va_start (v,p);
2357  s = g (p, va_arg (v,int));
2358  va_end (v);
2359  return s;
2360}
2361
2362/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2363   function prototypes and stuff, but not '\xHH' hex character constants.
2364   These don't provoke an error unfortunately, instead are silently treated
2365   as 'x'.  The following induces an error, until -std1 is added to get
2366   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2367   array size at least.  It's necessary to write '\x00'==0 to get something
2368   that's true only with -std1.  */
2369int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2370
2371int test (int i, double x);
2372struct s1 {int (*f) (int a);};
2373struct s2 {int (*f) (double a);};
2374int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2375int argc;
2376char **argv;
2377int
2378main ()
2379{
2380return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2381  ;
2382  return 0;
2383}
2384_ACEOF
2385# Don't try gcc -ansi; that turns off useful extensions and
2386# breaks some systems' header files.
2387# AIX                   -qlanglvl=ansi
2388# Ultrix and OSF/1      -std1
2389# HP-UX 10.20 and later -Ae
2390# HP-UX older versions  -Aa -D_HPUX_SOURCE
2391# SVR4                  -Xc -D__EXTENSIONS__
2392for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2393do
2394  CC="$ac_save_CC $ac_arg"
2395  rm -f conftest.$ac_objext
2396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397  (eval $ac_compile) 2>conftest.er1
2398  ac_status=$?
2399  grep -v '^ *+' conftest.er1 >conftest.err
2400  rm -f conftest.er1
2401  cat conftest.err >&5
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); } &&
2404         { ac_try='test -z "$ac_c_werror_flag"
2405                         || test ! -s conftest.err'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; } &&
2411         { ac_try='test -s conftest.$ac_objext'
2412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413  (eval $ac_try) 2>&5
2414  ac_status=$?
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); }; }; then
2417  ac_cv_prog_cc_stdc=$ac_arg
2418break
2419else
2420  echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423fi
2424rm -f conftest.err conftest.$ac_objext
2425done
2426rm -f conftest.$ac_ext conftest.$ac_objext
2427CC=$ac_save_CC
2428
2429fi
2430
2431case "x$ac_cv_prog_cc_stdc" in
2432  x|xno)
2433    echo "$as_me:$LINENO: result: none needed" >&5
2434echo "${ECHO_T}none needed" >&6 ;;
2435  *)
2436    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2437echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2438    CC="$CC $ac_cv_prog_cc_stdc" ;;
2439esac
2440
2441# Some people use a C++ compiler to compile C.  Since we use `exit',
2442# in C++ we need to declare it.  In case someone uses the same compiler
2443# for both compiling C and C++ we need to have the C++ compiler decide
2444# the declaration of exit, since it's the most demanding environment.
2445cat >conftest.$ac_ext <<_ACEOF
2446#ifndef __cplusplus
2447  choke me
2448#endif
2449_ACEOF
2450rm -f conftest.$ac_objext
2451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452  (eval $ac_compile) 2>conftest.er1
2453  ac_status=$?
2454  grep -v '^ *+' conftest.er1 >conftest.err
2455  rm -f conftest.er1
2456  cat conftest.err >&5
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); } &&
2459         { ac_try='test -z "$ac_c_werror_flag"
2460                         || test ! -s conftest.err'
2461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462  (eval $ac_try) 2>&5
2463  ac_status=$?
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); }; } &&
2466         { ac_try='test -s conftest.$ac_objext'
2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468  (eval $ac_try) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; }; then
2472  for ac_declaration in \
2473   '' \
2474   'extern "C" void std::exit (int) throw (); using std::exit;' \
2475   'extern "C" void std::exit (int); using std::exit;' \
2476   'extern "C" void exit (int) throw ();' \
2477   'extern "C" void exit (int);' \
2478   'void exit (int);'
2479do
2480  cat >conftest.$ac_ext <<_ACEOF
2481/* confdefs.h.  */
2482_ACEOF
2483cat confdefs.h >>conftest.$ac_ext
2484cat >>conftest.$ac_ext <<_ACEOF
2485/* end confdefs.h.  */
2486$ac_declaration
2487#include <stdlib.h>
2488int
2489main ()
2490{
2491exit (42);
2492  ;
2493  return 0;
2494}
2495_ACEOF
2496rm -f conftest.$ac_objext
2497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498  (eval $ac_compile) 2>conftest.er1
2499  ac_status=$?
2500  grep -v '^ *+' conftest.er1 >conftest.err
2501  rm -f conftest.er1
2502  cat conftest.err >&5
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); } &&
2505         { ac_try='test -z "$ac_c_werror_flag"
2506                         || test ! -s conftest.err'
2507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508  (eval $ac_try) 2>&5
2509  ac_status=$?
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); }; } &&
2512         { ac_try='test -s conftest.$ac_objext'
2513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514  (eval $ac_try) 2>&5
2515  ac_status=$?
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); }; }; then
2518  :
2519else
2520  echo "$as_me: failed program was:" >&5
2521sed 's/^/| /' conftest.$ac_ext >&5
2522
2523continue
2524fi
2525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2526  cat >conftest.$ac_ext <<_ACEOF
2527/* confdefs.h.  */
2528_ACEOF
2529cat confdefs.h >>conftest.$ac_ext
2530cat >>conftest.$ac_ext <<_ACEOF
2531/* end confdefs.h.  */
2532$ac_declaration
2533int
2534main ()
2535{
2536exit (42);
2537  ;
2538  return 0;
2539}
2540_ACEOF
2541rm -f conftest.$ac_objext
2542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543  (eval $ac_compile) 2>conftest.er1
2544  ac_status=$?
2545  grep -v '^ *+' conftest.er1 >conftest.err
2546  rm -f conftest.er1
2547  cat conftest.err >&5
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); } &&
2550         { ac_try='test -z "$ac_c_werror_flag"
2551                         || test ! -s conftest.err'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; } &&
2557         { ac_try='test -s conftest.$ac_objext'
2558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559  (eval $ac_try) 2>&5
2560  ac_status=$?
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); }; }; then
2563  break
2564else
2565  echo "$as_me: failed program was:" >&5
2566sed 's/^/| /' conftest.$ac_ext >&5
2567
2568fi
2569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2570done
2571rm -f conftest*
2572if test -n "$ac_declaration"; then
2573  echo '#ifdef __cplusplus' >>confdefs.h
2574  echo $ac_declaration      >>confdefs.h
2575  echo '#endif'             >>confdefs.h
2576fi
2577
2578else
2579  echo "$as_me: failed program was:" >&5
2580sed 's/^/| /' conftest.$ac_ext >&5
2581
2582fi
2583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2584ac_ext=c
2585ac_cpp='$CPP $CPPFLAGS'
2586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2588ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589
2590if test -z "$CC" ; then
2591  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2592echo "$as_me: error: Failed to find a C compiler!" >&2;}
2593   { (exit 1); exit 1; }; }
2594fi
2595# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2596case "$CC" in
2597  cl* | */cl* | CL* | */CL* )
2598    if test "$ac_cv_prog_cc_g" = yes ; then
2599      ac_cv_prog_cc_g=no
2600      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2601echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2602    fi ;;
2603esac
2604CFLAGS="$save_cflags"
2605
2606# Check if a project specific CFLAGS variable has been set
2607if test x$COIN_PRJCT != x; then
2608  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2609  if test x$coin_tmp = xset; then
2610    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2611  fi
2612fi
2613
2614if test x"$CFLAGS" = x; then
2615
2616  coin_add_cflags=
2617  coin_opt_cflags=
2618  coin_dbg_cflags=
2619  coin_warn_cflags=
2620
2621  if test "$GCC" = "yes"; then
2622    case "$CC" in
2623      icc* | */icc*)
2624        ;;
2625      *)
2626        coin_opt_cflags="-O3 -fomit-frame-pointer"
2627        coin_add_cflags="-pipe"
2628        coin_dbg_cflags="-g"
2629        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2630        case $enable_doscompile in
2631          mingw)
2632            CFLAGS="-mno-cygwin"
2633            cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h.  */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h.  */
2639
2640int
2641main ()
2642{
2643int i=0; i++;
2644  ;
2645  return 0;
2646}
2647_ACEOF
2648rm -f conftest.$ac_objext conftest$ac_exeext
2649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2650  (eval $ac_link) 2>conftest.er1
2651  ac_status=$?
2652  grep -v '^ *+' conftest.er1 >conftest.err
2653  rm -f conftest.er1
2654  cat conftest.err >&5
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); } &&
2657         { ac_try='test -z "$ac_c_werror_flag"
2658                         || test ! -s conftest.err'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; } &&
2664         { ac_try='test -s conftest$ac_exeext'
2665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666  (eval $ac_try) 2>&5
2667  ac_status=$?
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); }; }; then
2670  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2671else
2672  echo "$as_me: failed program was:" >&5
2673sed 's/^/| /' conftest.$ac_ext >&5
2674
2675fi
2676rm -f conftest.err conftest.$ac_objext \
2677      conftest$ac_exeext conftest.$ac_ext
2678            CFLAGS=
2679          ;;
2680        esac
2681    esac
2682  fi
2683  if test -z "$coin_opt_cflags"; then
2684    case $build in
2685      *-cygwin* | *-mingw*)
2686        case "$CC" in
2687          cl* | */cl* | CL* | */CL*)
2688            coin_opt_cflags='-MT -O2'
2689            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2690            coin_dbg_cflags='-MTd'
2691            ;;
2692        esac
2693        ;;
2694      *-linux-*)
2695        case "$CC" in
2696          icc* | */icc*)
2697            coin_opt_cflags="-O3 -ip"
2698            coin_add_cflags=""
2699            coin_dbg_cflags="-g"
2700            # Check if -i_dynamic is necessary (for new glibc library)
2701            CFLAGS=
2702            cat >conftest.$ac_ext <<_ACEOF
2703/* confdefs.h.  */
2704_ACEOF
2705cat confdefs.h >>conftest.$ac_ext
2706cat >>conftest.$ac_ext <<_ACEOF
2707/* end confdefs.h.  */
2708
2709int
2710main ()
2711{
2712int i=0; i++;
2713  ;
2714  return 0;
2715}
2716_ACEOF
2717rm -f conftest.$ac_objext conftest$ac_exeext
2718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2719  (eval $ac_link) 2>conftest.er1
2720  ac_status=$?
2721  grep -v '^ *+' conftest.er1 >conftest.err
2722  rm -f conftest.er1
2723  cat conftest.err >&5
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); } &&
2726         { ac_try='test -z "$ac_c_werror_flag"
2727                         || test ! -s conftest.err'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; } &&
2733         { ac_try='test -s conftest$ac_exeext'
2734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735  (eval $ac_try) 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }; }; then
2739  :
2740else
2741  echo "$as_me: failed program was:" >&5
2742sed 's/^/| /' conftest.$ac_ext >&5
2743
2744coin_add_cflags="-i_dynamic $coin_add_cflags"
2745fi
2746rm -f conftest.err conftest.$ac_objext \
2747      conftest$ac_exeext conftest.$ac_ext
2748            ;;
2749          pgcc* | */pgcc*)
2750            coin_opt_cflags="-fast"
2751            coin_add_cflags="-Kieee -pc 64"
2752            coin_dbg_cflags="-g"
2753            ;;
2754        esac
2755        ;;
2756      *-ibm-*)
2757        case "$CC" in
2758          xlc* | */xlc* | mpxlc* | */mpxlc*)
2759            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2760            coin_add_cflags="-bmaxdata:0x80000000"
2761            coin_dbg_cflags="-g"
2762          ;;
2763        esac
2764        ;;
2765      *-hp-*)
2766        coin_opt_cflags="-O"
2767        coin_add_cflags="-Ae"
2768        coin_dbg_cflags="-g"
2769        ;;
2770      *-sun-*)
2771        coin_opt_cflags="-xO4"
2772        coin_dbg_cflags="-g"
2773        ;;
2774      *-sgi-*)
2775        coin_opt_cflags="-O -OPT:Olimit=0"
2776        coin_dbg_cflags="-g"
2777        ;;
2778    esac
2779  fi
2780
2781  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2782    coin_dbg_cflags="-g"
2783  fi
2784
2785  if test -z "$coin_opt_cflags"; then
2786    # Try if -O option works if nothing else is set
2787    CFLAGS="-O"
2788    cat >conftest.$ac_ext <<_ACEOF
2789/* confdefs.h.  */
2790_ACEOF
2791cat confdefs.h >>conftest.$ac_ext
2792cat >>conftest.$ac_ext <<_ACEOF
2793/* end confdefs.h.  */
2794
2795int
2796main ()
2797{
2798int i=0; i++;
2799  ;
2800  return 0;
2801}
2802_ACEOF
2803rm -f conftest.$ac_objext conftest$ac_exeext
2804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2805  (eval $ac_link) 2>conftest.er1
2806  ac_status=$?
2807  grep -v '^ *+' conftest.er1 >conftest.err
2808  rm -f conftest.er1
2809  cat conftest.err >&5
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); } &&
2812         { ac_try='test -z "$ac_c_werror_flag"
2813                         || test ! -s conftest.err'
2814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815  (eval $ac_try) 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }; } &&
2819         { ac_try='test -s conftest$ac_exeext'
2820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821  (eval $ac_try) 2>&5
2822  ac_status=$?
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); }; }; then
2825  coin_opt_cflags="-O"
2826else
2827  echo "$as_me: failed program was:" >&5
2828sed 's/^/| /' conftest.$ac_ext >&5
2829
2830fi
2831rm -f conftest.err conftest.$ac_objext \
2832      conftest$ac_exeext conftest.$ac_ext
2833  fi
2834
2835  # if PM doesn't want the warning messages, take them out
2836  if test x"$coin_skip_warn_cflags" = xyes; then
2837    coin_warn_cflags=
2838  fi
2839
2840  if test x${DBG_CFLAGS+set} != xset; then
2841    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2842  fi
2843  if test x${OPT_CFLAGS+set} != xset; then
2844    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2845  fi
2846
2847  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2848  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2849
2850  if test "$coin_debug_compile" = "true"; then
2851    CFLAGS="$DBG_CFLAGS"
2852  else
2853    CFLAGS="$OPT_CFLAGS"
2854  fi
2855else
2856  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2857  if test x${DBG_CFLAGS+set} != xset; then
2858    DBG_CFLAGS="$CFLAGS"
2859  fi
2860  if test x${OPT_CFLAGS+set} != xset; then
2861    OPT_CFLAGS="$CFLAGS"
2862  fi
2863fi
2864
2865# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2866
2867case "$CFLAGS" in
2868  *-mno-cygwin*)
2869    if test x${CPPFLAGS+set} != xset ; then
2870      CPPFLAGS="-mno-cygwin"
2871    else
2872      case "$CPPFLAGS" in
2873        *-mno-cygwin*)
2874          ;;
2875        *)
2876          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2877          ;;
2878      esac
2879    fi ;;
2880esac
2881
2882# Try if CFLAGS works
2883save_CFLAGS="$CFLAGS"
2884cat >conftest.$ac_ext <<_ACEOF
2885/* confdefs.h.  */
2886_ACEOF
2887cat confdefs.h >>conftest.$ac_ext
2888cat >>conftest.$ac_ext <<_ACEOF
2889/* end confdefs.h.  */
2890
2891int
2892main ()
2893{
2894int i=0; i++;
2895  ;
2896  return 0;
2897}
2898_ACEOF
2899rm -f conftest.$ac_objext conftest$ac_exeext
2900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2901  (eval $ac_link) 2>conftest.er1
2902  ac_status=$?
2903  grep -v '^ *+' conftest.er1 >conftest.err
2904  rm -f conftest.er1
2905  cat conftest.err >&5
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); } &&
2908         { ac_try='test -z "$ac_c_werror_flag"
2909                         || test ! -s conftest.err'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; } &&
2915         { ac_try='test -s conftest$ac_exeext'
2916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917  (eval $ac_try) 2>&5
2918  ac_status=$?
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); }; }; then
2921  :
2922else
2923  echo "$as_me: failed program was:" >&5
2924sed 's/^/| /' conftest.$ac_ext >&5
2925
2926CFLAGS=
2927fi
2928rm -f conftest.err conftest.$ac_objext \
2929      conftest$ac_exeext conftest.$ac_ext
2930if test -z "$CFLAGS"; then
2931  { 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
2932echo "$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;}
2933  CFLAGS='-O'
2934  cat >conftest.$ac_ext <<_ACEOF
2935/* confdefs.h.  */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
2939/* end confdefs.h.  */
2940
2941int
2942main ()
2943{
2944int i=0; i++;
2945  ;
2946  return 0;
2947}
2948_ACEOF
2949rm -f conftest.$ac_objext conftest$ac_exeext
2950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2951  (eval $ac_link) 2>conftest.er1
2952  ac_status=$?
2953  grep -v '^ *+' conftest.er1 >conftest.err
2954  rm -f conftest.er1
2955  cat conftest.err >&5
2956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957  (exit $ac_status); } &&
2958         { ac_try='test -z "$ac_c_werror_flag"
2959                         || test ! -s conftest.err'
2960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961  (eval $ac_try) 2>&5
2962  ac_status=$?
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); }; } &&
2965         { ac_try='test -s conftest$ac_exeext'
2966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967  (eval $ac_try) 2>&5
2968  ac_status=$?
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); }; }; then
2971  :
2972else
2973  echo "$as_me: failed program was:" >&5
2974sed 's/^/| /' conftest.$ac_ext >&5
2975
2976CFLAGS=
2977fi
2978rm -f conftest.err conftest.$ac_objext \
2979      conftest$ac_exeext conftest.$ac_ext
2980  if test -z "$CFLAGS"; then
2981    { 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
2982echo "$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;}
2983  fi
2984fi
2985
2986{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2987echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2988
2989
2990if test x"$MPICC" = x; then :; else
2991  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2992echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2993  CC="$MPICC"
2994fi
2995
2996# Correct ADDLIBS initialization if we are using the MS compiler
2997case "$CC" in
2998  cl* | */cl* | CL* | */CL*)
2999    ADDLIBS=
3000    case $build in
3001  *-mingw*)
3002    if test "${LD+set}" = set; then :; else
3003      LD=link
3004    fi
3005    ;;
3006 esac
3007 case $enable_doscompile in
3008   msvc)
3009     if test "x${LD+set}" = xset; then :; else
3010       LD=link
3011     fi
3012     ;;
3013 esac
3014
3015    ;;
3016esac
3017
3018ac_ext=c
3019ac_cpp='$CPP $CPPFLAGS'
3020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
3024
3025case $build in
3026  *-cygwin* | *-mingw*)
3027     if test "$enable_doscompile" = msvc ; then
3028       coin_f77_comps="ifort fl32 compile_f2c"
3029     else
3030       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3031     fi ;;
3032  sparc-sun-solaris*)
3033     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3034  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3035 esac
3036
3037
3038
3039
3040
3041
3042ac_ext=f
3043ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3044ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3046
3047
3048
3049
3050
3051
3052coin_has_f77=yes
3053
3054save_fflags="$FFLAGS"
3055
3056# We delete the cached value, since the test might not have been
3057# performed with our choice of compilers earlier
3058$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3059
3060# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3061# coin_f77_comps to see if there's a program that matches one of the names.
3062# If there's no such program, F77 = unavailable. If we match the name,
3063# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3064# compiler.
3065# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3066
3067
3068{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3069echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3070for ac_prog in $coin_f77_comps
3071do
3072  # Extract the first word of "$ac_prog", so it can be a program name with args.
3073set dummy $ac_prog; ac_word=$2
3074echo "$as_me:$LINENO: checking for $ac_word" >&5
3075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076if test "${ac_cv_prog_F77+set}" = set; then
3077  echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079  if test -n "$F77"; then
3080  ac_cv_prog_F77="$F77" # Let the user override the test.
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085  IFS=$as_save_IFS
3086  test -z "$as_dir" && as_dir=.
3087  for ac_exec_ext in '' $ac_executable_extensions; do
3088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089    ac_cv_prog_F77="$ac_prog"
3090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091    break 2
3092  fi
3093done
3094done
3095
3096fi
3097fi
3098F77=$ac_cv_prog_F77
3099if test -n "$F77"; then
3100  echo "$as_me:$LINENO: result: $F77" >&5
3101echo "${ECHO_T}$F77" >&6
3102else
3103  echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
3105fi
3106
3107  test -n "$F77" && break
3108done
3109test -n "$F77" || F77="unavailable"
3110
3111
3112if test "$F77" != "unavailable" ; then
3113  ac_ext=f
3114ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3115ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3117if test -n "$ac_tool_prefix"; then
3118  for ac_prog in $coin_f77_comps
3119  do
3120    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3121set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3122echo "$as_me:$LINENO: checking for $ac_word" >&5
3123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124if test "${ac_cv_prog_F77+set}" = set; then
3125  echo $ECHO_N "(cached) $ECHO_C" >&6
3126else
3127  if test -n "$F77"; then
3128  ac_cv_prog_F77="$F77" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133  IFS=$as_save_IFS
3134  test -z "$as_dir" && as_dir=.
3135  for ac_exec_ext in '' $ac_executable_extensions; do
3136  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3138    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139    break 2
3140  fi
3141done
3142done
3143
3144fi
3145fi
3146F77=$ac_cv_prog_F77
3147if test -n "$F77"; then
3148  echo "$as_me:$LINENO: result: $F77" >&5
3149echo "${ECHO_T}$F77" >&6
3150else
3151  echo "$as_me:$LINENO: result: no" >&5
3152echo "${ECHO_T}no" >&6
3153fi
3154
3155    test -n "$F77" && break
3156  done
3157fi
3158if test -z "$F77"; then
3159  ac_ct_F77=$F77
3160  for ac_prog in $coin_f77_comps
3161do
3162  # Extract the first word of "$ac_prog", so it can be a program name with args.
3163set dummy $ac_prog; ac_word=$2
3164echo "$as_me:$LINENO: checking for $ac_word" >&5
3165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3167  echo $ECHO_N "(cached) $ECHO_C" >&6
3168else
3169  if test -n "$ac_ct_F77"; then
3170  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177  for ac_exec_ext in '' $ac_executable_extensions; do
3178  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179    ac_cv_prog_ac_ct_F77="$ac_prog"
3180    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181    break 2
3182  fi
3183done
3184done
3185
3186fi
3187fi
3188ac_ct_F77=$ac_cv_prog_ac_ct_F77
3189if test -n "$ac_ct_F77"; then
3190  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3191echo "${ECHO_T}$ac_ct_F77" >&6
3192else
3193  echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
3195fi
3196
3197  test -n "$ac_ct_F77" && break
3198done
3199
3200  F77=$ac_ct_F77
3201fi
3202
3203
3204# Provide some information about the compiler.
3205echo "$as_me:3205:" \
3206     "checking for Fortran 77 compiler version" >&5
3207ac_compiler=`set X $ac_compile; echo $2`
3208{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3209  (eval $ac_compiler --version </dev/null >&5) 2>&5
3210  ac_status=$?
3211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212  (exit $ac_status); }
3213{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3214  (eval $ac_compiler -v </dev/null >&5) 2>&5
3215  ac_status=$?
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); }
3218{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3219  (eval $ac_compiler -V </dev/null >&5) 2>&5
3220  ac_status=$?
3221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222  (exit $ac_status); }
3223rm -f a.out
3224
3225# If we don't use `.F' as extension, the preprocessor is not run on the
3226# input file.  (Note that this only needs to work for GNU compilers.)
3227ac_save_ext=$ac_ext
3228ac_ext=F
3229echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3230echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3231if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3232  echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234  cat >conftest.$ac_ext <<_ACEOF
3235      program main
3236#ifndef __GNUC__
3237       choke me
3238#endif
3239
3240      end
3241_ACEOF
3242rm -f conftest.$ac_objext
3243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3244  (eval $ac_compile) 2>conftest.er1
3245  ac_status=$?
3246  grep -v '^ *+' conftest.er1 >conftest.err
3247  rm -f conftest.er1
3248  cat conftest.err >&5
3249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250  (exit $ac_status); } &&
3251         { ac_try='test -z "$ac_f77_werror_flag"
3252                         || test ! -s conftest.err'
3253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254  (eval $ac_try) 2>&5
3255  ac_status=$?
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); }; } &&
3258         { ac_try='test -s conftest.$ac_objext'
3259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260  (eval $ac_try) 2>&5
3261  ac_status=$?
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); }; }; then
3264  ac_compiler_gnu=yes
3265else
3266  echo "$as_me: failed program was:" >&5
3267sed 's/^/| /' conftest.$ac_ext >&5
3268
3269ac_compiler_gnu=no
3270fi
3271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3272ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3273
3274fi
3275echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3276echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3277ac_ext=$ac_save_ext
3278ac_test_FFLAGS=${FFLAGS+set}
3279ac_save_FFLAGS=$FFLAGS
3280FFLAGS=
3281echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3282echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3283if test "${ac_cv_prog_f77_g+set}" = set; then
3284  echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286  FFLAGS=-g
3287cat >conftest.$ac_ext <<_ACEOF
3288      program main
3289
3290      end
3291_ACEOF
3292rm -f conftest.$ac_objext
3293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294  (eval $ac_compile) 2>conftest.er1
3295  ac_status=$?
3296  grep -v '^ *+' conftest.er1 >conftest.err
3297  rm -f conftest.er1
3298  cat conftest.err >&5
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); } &&
3301         { ac_try='test -z "$ac_f77_werror_flag"
3302                         || test ! -s conftest.err'
3303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304  (eval $ac_try) 2>&5
3305  ac_status=$?
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); }; } &&
3308         { ac_try='test -s conftest.$ac_objext'
3309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310  (eval $ac_try) 2>&5
3311  ac_status=$?
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); }; }; then
3314  ac_cv_prog_f77_g=yes
3315else
3316  echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319ac_cv_prog_f77_g=no
3320fi
3321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3322
3323fi
3324echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3325echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3326if test "$ac_test_FFLAGS" = set; then
3327  FFLAGS=$ac_save_FFLAGS
3328elif test $ac_cv_prog_f77_g = yes; then
3329  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3330    FFLAGS="-g -O2"
3331  else
3332    FFLAGS="-g"
3333  fi
3334else
3335  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3336    FFLAGS="-O2"
3337  else
3338    FFLAGS=
3339  fi
3340fi
3341
3342G77=`test $ac_compiler_gnu = yes && echo yes`
3343ac_ext=f
3344ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3345ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3347
3348else
3349  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3350echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3351fi
3352
3353FFLAGS="$save_fflags"
3354
3355# Check if a project specific FFLAGS variable has been set
3356if test x$COIN_PRJCT != x; then
3357  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3358  if test x$coin_tmp = xset; then
3359    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3360  fi
3361fi
3362
3363if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3364
3365  coin_add_fflags=
3366  coin_opt_fflags=
3367  coin_dbg_fflags=
3368  coin_warn_fflags=
3369
3370  if test "$G77" = "yes"; then
3371    coin_opt_fflags="-O3 -fomit-frame-pointer"
3372    coin_add_fflags="-pipe"
3373    coin_dbg_fflags="-g"
3374    case $enable_doscompile in
3375      mingw)
3376        FFLAGS="-mno-cygwin"
3377        cat >conftest.$ac_ext <<_ACEOF
3378      program main
3379      write(*,*) 'Hello world'
3380      end
3381_ACEOF
3382rm -f conftest.$ac_objext conftest$ac_exeext
3383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3384  (eval $ac_link) 2>conftest.er1
3385  ac_status=$?
3386  grep -v '^ *+' conftest.er1 >conftest.err
3387  rm -f conftest.er1
3388  cat conftest.err >&5
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); } &&
3391         { ac_try='test -z "$ac_f77_werror_flag"
3392                         || test ! -s conftest.err'
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); }; } &&
3398         { ac_try='test -s conftest$ac_exeext'
3399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400  (eval $ac_try) 2>&5
3401  ac_status=$?
3402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); }; }; then
3404  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3405else
3406  echo "$as_me: failed program was:" >&5
3407sed 's/^/| /' conftest.$ac_ext >&5
3408
3409fi
3410rm -f conftest.err conftest.$ac_objext \
3411      conftest$ac_exeext conftest.$ac_ext
3412        FFLAGS=
3413      ;;
3414    esac
3415  else
3416    case $build in
3417      *-cygwin* | *-mingw*)
3418        case $F77 in
3419          ifort* | */ifort* | IFORT* | */IFORT* )
3420            coin_opt_fflags='-O3'
3421            coin_add_fflags='-fpp -nologo -MT'
3422            coin_dbg_fflags='-debug'
3423          ;;
3424          compile_f2c*)
3425            coin_opt_fflags='-MT -O2'
3426            coin_add_fflags='-nologo -wd4996'
3427            coin_dbg_fflags='-MTd'
3428          ;;
3429        esac
3430        ;;
3431      *-linux-*)
3432        case $F77 in
3433          ifc* | */ifc* | ifort* | */ifort*)
3434            coin_opt_fflags="-O3 -ip"
3435            coin_add_fflags="-cm -w90 -w95"
3436            coin_dbg_fflags="-g -CA -CB -CS"
3437            # Check if -i_dynamic is necessary (for new glibc library)
3438            FFLAGS=
3439            cat >conftest.$ac_ext <<_ACEOF
3440      program main
3441      write(*,*) 'Hello world'
3442      end
3443_ACEOF
3444rm -f conftest.$ac_objext conftest$ac_exeext
3445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3446  (eval $ac_link) 2>conftest.er1
3447  ac_status=$?
3448  grep -v '^ *+' conftest.er1 >conftest.err
3449  rm -f conftest.er1
3450  cat conftest.err >&5
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); } &&
3453         { ac_try='test -z "$ac_f77_werror_flag"
3454                         || test ! -s conftest.err'
3455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456  (eval $ac_try) 2>&5
3457  ac_status=$?
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); }; } &&
3460         { ac_try='test -s conftest$ac_exeext'
3461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462  (eval $ac_try) 2>&5
3463  ac_status=$?
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); }; }; then
3466  :
3467else
3468  echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471coin_add_fflags="-i_dynamic $coin_add_fflags"
3472fi
3473rm -f conftest.err conftest.$ac_objext \
3474      conftest$ac_exeext conftest.$ac_ext
3475            ;;
3476          pgf77* | */pgf77* | pgf90* | */pgf90*)
3477            coin_opt_fflags="-fast"
3478            coin_add_fflags="-Kieee -pc 64"
3479            coin_dbg_fflags="-g"
3480          ;;
3481        esac
3482        ;;
3483      *-ibm-*)
3484        case "$F77" in
3485          xlf* | */xlf* | mpxlf* | */mpxlf* )
3486            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3487            coin_add_fflags="-bmaxdata:0x80000000"
3488            coin_dbg_fflags="-g -C"
3489            ;;
3490        esac
3491        ;;
3492      *-hp-*)
3493        coin_opt_fflags="+O3"
3494        coin_add_fflags="+U77"
3495        coin_dbg_fflags="-C -g"
3496        ;;
3497      *-sun-*)
3498        coin_opt_fflags="-O4"
3499        coin_dbg_fflags="-g"
3500        ;;
3501      *-sgi-*)
3502        coin_opt_fflags="-O5 -OPT:Olimit=0"
3503        coin_dbg_fflags="-g"
3504        ;;
3505    esac
3506  fi
3507
3508  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3509    coin_dbg_fflags="-g"
3510  fi
3511
3512  if test -z "$coin_opt_fflags"; then
3513    # Try if -O option works if nothing else is set
3514    FFLAGS=-O
3515    cat >conftest.$ac_ext <<_ACEOF
3516      program main
3517      integer i
3518      end
3519_ACEOF
3520rm -f conftest.$ac_objext conftest$ac_exeext
3521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3522  (eval $ac_link) 2>conftest.er1
3523  ac_status=$?
3524  grep -v '^ *+' conftest.er1 >conftest.err
3525  rm -f conftest.er1
3526  cat conftest.err >&5
3527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528  (exit $ac_status); } &&
3529         { ac_try='test -z "$ac_f77_werror_flag"
3530                         || test ! -s conftest.err'
3531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532  (eval $ac_try) 2>&5
3533  ac_status=$?
3534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535  (exit $ac_status); }; } &&
3536         { ac_try='test -s conftest$ac_exeext'
3537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538  (eval $ac_try) 2>&5
3539  ac_status=$?
3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); }; }; then
3542  coin_opt_fflags="-O"
3543else
3544  echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547fi
3548rm -f conftest.err conftest.$ac_objext \
3549      conftest$ac_exeext conftest.$ac_ext
3550  fi
3551
3552  # if PM doesn't want the warning messages, take them out
3553  if test x"$coin_skip_warn_fflags" = xyes; then
3554    coin_warn_fflags=
3555  fi
3556
3557  if test x${DBG_FFLAGS+set} != xset; then
3558    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3559  fi
3560  if test x${OPT_FFLAGS+set} != xset; then
3561    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3562  fi
3563
3564  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3565  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3566
3567  if test "$coin_debug_compile" = "true"; then
3568    FFLAGS="$DBG_FFLAGS"
3569  else
3570    FFLAGS="$OPT_FFLAGS"
3571  fi
3572else
3573  FFLAGS="$FFLAGS $ADD_FFLAGS"
3574  if test x${DBG_FFLAGS+set} != xset; then
3575    DBG_FFLAGS="$FFLAGS"
3576  fi
3577  if test x${OPT_FFLAGS+set} != xset; then
3578    OPT_FFLAGS="$FFLAGS"
3579  fi
3580fi
3581
3582# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3583case "$FFLAGS" in
3584  *-mno-cygwin*)
3585    if test x${CPPFLAGS+set} != xset ; then
3586      CPPFLAGS="-mno-cygwin"
3587    else
3588      case "$CPPFLAGS" in
3589        *-mno-cygwin*)
3590          ;;
3591        *)
3592          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3593          ;;
3594      esac
3595    fi ;;
3596esac
3597
3598# Try if FFLAGS works
3599if test "$F77" != "unavailable" ; then
3600  cat >conftest.$ac_ext <<_ACEOF
3601      program main
3602      integer i
3603      end
3604_ACEOF
3605rm -f conftest.$ac_objext conftest$ac_exeext
3606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607  (eval $ac_link) 2>conftest.er1
3608  ac_status=$?
3609  grep -v '^ *+' conftest.er1 >conftest.err
3610  rm -f conftest.er1
3611  cat conftest.err >&5
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); } &&
3614         { ac_try='test -z "$ac_f77_werror_flag"
3615                         || test ! -s conftest.err'
3616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617  (eval $ac_try) 2>&5
3618  ac_status=$?
3619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620  (exit $ac_status); }; } &&
3621         { ac_try='test -s conftest$ac_exeext'
3622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623  (eval $ac_try) 2>&5
3624  ac_status=$?
3625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); }; }; then
3627  :
3628else
3629  echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632FFLAGS=
3633fi
3634rm -f conftest.err conftest.$ac_objext \
3635      conftest$ac_exeext conftest.$ac_ext
3636  if test -z "$FFLAGS"; then
3637    { 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
3638echo "$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;}
3639    FFLAGS='-O'
3640    cat >conftest.$ac_ext <<_ACEOF
3641      program main
3642      integer i
3643      end
3644_ACEOF
3645rm -f conftest.$ac_objext conftest$ac_exeext
3646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647  (eval $ac_link) 2>conftest.er1
3648  ac_status=$?
3649  grep -v '^ *+' conftest.er1 >conftest.err
3650  rm -f conftest.er1
3651  cat conftest.err >&5
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); } &&
3654         { ac_try='test -z "$ac_f77_werror_flag"
3655                         || test ! -s conftest.err'
3656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657  (eval $ac_try) 2>&5
3658  ac_status=$?
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); }; } &&
3661         { ac_try='test -s conftest$ac_exeext'
3662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663  (eval $ac_try) 2>&5
3664  ac_status=$?
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); }; }; then
3667  :
3668else
3669  echo "$as_me: failed program was:" >&5
3670sed 's/^/| /' conftest.$ac_ext >&5
3671
3672FFLAGS=
3673fi
3674rm -f conftest.err conftest.$ac_objext \
3675      conftest$ac_exeext conftest.$ac_ext
3676    if test -z "$FFLAGS"; then
3677      { 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
3678echo "$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;}
3679    fi
3680  fi
3681fi
3682
3683{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3684echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3685
3686
3687if test x"$MPIF77" = x; then :; else
3688  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3689echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3690  F77="$MPIF77"
3691fi
3692
3693case "$F77" in
3694  ifort* | */ifort* | IFORT* | */IFORT*)
3695    case $build in
3696  *-mingw*)
3697    if test "${LD+set}" = set; then :; else
3698      LD=link
3699    fi
3700    ;;
3701 esac
3702 case $enable_doscompile in
3703   msvc)
3704     if test "x${LD+set}" = xset; then :; else
3705       LD=link
3706     fi
3707     ;;
3708 esac
3709
3710    ;;
3711esac
3712
3713ac_ext=c
3714ac_cpp='$CPP $CPPFLAGS'
3715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718
3719
3720
3721# Initialize automake
3722{
3723
3724
3725
3726# START
3727
3728# On Cygwin, building DLLs doesn't work
3729case $build in
3730  *-cygwin*)
3731    coin_disable_shared=yes
3732    platform=Cygwin
3733  ;;
3734  *-mingw*)
3735    coin_disable_shared=yes
3736    platform="Msys"
3737#    case "$CXX" in
3738#      cl*)
3739#        coin_disable_shared=yes
3740#        platform="Msys with cl"
3741#    ;;
3742#    esac
3743  ;;
3744esac
3745if test x"$coin_disable_shared" = xyes; then
3746  if test x"$enable_shared" = xyes; then
3747    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3748echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3749  fi
3750  enable_shared=no
3751fi
3752# By default, we only want the shared objects to be compiled
3753# Check whether --enable-static or --disable-static was given.
3754if test "${enable_static+set}" = set; then
3755  enableval="$enable_static"
3756  p=${PACKAGE-default}
3757    case $enableval in
3758    yes) enable_static=yes ;;
3759    no) enable_static=no ;;
3760    *)
3761     enable_static=no
3762      # Look at the argument we got.  We use all the common list separators.
3763      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3764      for pkg in $enableval; do
3765        IFS="$lt_save_ifs"
3766        if test "X$pkg" = "X$p"; then
3767          enable_static=yes
3768        fi
3769      done
3770      IFS="$lt_save_ifs"
3771      ;;
3772    esac
3773else
3774  enable_static=no
3775fi;
3776
3777
3778
3779
3780# Initialize automake
3781echo "$as_me:$LINENO: checking for egrep" >&5
3782echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3783if test "${ac_cv_prog_egrep+set}" = set; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3787    then ac_cv_prog_egrep='grep -E'
3788    else ac_cv_prog_egrep='egrep'
3789    fi
3790fi
3791echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3792echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3793 EGREP=$ac_cv_prog_egrep
3794
3795
3796am__api_version="1.9"
3797# Find a good install program.  We prefer a C program (faster),
3798# so one script is as good as another.  But avoid the broken or
3799# incompatible versions:
3800# SysV /etc/install, /usr/sbin/install
3801# SunOS /usr/etc/install
3802# IRIX /sbin/install
3803# AIX /bin/install
3804# AmigaOS /C/install, which installs bootblocks on floppy discs
3805# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3806# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3807# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3808# OS/2's system install, which has a completely different semantic
3809# ./install, which can be erroneously created by make from ./install.sh.
3810echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3811echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3812if test -z "$INSTALL"; then
3813if test "${ac_cv_path_install+set}" = set; then
3814  echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819  IFS=$as_save_IFS
3820  test -z "$as_dir" && as_dir=.
3821  # Account for people who put trailing slashes in PATH elements.
3822case $as_dir/ in
3823  ./ | .// | /cC/* | \
3824  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3825  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3826  /usr/ucb/* ) ;;
3827  *)
3828    # OSF1 and SCO ODT 3.0 have their own names for install.
3829    # Don't use installbsd from OSF since it installs stuff as root
3830    # by default.
3831    for ac_prog in ginstall scoinst install; do
3832      for ac_exec_ext in '' $ac_executable_extensions; do
3833        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3834          if test $ac_prog = install &&
3835            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3836            # AIX install.  It has an incompatible calling convention.
3837            :
3838          elif test $ac_prog = install &&
3839            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3840            # program-specific install script used by HP pwplus--don't use.
3841            :
3842          else
3843            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3844            break 3
3845          fi
3846        fi
3847      done
3848    done
3849    ;;
3850esac
3851done
3852
3853
3854fi
3855  if test "${ac_cv_path_install+set}" = set; then
3856    INSTALL=$ac_cv_path_install
3857  else
3858    # As a last resort, use the slow shell script.  We don't cache a
3859    # path for INSTALL within a source directory, because that will
3860    # break other packages using the cache if that directory is
3861    # removed, or if the path is relative.
3862    INSTALL=$ac_install_sh
3863  fi
3864fi
3865echo "$as_me:$LINENO: result: $INSTALL" >&5
3866echo "${ECHO_T}$INSTALL" >&6
3867
3868# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3869# It thinks the first close brace ends the variable substitution.
3870test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3871
3872test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3873
3874test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3875
3876echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3877echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3878# Just in case
3879sleep 1
3880echo timestamp > conftest.file
3881# Do `set' in a subshell so we don't clobber the current shell's
3882# arguments.  Must try -L first in case configure is actually a
3883# symlink; some systems play weird games with the mod time of symlinks
3884# (eg FreeBSD returns the mod time of the symlink's containing
3885# directory).
3886if (
3887   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3888   if test "$*" = "X"; then
3889      # -L didn't work.
3890      set X `ls -t $srcdir/configure conftest.file`
3891   fi
3892   rm -f conftest.file
3893   if test "$*" != "X $srcdir/configure conftest.file" \
3894      && test "$*" != "X conftest.file $srcdir/configure"; then
3895
3896      # If neither matched, then we have a broken ls.  This can happen
3897      # if, for instance, CONFIG_SHELL is bash and it inherits a
3898      # broken ls alias from the environment.  This has actually
3899      # happened.  Such a system could not be considered "sane".
3900      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3901alias in your environment" >&5
3902echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3903alias in your environment" >&2;}
3904   { (exit 1); exit 1; }; }
3905   fi
3906
3907   test "$2" = conftest.file
3908   )
3909then
3910   # Ok.
3911   :
3912else
3913   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3914Check your system clock" >&5
3915echo "$as_me: error: newly created file is older than distributed files!
3916Check your system clock" >&2;}
3917   { (exit 1); exit 1; }; }
3918fi
3919echo "$as_me:$LINENO: result: yes" >&5
3920echo "${ECHO_T}yes" >&6
3921test "$program_prefix" != NONE &&
3922  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3923# Use a double $ so make ignores it.
3924test "$program_suffix" != NONE &&
3925  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3926# Double any \ or $.  echo might interpret backslashes.
3927# By default was `s,x,x', remove it if useless.
3928cat <<\_ACEOF >conftest.sed
3929s/[\\$]/&&/g;s/;s,x,x,$//
3930_ACEOF
3931program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3932rm conftest.sed
3933
3934# expand $ac_aux_dir to an absolute path
3935am_aux_dir=`cd $ac_aux_dir && pwd`
3936
3937test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3938# Use eval to expand $SHELL
3939if eval "$MISSING --run true"; then
3940  am_missing_run="$MISSING --run "
3941else
3942  am_missing_run=
3943  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3944echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3945fi
3946
3947if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3948  # We used to keeping the `.' as first argument, in order to
3949  # allow $(mkdir_p) to be used without argument.  As in
3950  #   $(mkdir_p) $(somedir)
3951  # where $(somedir) is conditionally defined.  However this is wrong
3952  # for two reasons:
3953  #  1. if the package is installed by a user who cannot write `.'
3954  #     make install will fail,
3955  #  2. the above comment should most certainly read
3956  #     $(mkdir_p) $(DESTDIR)$(somedir)
3957  #     so it does not work when $(somedir) is undefined and
3958  #     $(DESTDIR) is not.
3959  #  To support the latter case, we have to write
3960  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3961  #  so the `.' trick is pointless.
3962  mkdir_p='mkdir -p --'
3963else
3964  # On NextStep and OpenStep, the `mkdir' command does not
3965  # recognize any option.  It will interpret all options as
3966  # directories to create, and then abort because `.' already
3967  # exists.
3968  for d in ./-p ./--version;
3969  do
3970    test -d $d && rmdir $d
3971  done
3972  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3973  if test -f "$ac_aux_dir/mkinstalldirs"; then
3974    mkdir_p='$(mkinstalldirs)'
3975  else
3976    mkdir_p='$(install_sh) -d'
3977  fi
3978fi
3979
3980for ac_prog in gawk mawk nawk awk
3981do
3982  # Extract the first word of "$ac_prog", so it can be a program name with args.
3983set dummy $ac_prog; ac_word=$2
3984echo "$as_me:$LINENO: checking for $ac_word" >&5
3985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986if test "${ac_cv_prog_AWK+set}" = set; then
3987  echo $ECHO_N "(cached) $ECHO_C" >&6
3988else
3989  if test -n "$AWK"; then
3990  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
3994do
3995  IFS=$as_save_IFS
3996  test -z "$as_dir" && as_dir=.
3997  for ac_exec_ext in '' $ac_executable_extensions; do
3998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3999    ac_cv_prog_AWK="$ac_prog"
4000    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001    break 2
4002  fi
4003done
4004done
4005
4006fi
4007fi
4008AWK=$ac_cv_prog_AWK
4009if test -n "$AWK"; then
4010  echo "$as_me:$LINENO: result: $AWK" >&5
4011echo "${ECHO_T}$AWK" >&6
4012else
4013  echo "$as_me:$LINENO: result: no" >&5
4014echo "${ECHO_T}no" >&6
4015fi
4016
4017  test -n "$AWK" && break
4018done
4019
4020echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4021echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4022set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4023if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4024  echo $ECHO_N "(cached) $ECHO_C" >&6
4025else
4026  cat >conftest.make <<\_ACEOF
4027all:
4028        @echo 'ac_maketemp="$(MAKE)"'
4029_ACEOF
4030# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4031eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4032if test -n "$ac_maketemp"; then
4033  eval ac_cv_prog_make_${ac_make}_set=yes
4034else
4035  eval ac_cv_prog_make_${ac_make}_set=no
4036fi
4037rm -f conftest.make
4038fi
4039if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4040  echo "$as_me:$LINENO: result: yes" >&5
4041echo "${ECHO_T}yes" >&6
4042  SET_MAKE=
4043else
4044  echo "$as_me:$LINENO: result: no" >&5
4045echo "${ECHO_T}no" >&6
4046  SET_MAKE="MAKE=${MAKE-make}"
4047fi
4048
4049rm -rf .tst 2>/dev/null
4050mkdir .tst 2>/dev/null
4051if test -d .tst; then
4052  am__leading_dot=.
4053else
4054  am__leading_dot=_
4055fi
4056rmdir .tst 2>/dev/null
4057
4058DEPDIR="${am__leading_dot}deps"
4059
4060          ac_config_commands="$ac_config_commands depfiles"
4061
4062
4063am_make=${MAKE-make}
4064cat > confinc << 'END'
4065am__doit:
4066        @echo done
4067.PHONY: am__doit
4068END
4069# If we don't find an include directive, just comment out the code.
4070echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4071echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4072am__include="#"
4073am__quote=
4074_am_result=none
4075# First try GNU make style include.
4076echo "include confinc" > confmf
4077# We grep out `Entering directory' and `Leaving directory'
4078# messages which can occur if `w' ends up in MAKEFLAGS.
4079# In particular we don't look at `^make:' because GNU make might
4080# be invoked under some other name (usually "gmake"), in which
4081# case it prints its new name instead of `make'.
4082if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4083   am__include=include
4084   am__quote=
4085   _am_result=GNU
4086fi
4087# Now try BSD make style include.
4088if test "$am__include" = "#"; then
4089   echo '.include "confinc"' > confmf
4090   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4091      am__include=.include
4092      am__quote="\""
4093      _am_result=BSD
4094   fi
4095fi
4096
4097
4098echo "$as_me:$LINENO: result: $_am_result" >&5
4099echo "${ECHO_T}$_am_result" >&6
4100rm -f confinc confmf
4101
4102# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4103if test "${enable_dependency_tracking+set}" = set; then
4104  enableval="$enable_dependency_tracking"
4105
4106fi;
4107if test "x$enable_dependency_tracking" != xno; then
4108  am_depcomp="$ac_aux_dir/depcomp"
4109  AMDEPBACKSLASH='\'
4110fi
4111
4112
4113if test "x$enable_dependency_tracking" != xno; then
4114  AMDEP_TRUE=
4115  AMDEP_FALSE='#'
4116else
4117  AMDEP_TRUE='#'
4118  AMDEP_FALSE=
4119fi
4120
4121
4122
4123
4124
4125# AC_MSG_NOTICE([Beginning automake initialisation.])
4126# Stuff for automake
4127# test to see if srcdir already configured
4128if test "`cd $srcdir && pwd`" != "`pwd`" &&
4129   test -f $srcdir/config.status; then
4130  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4131echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4132   { (exit 1); exit 1; }; }
4133fi
4134
4135# test whether we have cygpath
4136if test -z "$CYGPATH_W"; then
4137  if (cygpath --version) >/dev/null 2>/dev/null; then
4138    CYGPATH_W='cygpath -w'
4139  else
4140    CYGPATH_W=echo
4141  fi
4142fi
4143
4144
4145# Define the identity of the package.
4146 PACKAGE='thirdpartyblas'
4147 VERSION='1.0stable'
4148
4149
4150cat >>confdefs.h <<_ACEOF
4151#define PACKAGE "$PACKAGE"
4152_ACEOF
4153
4154
4155cat >>confdefs.h <<_ACEOF
4156#define VERSION "$VERSION"
4157_ACEOF
4158
4159# Some tools Automake needs.
4160
4161ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4162
4163
4164AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4165
4166
4167AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4168
4169
4170AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4171
4172
4173MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4174
4175install_sh=${install_sh-"$am_aux_dir/install-sh"}
4176
4177# Installed binaries are usually stripped using `strip' when the user
4178# run `make install-strip'.  However `strip' might not be the right
4179# tool to use in cross-compilation environments, therefore Automake
4180# will honor the `STRIP' environment variable to overrule this program.
4181if test "$cross_compiling" != no; then
4182  if test -n "$ac_tool_prefix"; then
4183  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4184set dummy ${ac_tool_prefix}strip; ac_word=$2
4185echo "$as_me:$LINENO: checking for $ac_word" >&5
4186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187if test "${ac_cv_prog_STRIP+set}" = set; then
4188  echo $ECHO_N "(cached) $ECHO_C" >&6
4189else
4190  if test -n "$STRIP"; then
4191  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4192else
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196  IFS=$as_save_IFS
4197  test -z "$as_dir" && as_dir=.
4198  for ac_exec_ext in '' $ac_executable_extensions; do
4199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202    break 2
4203  fi
4204done
4205done
4206
4207fi
4208fi
4209STRIP=$ac_cv_prog_STRIP
4210if test -n "$STRIP"; then
4211  echo "$as_me:$LINENO: result: $STRIP" >&5
4212echo "${ECHO_T}$STRIP" >&6
4213else
4214  echo "$as_me:$LINENO: result: no" >&5
4215echo "${ECHO_T}no" >&6
4216fi
4217
4218fi
4219if test -z "$ac_cv_prog_STRIP"; then
4220  ac_ct_STRIP=$STRIP
4221  # Extract the first word of "strip", so it can be a program name with args.
4222set dummy strip; ac_word=$2
4223echo "$as_me:$LINENO: checking for $ac_word" >&5
4224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4225if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4226  echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228  if test -n "$ac_ct_STRIP"; then
4229  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234  IFS=$as_save_IFS
4235  test -z "$as_dir" && as_dir=.
4236  for ac_exec_ext in '' $ac_executable_extensions; do
4237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238    ac_cv_prog_ac_ct_STRIP="strip"
4239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240    break 2
4241  fi
4242done
4243done
4244
4245  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4246fi
4247fi
4248ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4249if test -n "$ac_ct_STRIP"; then
4250  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4251echo "${ECHO_T}$ac_ct_STRIP" >&6
4252else
4253  echo "$as_me:$LINENO: result: no" >&5
4254echo "${ECHO_T}no" >&6
4255fi
4256
4257  STRIP=$ac_ct_STRIP
4258else
4259  STRIP="$ac_cv_prog_STRIP"
4260fi
4261
4262fi
4263INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4264
4265# We need awk for the "check" target.  The system "awk" is bad on
4266# some platforms.
4267# Always define AMTAR for backward compatibility.
4268
4269AMTAR=${AMTAR-"${am_missing_run}tar"}
4270
4271am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4272
4273
4274
4275
4276depcc="$CC"   am_compiler_list=
4277
4278echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4279echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4280if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4281  echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
4283  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4284  # We make a subdir and do the tests there.  Otherwise we can end up
4285  # making bogus files that we don't know about and never remove.  For
4286  # instance it was reported that on HP-UX the gcc test will end up
4287  # making a dummy file named `D' -- because `-MD' means `put the output
4288  # in D'.
4289  mkdir conftest.dir
4290  # Copy depcomp to subdir because otherwise we won't find it if we're
4291  # using a relative directory.
4292  cp "$am_depcomp" conftest.dir
4293  cd conftest.dir
4294  # We will build objects and dependencies in a subdirectory because
4295  # it helps to detect inapplicable dependency modes.  For instance
4296  # both Tru64's cc and ICC support -MD to output dependencies as a
4297  # side effect of compilation, but ICC will put the dependencies in
4298  # the current directory while Tru64 will put them in the object
4299  # directory.
4300  mkdir sub
4301
4302  am_cv_CC_dependencies_compiler_type=none
4303  if test "$am_compiler_list" = ""; then
4304     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4305  fi
4306  for depmode in $am_compiler_list; do
4307    # Setup a source with many dependencies, because some compilers
4308    # like to wrap large dependency lists on column 80 (with \), and
4309    # we should not choose a depcomp mode which is confused by this.
4310    #
4311    # We need to recreate these files for each test, as the compiler may
4312    # overwrite some of them when testing with obscure command lines.
4313    # This happens at least with the AIX C compiler.
4314    : > sub/conftest.c
4315    for i in 1 2 3 4 5 6; do
4316      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4317      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4318      # Solaris 8's {/usr,}/bin/sh.
4319      touch sub/conftst$i.h
4320    done
4321    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4322
4323    case $depmode in
4324    nosideeffect)
4325      # after this tag, mechanisms are not by side-effect, so they'll
4326      # only be used when explicitly requested
4327      if test "x$enable_dependency_tracking" = xyes; then
4328        continue
4329      else
4330        break
4331      fi
4332      ;;
4333    none) break ;;
4334    esac
4335    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4336    # mode.  It turns out that the SunPro C++ compiler does not properly
4337    # handle `-M -o', and we need to detect this.
4338    if depmode=$depmode \
4339       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4340       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4341       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4342         >/dev/null 2>conftest.err &&
4343       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4344       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4345       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4346      # icc doesn't choke on unknown options, it will just issue warnings
4347      # or remarks (even with -Werror).  So we grep stderr for any message
4348      # that says an option was ignored or not supported.
4349      # When given -MP, icc 7.0 and 7.1 complain thusly:
4350      #   icc: Command line warning: ignoring option '-M'; no argument required
4351      # The diagnosis changed in icc 8.0:
4352      #   icc: Command line remark: option '-MP' not supported
4353      if (grep 'ignoring option' conftest.err ||
4354          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4355        am_cv_CC_dependencies_compiler_type=$depmode
4356        break
4357      fi
4358    fi
4359  done
4360
4361  cd ..
4362  rm -rf conftest.dir
4363else
4364  am_cv_CC_dependencies_compiler_type=none
4365fi
4366
4367fi
4368echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4369echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4370CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4371
4372
4373
4374if
4375  test "x$enable_dependency_tracking" != xno \
4376  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4377  am__fastdepCC_TRUE=
4378  am__fastdepCC_FALSE='#'
4379else
4380  am__fastdepCC_TRUE='#'
4381  am__fastdepCC_FALSE=
4382fi
4383
4384
4385
4386echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4387echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4388    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4389if test "${enable_maintainer_mode+set}" = set; then
4390  enableval="$enable_maintainer_mode"
4391  USE_MAINTAINER_MODE=$enableval
4392else
4393  USE_MAINTAINER_MODE=no
4394fi;
4395  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4396echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4397
4398
4399if test $USE_MAINTAINER_MODE = yes; then
4400  MAINTAINER_MODE_TRUE=
4401  MAINTAINER_MODE_FALSE='#'
4402else
4403  MAINTAINER_MODE_TRUE='#'
4404  MAINTAINER_MODE_FALSE=
4405fi
4406
4407  MAINT=$MAINTAINER_MODE_TRUE
4408
4409
4410
4411coin_have_externals=no
4412if test "$enable_maintainer_mode" = yes; then
4413
4414  # If maintainer mode is chosen, we make sure that the correct versions
4415  # of the tools are used, and that we know where libtool.m4 is (to
4416  # recreate acinclude.m4)
4417
4418
4419  LIBTOOLM4=
4420  # Normally, $HOME
4421  AUTOTOOLS_DFLT=$HOME
4422
4423  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4424echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4425if test "${ac_cv_use_correct_autotools+set}" = set; then
4426  echo $ECHO_N "(cached) $ECHO_C" >&6
4427else
4428  ac_cv_use_correct_autotools=check
4429fi
4430echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4431echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4432
4433  if test $ac_cv_use_correct_autotools = check; then
4434    ac_cv_use_correct_autotools=yes
4435    # Check if we have autoconf
4436    # Extract the first word of "autoconf", so it can be a program name with args.
4437set dummy autoconf; ac_word=$2
4438echo "$as_me:$LINENO: checking for $ac_word" >&5
4439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440if test "${ac_cv_prog_have_autoconf+set}" = set; then
4441  echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443  if test -n "$have_autoconf"; then
4444  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4445else
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449  IFS=$as_save_IFS
4450  test -z "$as_dir" && as_dir=.
4451  for ac_exec_ext in '' $ac_executable_extensions; do
4452  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453    ac_cv_prog_have_autoconf="yes"
4454    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455    break 2
4456  fi
4457done
4458done
4459
4460  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4461fi
4462fi
4463have_autoconf=$ac_cv_prog_have_autoconf
4464if test -n "$have_autoconf"; then
4465  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4466echo "${ECHO_T}$have_autoconf" >&6
4467else
4468  echo "$as_me:$LINENO: result: no" >&5
4469echo "${ECHO_T}no" >&6
4470fi
4471
4472    if test $have_autoconf = no; then
4473      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4474echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4475   { (exit 1); exit 1; }; }
4476    fi
4477
4478    # Check whether autoconf is the correct version
4479    correct_version='2.59'
4480    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4481    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4482echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4483    autoconf --version > confauto.out 2>&1
4484    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4485      echo "$as_me:$LINENO: result: yes" >&5
4486echo "${ECHO_T}yes" >&6
4487    else
4488      rm -f confauto.out
4489      echo "$as_me:$LINENO: result: no" >&5
4490echo "${ECHO_T}no" >&6
4491      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4492echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4493   { (exit 1); exit 1; }; }
4494    fi
4495    rm -f confauto.out
4496
4497    # Check if the executable autoconf is picked up from the correct location
4498    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4499echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4500    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4501    autoconf_dir=`cd $autoconf_dir; pwd`
4502    if test x$AUTOTOOLS_DIR = x; then
4503      want_dir=$AUTOTOOLS_DFLT/bin
4504    else
4505      want_dir=$AUTOTOOLS_DIR/bin
4506    fi
4507    if test $autoconf_dir = `cd $want_dir; pwd`; then
4508      echo "$as_me:$LINENO: result: yes" >&5
4509echo "${ECHO_T}yes" >&6
4510    else
4511      rm -f confauto.out
4512      echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6
4514      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4515echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4516   { (exit 1); exit 1; }; }
4517    fi
4518
4519    # Check if we have automake
4520    # Extract the first word of "automake", so it can be a program name with args.
4521set dummy automake; ac_word=$2
4522echo "$as_me:$LINENO: checking for $ac_word" >&5
4523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4524if test "${ac_cv_prog_have_automake+set}" = set; then
4525  echo $ECHO_N "(cached) $ECHO_C" >&6
4526else
4527  if test -n "$have_automake"; then
4528  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4529else
4530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531for as_dir in $PATH
4532do
4533  IFS=$as_save_IFS
4534  test -z "$as_dir" && as_dir=.
4535  for ac_exec_ext in '' $ac_executable_extensions; do
4536  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4537    ac_cv_prog_have_automake="yes"
4538    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4539    break 2
4540  fi
4541done
4542done
4543
4544  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4545fi
4546fi
4547have_automake=$ac_cv_prog_have_automake
4548if test -n "$have_automake"; then
4549  echo "$as_me:$LINENO: result: $have_automake" >&5
4550echo "${ECHO_T}$have_automake" >&6
4551else
4552  echo "$as_me:$LINENO: result: no" >&5
4553echo "${ECHO_T}no" >&6
4554fi
4555
4556    if test $have_automake = no; then
4557      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4558echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4559   { (exit 1); exit 1; }; }
4560    fi
4561
4562    # Check whether automake is the correct version
4563    correct_version='1.9.6'
4564    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4565    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4566echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4567    automake --version > confauto.out 2>&1
4568    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4569      echo "$as_me:$LINENO: result: yes" >&5
4570echo "${ECHO_T}yes" >&6
4571    else
4572      rm -f confauto.out
4573      echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
4575      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4576echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4577   { (exit 1); exit 1; }; }
4578    fi
4579    rm -f confauto.out
4580
4581    # Check if the executable automake is picked up from the correct location
4582    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4583echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4584    automake_dir=`which automake | sed -e 's=/automake=='`
4585    automake_dir=`cd $automake_dir; pwd`
4586    if test x$AUTOTOOLS_DIR = x; then
4587      want_dir=$AUTOTOOLS_DFLT/bin
4588    else
4589      want_dir=$AUTOTOOLS_DIR/bin
4590    fi
4591    if test $automake_dir = `cd $want_dir; pwd`; then
4592      echo "$as_me:$LINENO: result: yes" >&5
4593echo "${ECHO_T}yes" >&6
4594    else
4595      rm -f confauto.out
4596      echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6
4598      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4599echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4600   { (exit 1); exit 1; }; }
4601    fi
4602
4603    # Check if this is the correct version of libtool (with escaped dots)
4604    if test x$AUTOTOOLS_DIR = x; then
4605      want_dir=$AUTOTOOLS_DFLT/share
4606    else
4607      want_dir=$AUTOTOOLS_DIR/share
4608    fi
4609    correct_version='1.5.22'
4610    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4611    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4612echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4613echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4614if eval "test \"\${$as_ac_File+set}\" = set"; then
4615  echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
4617  test "$cross_compiling" = yes &&
4618  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4619echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4620   { (exit 1); exit 1; }; }
4621if test -r "$want_dir/libtool/ltmain.sh"; then
4622  eval "$as_ac_File=yes"
4623else
4624  eval "$as_ac_File=no"
4625fi
4626fi
4627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4628echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4629if test `eval echo '${'$as_ac_File'}'` = yes; then
4630  have_ltmain=yes
4631else
4632  have_ltmain=no
4633fi
4634
4635    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4636echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4637    if test $have_ltmain = yes; then
4638    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4639        echo "$as_me:$LINENO: result: yes" >&5
4640echo "${ECHO_T}yes" >&6
4641      else
4642        echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6
4644        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4645echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4646   { (exit 1); exit 1; }; }
4647      fi
4648    else
4649      echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
4651      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4652echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4653   { (exit 1); exit 1; }; }
4654    fi
4655  fi
4656
4657  # Check if we can find the libtool file
4658  if test x$AUTOTOOLS_DIR = x; then
4659    want_dir=$AUTOTOOLS_DFLT/share
4660  else
4661    want_dir=$AUTOTOOLS_DIR/share
4662  fi
4663  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4664echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4665echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4666if eval "test \"\${$as_ac_File+set}\" = set"; then
4667  echo $ECHO_N "(cached) $ECHO_C" >&6
4668else
4669  test "$cross_compiling" = yes &&
4670  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4671echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4672   { (exit 1); exit 1; }; }
4673if test -r "$want_dir/aclocal/libtool.m4"; then
4674  eval "$as_ac_File=yes"
4675else
4676  eval "$as_ac_File=no"
4677fi
4678fi
4679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4680echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4681if test `eval echo '${'$as_ac_File'}'` = yes; then
4682  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4683else
4684  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4685echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4686   { (exit 1); exit 1; }; }
4687fi
4688
4689
4690  # Check if we have an Externals file
4691  if test -r $srcdir/Externals; then
4692    coin_have_externals=yes
4693  fi
4694  # Check if subversion is installed and understands https
4695  # Extract the first word of "svn", so it can be a program name with args.
4696set dummy svn; ac_word=$2
4697echo "$as_me:$LINENO: checking for $ac_word" >&5
4698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4699if test "${ac_cv_prog_have_svn+set}" = set; then
4700  echo $ECHO_N "(cached) $ECHO_C" >&6
4701else
4702  if test -n "$have_svn"; then
4703  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4704else
4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708  IFS=$as_save_IFS
4709  test -z "$as_dir" && as_dir=.
4710  for ac_exec_ext in '' $ac_executable_extensions; do
4711  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712    ac_cv_prog_have_svn="yes"
4713    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714    break 2
4715  fi
4716done
4717done
4718
4719  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4720fi
4721fi
4722have_svn=$ac_cv_prog_have_svn
4723if test -n "$have_svn"; then
4724  echo "$as_me:$LINENO: result: $have_svn" >&5
4725echo "${ECHO_T}$have_svn" >&6
4726else
4727  echo "$as_me:$LINENO: result: no" >&5
4728echo "${ECHO_T}no" >&6
4729fi
4730
4731  if test x$have_svn = xyes; then
4732    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4733echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4734if test "${ac_cv_svn_understands_https+set}" = set; then
4735  echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737  svn --version > confauto.out 2>&1
4738                    if $EGREP https confauto.out >/dev/null 2>&1; then
4739                      ac_cv_svn_understands_https=yes
4740                    else
4741                      ac_cv_svn_understands_https=no
4742                      have_svn=no
4743                      ac_cv_prog_have_svn=no
4744                    fi
4745                    rm -f confauto.out
4746fi
4747echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4748echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4749  fi
4750
4751  # Find the location of the BuildTools directory
4752  BUILDTOOLSDIR=
4753  if test -r $srcdir/BuildTools/coin.m4; then
4754    BUILDTOOLSDIR=$srcdir/BuildTools
4755  else
4756    if test -r $srcdir/../BuildTools/coin.m4; then
4757      BUILDTOOLSDIR=$srcdir/../BuildTools
4758    else
4759      if test -r $srcdir/../../BuildTools/coin.m4; then
4760        BUILDTOOLSDIR=$srcdir/../../BuildTools
4761      else
4762        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4763echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4764   { (exit 1); exit 1; }; }
4765      fi
4766    fi
4767  fi
4768
4769
4770  # The following variable is set to the name of the directory where
4771  # the autotool scripts are located
4772
4773  AUX_DIR=$ac_aux_dir
4774fi
4775
4776# helpful variable for the base directory of this package
4777abs_source_dir=`cd $srcdir; pwd`
4778
4779
4780# Stuff for example Makefiles
4781if test x$prefix = xNONE; then
4782  full_prefix=$ac_default_prefix
4783else
4784  full_prefix=$prefix
4785fi
4786full_prefix=`cd $full_prefix ; pwd`
4787
4788abs_lib_dir=$full_prefix/lib
4789
4790abs_include_dir=$full_prefix/include
4791
4792abs_bin_dir=$full_prefix/bin
4793
4794
4795
4796if test $coin_have_externals = yes && test x$have_svn = xyes; then
4797  HAVE_EXTERNALS_TRUE=
4798  HAVE_EXTERNALS_FALSE='#'
4799else
4800  HAVE_EXTERNALS_TRUE='#'
4801  HAVE_EXTERNALS_FALSE=
4802fi
4803
4804
4805# AC_MSG_NOTICE([End automake initialisation.])
4806
4807
4808
4809LIBTOOL=
4810if test -r ../libtool; then
4811  coin_config_dir=..
4812  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4813fi
4814if test "x$LIBTOOL" = x; then
4815  if test -r ../../libtool; then
4816    coin_config_dir=../..
4817    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4818  fi
4819fi
4820
4821if test "x$LIBTOOL" = x; then
4822# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4823  # Stuff for libtool
4824  # Check whether --enable-shared or --disable-shared was given.
4825if test "${enable_shared+set}" = set; then
4826  enableval="$enable_shared"
4827  p=${PACKAGE-default}
4828    case $enableval in
4829    yes) enable_shared=yes ;;
4830    no) enable_shared=no ;;
4831    *)
4832      enable_shared=no
4833      # Look at the argument we got.  We use all the common list separators.
4834      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4835      for pkg in $enableval; do
4836        IFS="$lt_save_ifs"
4837        if test "X$pkg" = "X$p"; then
4838          enable_shared=yes
4839        fi
4840      done
4841      IFS="$lt_save_ifs"
4842      ;;
4843    esac
4844else
4845  enable_shared=yes
4846fi;
4847
4848# Check whether --enable-fast-install or --disable-fast-install was given.
4849if test "${enable_fast_install+set}" = set; then
4850  enableval="$enable_fast_install"
4851  p=${PACKAGE-default}
4852    case $enableval in
4853    yes) enable_fast_install=yes ;;
4854    no) enable_fast_install=no ;;
4855    *)
4856      enable_fast_install=no
4857      # Look at the argument we got.  We use all the common list separators.
4858      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4859      for pkg in $enableval; do
4860        IFS="$lt_save_ifs"
4861        if test "X$pkg" = "X$p"; then
4862          enable_fast_install=yes
4863        fi
4864      done
4865      IFS="$lt_save_ifs"
4866      ;;
4867    esac
4868else
4869  enable_fast_install=yes
4870fi;
4871
4872echo "$as_me:$LINENO: checking host system type" >&5
4873echo $ECHO_N "checking host system type... $ECHO_C" >&6
4874if test "${ac_cv_host+set}" = set; then
4875  echo $ECHO_N "(cached) $ECHO_C" >&6
4876else
4877  ac_cv_host_alias=$host_alias
4878test -z "$ac_cv_host_alias" &&
4879  ac_cv_host_alias=$ac_cv_build_alias
4880ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4881  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4882echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4883   { (exit 1); exit 1; }; }
4884
4885fi
4886echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4887echo "${ECHO_T}$ac_cv_host" >&6
4888host=$ac_cv_host
4889host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4890host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4891host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4892
4893
4894echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4895echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4896if test "${lt_cv_path_SED+set}" = set; then
4897  echo $ECHO_N "(cached) $ECHO_C" >&6
4898else
4899  # Loop through the user's path and test for sed and gsed.
4900# Then use that list of sed's as ones to test for truncation.
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906  for lt_ac_prog in sed gsed; do
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4909        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4910      fi
4911    done
4912  done
4913done
4914lt_ac_max=0
4915lt_ac_count=0
4916# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4917# along with /bin/sed that truncates output.
4918for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4919  test ! -f $lt_ac_sed && continue
4920  cat /dev/null > conftest.in
4921  lt_ac_count=0
4922  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4923  # Check for GNU sed and select it if it is found.
4924  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4925    lt_cv_path_SED=$lt_ac_sed
4926    break
4927  fi
4928  while true; do
4929    cat conftest.in conftest.in >conftest.tmp
4930    mv conftest.tmp conftest.in
4931    cp conftest.in conftest.nl
4932    echo >>conftest.nl
4933    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4934    cmp -s conftest.out conftest.nl || break
4935    # 10000 chars as input seems more than enough
4936    test $lt_ac_count -gt 10 && break
4937    lt_ac_count=`expr $lt_ac_count + 1`
4938    if test $lt_ac_count -gt $lt_ac_max; then
4939      lt_ac_max=$lt_ac_count
4940      lt_cv_path_SED=$lt_ac_sed
4941    fi
4942  done
4943done
4944
4945fi
4946
4947SED=$lt_cv_path_SED
4948echo "$as_me:$LINENO: result: $SED" >&5
4949echo "${ECHO_T}$SED" >&6
4950
4951
4952# Check whether --with-gnu-ld or --without-gnu-ld was given.
4953if test "${with_gnu_ld+set}" = set; then
4954  withval="$with_gnu_ld"
4955  test "$withval" = no || with_gnu_ld=yes
4956else
4957  with_gnu_ld=no
4958fi;
4959ac_prog=ld
4960if test "$GCC" = yes; then
4961  # Check if gcc -print-prog-name=ld gives a path.
4962  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4963echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4964  case $host in
4965  *-*-mingw*)
4966    # gcc leaves a trailing carriage return which upsets mingw
4967    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4968  *)
4969    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4970  esac
4971  case $ac_prog in
4972    # Accept absolute paths.
4973    [\\/]* | ?:[\\/]*)
4974      re_direlt='/[^/][^/]*/\.\./'
4975      # Canonicalize the pathname of ld
4976      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4977      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4978        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4979      done
4980      test -z "$LD" && LD="$ac_prog"
4981      ;;
4982  "")
4983    # If it fails, then pretend we aren't using GCC.
4984    ac_prog=ld
4985    ;;
4986  *)
4987    # If it is relative, then search for the first ld in PATH.
4988    with_gnu_ld=unknown
4989    ;;
4990  esac
4991elif test "$with_gnu_ld" = yes; then
4992  echo "$as_me:$LINENO: checking for GNU ld" >&5
4993echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4994else
4995  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4996echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4997fi
4998if test "${lt_cv_path_LD+set}" = set; then
4999  echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001  if test -z "$LD"; then
5002  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5003  for ac_dir in $PATH; do
5004    IFS="$lt_save_ifs"
5005    test -z "$ac_dir" && ac_dir=.
5006    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5007      lt_cv_path_LD="$ac_dir/$ac_prog"
5008      # Check to see if the program is GNU ld.  I'd rather use --version,
5009      # but apparently some variants of GNU ld only accept -v.
5010      # Break only if it was the GNU/non-GNU ld that we prefer.
5011      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5012      *GNU* | *'with BFD'*)
5013        test "$with_gnu_ld" != no && break
5014        ;;
5015      *)
5016        test "$with_gnu_ld" != yes && break
5017        ;;
5018      esac
5019    fi
5020  done
5021  IFS="$lt_save_ifs"
5022else
5023  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5024fi
5025fi
5026
5027LD="$lt_cv_path_LD"
5028if test -n "$LD"; then
5029  echo "$as_me:$LINENO: result: $LD" >&5
5030echo "${ECHO_T}$LD" >&6
5031else
5032  echo "$as_me:$LINENO: result: no" >&5
5033echo "${ECHO_T}no" >&6
5034fi
5035test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5036echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5037   { (exit 1); exit 1; }; }
5038echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5039echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5040if test "${lt_cv_prog_gnu_ld+set}" = set; then
5041  echo $ECHO_N "(cached) $ECHO_C" >&6
5042else
5043  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5044case `$LD -v 2>&1 </dev/null` in
5045*GNU* | *'with BFD'*)
5046  lt_cv_prog_gnu_ld=yes
5047  ;;
5048*)
5049  lt_cv_prog_gnu_ld=no
5050  ;;
5051esac
5052fi
5053echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5054echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5055with_gnu_ld=$lt_cv_prog_gnu_ld
5056
5057
5058echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5059echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5060if test "${lt_cv_ld_reload_flag+set}" = set; then
5061  echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063  lt_cv_ld_reload_flag='-r'
5064fi
5065echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5066echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5067reload_flag=$lt_cv_ld_reload_flag
5068case $reload_flag in
5069"" | " "*) ;;
5070*) reload_flag=" $reload_flag" ;;
5071esac
5072reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073case $host_os in
5074  darwin*)
5075    if test "$GCC" = yes; then
5076      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5077    else
5078      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5079    fi
5080    ;;
5081esac
5082
5083echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5084echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5085if test "${lt_cv_path_NM+set}" = set; then
5086  echo $ECHO_N "(cached) $ECHO_C" >&6
5087else
5088  if test -n "$NM"; then
5089  # Let the user override the test.
5090  lt_cv_path_NM="$NM"
5091else
5092  lt_nm_to_check="${ac_tool_prefix}nm"
5093  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5094    lt_nm_to_check="$lt_nm_to_check nm"
5095  fi
5096  for lt_tmp_nm in $lt_nm_to_check; do
5097    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5098    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5099      IFS="$lt_save_ifs"
5100      test -z "$ac_dir" && ac_dir=.
5101      tmp_nm="$ac_dir/$lt_tmp_nm"
5102      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5103        # Check to see if the nm accepts a BSD-compat flag.
5104        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5105        #   nm: unknown option "B" ignored
5106        # Tru64's nm complains that /dev/null is an invalid object file
5107        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5108        */dev/null* | *'Invalid file or object type'*)
5109          lt_cv_path_NM="$tmp_nm -B"
5110          break
5111          ;;
5112        *)
5113          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5114          */dev/null*)
5115            lt_cv_path_NM="$tmp_nm -p"
5116            break
5117            ;;
5118          *)
5119            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5120            continue # so that we can try to find one that supports BSD flags
5121            ;;
5122          esac
5123          ;;
5124        esac
5125      fi
5126    done
5127    IFS="$lt_save_ifs"
5128  done
5129  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5130fi
5131fi
5132echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5133echo "${ECHO_T}$lt_cv_path_NM" >&6
5134NM="$lt_cv_path_NM"
5135
5136echo "$as_me:$LINENO: checking whether ln -s works" >&5
5137echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5138LN_S=$as_ln_s
5139if test "$LN_S" = "ln -s"; then
5140  echo "$as_me:$LINENO: result: yes" >&5
5141echo "${ECHO_T}yes" >&6
5142else
5143  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5144echo "${ECHO_T}no, using $LN_S" >&6
5145fi
5146
5147echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5148echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5149if test "${lt_cv_deplibs_check_method+set}" = set; then
5150  echo $ECHO_N "(cached) $ECHO_C" >&6
5151else
5152  lt_cv_file_magic_cmd='$MAGIC_CMD'
5153lt_cv_file_magic_test_file=
5154lt_cv_deplibs_check_method='unknown'
5155# Need to set the preceding variable on all platforms that support
5156# interlibrary dependencies.
5157# 'none' -- dependencies not supported.
5158# `unknown' -- same as none, but documents that we really don't know.
5159# 'pass_all' -- all dependencies passed with no checks.
5160# 'test_compile' -- check by making test program.
5161# 'file_magic [[regex]]' -- check by looking for files in library path
5162# which responds to the $file_magic_cmd with a given extended regex.
5163# If you have `file' or equivalent on your system and you're not sure
5164# whether `pass_all' will *always* work, you probably want this one.
5165
5166case $host_os in
5167aix4* | aix5*)
5168  lt_cv_deplibs_check_method=pass_all
5169  ;;
5170
5171beos*)
5172  lt_cv_deplibs_check_method=pass_all
5173  ;;
5174
5175bsdi[45]*)
5176  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5177  lt_cv_file_magic_cmd='/usr/bin/file -L'
5178  lt_cv_file_magic_test_file=/shlib/libc.so
5179  ;;
5180
5181cygwin*)
5182  # func_win32_libid is a shell function defined in ltmain.sh
5183  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5184  lt_cv_file_magic_cmd='func_win32_libid'
5185  ;;
5186
5187mingw* | pw32*)
5188  # Base MSYS/MinGW do not provide the 'file' command needed by
5189  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5190  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5191  lt_cv_file_magic_cmd='$OBJDUMP -f'
5192  ;;
5193
5194darwin* | rhapsody*)
5195  lt_cv_deplibs_check_method=pass_all
5196  ;;
5197
5198freebsd* | kfreebsd*-gnu | dragonfly*)
5199  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5200    case $host_cpu in
5201    i*86 )
5202      # Not sure whether the presence of OpenBSD here was a mistake.
5203      # Let's accept both of them until this is cleared up.
5204      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5205      lt_cv_file_magic_cmd=/usr/bin/file
5206      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5207      ;;
5208    esac
5209  else
5210    lt_cv_deplibs_check_method=pass_all
5211  fi
5212  ;;
5213
5214gnu*)
5215  lt_cv_deplibs_check_method=pass_all
5216  ;;
5217
5218hpux10.20* | hpux11*)
5219  lt_cv_file_magic_cmd=/usr/bin/file
5220  case $host_cpu in
5221  ia64*)
5222    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5223    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5224    ;;
5225  hppa*64*)
5226    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]'
5227    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5228    ;;
5229  *)
5230    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5231    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5232    ;;
5233  esac
5234  ;;
5235
5236interix3*)
5237  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5238  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5239  ;;
5240
5241irix5* | irix6* | nonstopux*)
5242  case $LD in
5243  *-32|*"-32 ") libmagic=32-bit;;
5244  *-n32|*"-n32 ") libmagic=N32;;
5245  *-64|*"-64 ") libmagic=64-bit;;
5246  *) libmagic=never-match;;
5247  esac
5248  lt_cv_deplibs_check_method=pass_all
5249  ;;
5250
5251# This must be Linux ELF.
5252linux*)
5253  lt_cv_deplibs_check_method=pass_all
5254  ;;
5255
5256netbsd*)
5257  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5258    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5259  else
5260    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5261  fi
5262  ;;
5263
5264newos6*)
5265  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5266  lt_cv_file_magic_cmd=/usr/bin/file
5267  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5268  ;;
5269
5270nto-qnx*)
5271  lt_cv_deplibs_check_method=unknown
5272  ;;
5273
5274openbsd*)
5275  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5276    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5277  else
5278    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5279  fi
5280  ;;
5281
5282osf3* | osf4* | osf5*)
5283  lt_cv_deplibs_check_method=pass_all
5284  ;;
5285
5286solaris*)
5287  lt_cv_deplibs_check_method=pass_all
5288  ;;
5289
5290sysv4 | sysv4.3*)
5291  case $host_vendor in
5292  motorola)
5293    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]'
5294    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5295    ;;
5296  ncr)
5297    lt_cv_deplibs_check_method=pass_all
5298    ;;
5299  sequent)
5300    lt_cv_file_magic_cmd='/bin/file'
5301    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5302    ;;
5303  sni)
5304    lt_cv_file_magic_cmd='/bin/file'
5305    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5306    lt_cv_file_magic_test_file=/lib/libc.so
5307    ;;
5308  siemens)
5309    lt_cv_deplibs_check_method=pass_all
5310    ;;
5311  pc)
5312    lt_cv_deplibs_check_method=pass_all
5313    ;;
5314  esac
5315  ;;
5316
5317sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5318  lt_cv_deplibs_check_method=pass_all
5319  ;;
5320esac
5321
5322fi
5323echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5324echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5325file_magic_cmd=$lt_cv_file_magic_cmd
5326deplibs_check_method=$lt_cv_deplibs_check_method
5327test -z "$deplibs_check_method" && deplibs_check_method=unknown
5328
5329
5330
5331
5332# If no C compiler was specified, use CC.
5333LTCC=${LTCC-"$CC"}
5334
5335# If no C compiler flags were specified, use CFLAGS.
5336LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5337
5338# Allow CC to be a program name with arguments.
5339compiler=$CC
5340
5341# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5342if test "${enable_libtool_lock+set}" = set; then
5343  enableval="$enable_libtool_lock"
5344
5345fi;
5346test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5347
5348# Some flags need to be propagated to the compiler or linker for good
5349# libtool support.
5350case $host in
5351ia64-*-hpux*)
5352  # Find out which ABI we are using.
5353  echo 'int i;' > conftest.$ac_ext
5354  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355  (eval $ac_compile) 2>&5
5356  ac_status=$?
5357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358  (exit $ac_status); }; then
5359    case `/usr/bin/file conftest.$ac_objext` in
5360    *ELF-32*)
5361      HPUX_IA64_MODE="32"
5362      ;;
5363    *ELF-64*)
5364      HPUX_IA64_MODE="64"
5365      ;;
5366    esac
5367  fi
5368  rm -rf conftest*
5369  ;;
5370*-*-irix6*)
5371  # Find out which ABI we are using.
5372  echo '#line 5372 "configure"' > conftest.$ac_ext
5373  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374  (eval $ac_compile) 2>&5
5375  ac_status=$?
5376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377  (exit $ac_status); }; then
5378   if test "$lt_cv_prog_gnu_ld" = yes; then
5379    case `/usr/bin/file conftest.$ac_objext` in
5380    *32-bit*)
5381      LD="${LD-ld} -melf32bsmip"
5382      ;;
5383    *N32*)
5384      LD="${LD-ld} -melf32bmipn32"
5385      ;;
5386    *64-bit*)
5387      LD="${LD-ld} -melf64bmip"
5388      ;;
5389    esac
5390   else
5391    case `/usr/bin/file conftest.$ac_objext` in
5392    *32-bit*)
5393      LD="${LD-ld} -32"
5394      ;;
5395    *N32*)
5396      LD="${LD-ld} -n32"
5397      ;;
5398    *64-bit*)
5399      LD="${LD-ld} -64"
5400      ;;
5401    esac
5402   fi
5403  fi
5404  rm -rf conftest*
5405  ;;
5406
5407x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5408  # Find out which ABI we are using.
5409  echo 'int i;' > conftest.$ac_ext
5410  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411  (eval $ac_compile) 2>&5
5412  ac_status=$?
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); }; then
5415    case `/usr/bin/file conftest.o` in
5416    *32-bit*)
5417      case $host in
5418        x86_64-*linux*)
5419          LD="${LD-ld} -m elf_i386"
5420          ;;
5421        ppc64-*linux*|powerpc64-*linux*)
5422          LD="${LD-ld} -m elf32ppclinux"
5423          ;;
5424        s390x-*linux*)
5425          LD="${LD-ld} -m elf_s390"
5426          ;;
5427        sparc64-*linux*)
5428          LD="${LD-ld} -m elf32_sparc"
5429          ;;
5430      esac
5431      ;;
5432    *64-bit*)
5433      case $host in
5434        x86_64-*linux*)
5435          LD="${LD-ld} -m elf_x86_64"
5436          ;;
5437        ppc*-*linux*|powerpc*-*linux*)
5438          LD="${LD-ld} -m elf64ppc"
5439          ;;
5440        s390*-*linux*)
5441          LD="${LD-ld} -m elf64_s390"
5442          ;;
5443        sparc*-*linux*)
5444          LD="${LD-ld} -m elf64_sparc"
5445          ;;
5446      esac
5447      ;;
5448    esac
5449  fi
5450  rm -rf conftest*
5451  ;;
5452
5453*-*-sco3.2v5*)
5454  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5455  SAVE_CFLAGS="$CFLAGS"
5456  CFLAGS="$CFLAGS -belf"
5457  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5458echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5459if test "${lt_cv_cc_needs_belf+set}" = set; then
5460  echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462  ac_ext=c
5463ac_cpp='$CPP $CPPFLAGS'
5464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467
5468     cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h.  */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h.  */
5474
5475int
5476main ()
5477{
5478
5479  ;
5480  return 0;
5481}
5482_ACEOF
5483rm -f conftest.$ac_objext conftest$ac_exeext
5484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485  (eval $ac_link) 2>conftest.er1
5486  ac_status=$?
5487  grep -v '^ *+' conftest.er1 >conftest.err
5488  rm -f conftest.er1
5489  cat conftest.err >&5
5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491  (exit $ac_status); } &&
5492         { ac_try='test -z "$ac_c_werror_flag"
5493                         || test ! -s conftest.err'
5494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495  (eval $ac_try) 2>&5
5496  ac_status=$?
5497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498  (exit $ac_status); }; } &&
5499         { ac_try='test -s conftest$ac_exeext'
5500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501  (eval $ac_try) 2>&5
5502  ac_status=$?
5503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504  (exit $ac_status); }; }; then
5505  lt_cv_cc_needs_belf=yes
5506else
5507  echo "$as_me: failed program was:" >&5
5508sed 's/^/| /' conftest.$ac_ext >&5
5509
5510lt_cv_cc_needs_belf=no
5511fi
5512rm -f conftest.err conftest.$ac_objext \
5513      conftest$ac_exeext conftest.$ac_ext
5514     ac_ext=c
5515ac_cpp='$CPP $CPPFLAGS'
5516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518ac_compiler_gnu=$ac_cv_c_compiler_gnu
5519
5520fi
5521echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5522echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5523  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5524    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5525    CFLAGS="$SAVE_CFLAGS"
5526  fi
5527  ;;
5528sparc*-*solaris*)
5529  # Find out which ABI we are using.
5530  echo 'int i;' > conftest.$ac_ext
5531  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532  (eval $ac_compile) 2>&5
5533  ac_status=$?
5534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535  (exit $ac_status); }; then
5536    case `/usr/bin/file conftest.o` in
5537    *64-bit*)
5538      case $lt_cv_prog_gnu_ld in
5539      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5540      *)    LD="${LD-ld} -64" ;;
5541      esac
5542      ;;
5543    esac
5544  fi
5545  rm -rf conftest*
5546  ;;
5547
5548
5549esac
5550
5551need_locks="$enable_libtool_lock"
5552
5553
5554ac_ext=c
5555ac_cpp='$CPP $CPPFLAGS'
5556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558ac_compiler_gnu=$ac_cv_c_compiler_gnu
5559echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5560echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5561# On Suns, sometimes $CPP names a directory.
5562if test -n "$CPP" && test -d "$CPP"; then
5563  CPP=
5564fi
5565if test -z "$CPP"; then
5566  if test "${ac_cv_prog_CPP+set}" = set; then
5567  echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569      # Double quotes because CPP needs to be expanded
5570    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5571    do
5572      ac_preproc_ok=false
5573for ac_c_preproc_warn_flag in '' yes
5574do
5575  # Use a header file that comes with gcc, so configuring glibc
5576  # with a fresh cross-compiler works.
5577  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5578  # <limits.h> exists even on freestanding compilers.
5579  # On the NeXT, cc -E runs the code through the compiler's parser,
5580  # not just through cpp. "Syntax error" is here to catch this case.
5581  cat >conftest.$ac_ext <<_ACEOF
5582/* confdefs.h.  */
5583_ACEOF
5584cat confdefs.h >>conftest.$ac_ext
5585cat >>conftest.$ac_ext <<_ACEOF
5586/* end confdefs.h.  */
5587#ifdef __STDC__
5588# include <limits.h>
5589#else
5590# include <assert.h>
5591#endif
5592                     Syntax error
5593_ACEOF
5594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5595  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5596  ac_status=$?
5597  grep -v '^ *+' conftest.er1 >conftest.err
5598  rm -f conftest.er1
5599  cat conftest.err >&5
5600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601  (exit $ac_status); } >/dev/null; then
5602  if test -s conftest.err; then
5603    ac_cpp_err=$ac_c_preproc_warn_flag
5604    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5605  else
5606    ac_cpp_err=
5607  fi
5608else
5609  ac_cpp_err=yes
5610fi
5611if test -z "$ac_cpp_err"; then
5612  :
5613else
5614  echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617  # Broken: fails on valid input.
5618continue
5619fi
5620rm -f conftest.err conftest.$ac_ext
5621
5622  # OK, works on sane cases.  Now check whether non-existent headers
5623  # can be detected and how.
5624  cat >conftest.$ac_ext <<_ACEOF
5625/* confdefs.h.  */
5626_ACEOF
5627cat confdefs.h >>conftest.$ac_ext
5628cat >>conftest.$ac_ext <<_ACEOF
5629/* end confdefs.h.  */
5630#include <ac_nonexistent.h>
5631_ACEOF
5632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5633  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5634  ac_status=$?
5635  grep -v '^ *+' conftest.er1 >conftest.err
5636  rm -f conftest.er1
5637  cat conftest.err >&5
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); } >/dev/null; then
5640  if test -s conftest.err; then
5641    ac_cpp_err=$ac_c_preproc_warn_flag
5642    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5643  else
5644    ac_cpp_err=
5645  fi
5646else
5647  ac_cpp_err=yes
5648fi
5649if test -z "$ac_cpp_err"; then
5650  # Broken: success on invalid input.
5651continue
5652else
5653  echo "$as_me: failed program was:" >&5
5654sed 's/^/| /' conftest.$ac_ext >&5
5655
5656  # Passes both tests.
5657ac_preproc_ok=:
5658break
5659fi
5660rm -f conftest.err conftest.$ac_ext
5661
5662done
5663# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5664rm -f conftest.err conftest.$ac_ext
5665if $ac_preproc_ok; then
5666  break
5667fi
5668
5669    done
5670    ac_cv_prog_CPP=$CPP
5671
5672fi
5673  CPP=$ac_cv_prog_CPP
5674else
5675  ac_cv_prog_CPP=$CPP
5676fi
5677echo "$as_me:$LINENO: result: $CPP" >&5
5678echo "${ECHO_T}$CPP" >&6
5679ac_preproc_ok=false
5680for ac_c_preproc_warn_flag in '' yes
5681do
5682  # Use a header file that comes with gcc, so configuring glibc
5683  # with a fresh cross-compiler works.
5684  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685  # <limits.h> exists even on freestanding compilers.
5686  # On the NeXT, cc -E runs the code through the compiler's parser,
5687  # not just through cpp. "Syntax error" is here to catch this case.
5688  cat >conftest.$ac_ext <<_ACEOF
5689/* confdefs.h.  */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h.  */
5694#ifdef __STDC__
5695# include <limits.h>
5696#else
5697# include <assert.h>
5698#endif
5699                     Syntax error
5700_ACEOF
5701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5702  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5703  ac_status=$?
5704  grep -v '^ *+' conftest.er1 >conftest.err
5705  rm -f conftest.er1
5706  cat conftest.err >&5
5707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708  (exit $ac_status); } >/dev/null; then
5709  if test -s conftest.err; then
5710    ac_cpp_err=$ac_c_preproc_warn_flag
5711    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5712  else
5713    ac_cpp_err=
5714  fi
5715else
5716  ac_cpp_err=yes
5717fi
5718if test -z "$ac_cpp_err"; then
5719  :
5720else
5721  echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
5724  # Broken: fails on valid input.
5725continue
5726fi
5727rm -f conftest.err conftest.$ac_ext
5728
5729  # OK, works on sane cases.  Now check whether non-existent headers
5730  # can be detected and how.
5731  cat >conftest.$ac_ext <<_ACEOF
5732/* confdefs.h.  */
5733_ACEOF
5734cat confdefs.h >>conftest.$ac_ext
5735cat >>conftest.$ac_ext <<_ACEOF
5736/* end confdefs.h.  */
5737#include <ac_nonexistent.h>
5738_ACEOF
5739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5740  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5741  ac_status=$?
5742  grep -v '^ *+' conftest.er1 >conftest.err
5743  rm -f conftest.er1
5744  cat conftest.err >&5
5745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746  (exit $ac_status); } >/dev/null; then
5747  if test -s conftest.err; then
5748    ac_cpp_err=$ac_c_preproc_warn_flag
5749    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5750  else
5751    ac_cpp_err=
5752  fi
5753else
5754  ac_cpp_err=yes
5755fi
5756if test -z "$ac_cpp_err"; then
5757  # Broken: success on invalid input.
5758continue
5759else
5760  echo "$as_me: failed program was:" >&5
5761sed 's/^/| /' conftest.$ac_ext >&5
5762
5763  # Passes both tests.
5764ac_preproc_ok=:
5765break
5766fi
5767rm -f conftest.err conftest.$ac_ext
5768
5769done
5770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5771rm -f conftest.err conftest.$ac_ext
5772if $ac_preproc_ok; then
5773  :
5774else
5775  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5776See \`config.log' for more details." >&5
5777echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5778See \`config.log' for more details." >&2;}
5779   { (exit 1); exit 1; }; }
5780fi
5781
5782ac_ext=c
5783ac_cpp='$CPP $CPPFLAGS'
5784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786ac_compiler_gnu=$ac_cv_c_compiler_gnu
5787
5788
5789echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5790echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5791if test "${ac_cv_header_stdc+set}" = set; then
5792  echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794  cat >conftest.$ac_ext <<_ACEOF
5795/* confdefs.h.  */
5796_ACEOF
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h.  */
5800#include <stdlib.h>
5801#include <stdarg.h>
5802#include <string.h>
5803#include <float.h>
5804
5805int
5806main ()
5807{
5808
5809  ;
5810  return 0;
5811}
5812_ACEOF
5813rm -f conftest.$ac_objext
5814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815  (eval $ac_compile) 2>conftest.er1
5816  ac_status=$?
5817  grep -v '^ *+' conftest.er1 >conftest.err
5818  rm -f conftest.er1
5819  cat conftest.err >&5
5820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821  (exit $ac_status); } &&
5822         { ac_try='test -z "$ac_c_werror_flag"
5823                         || test ! -s conftest.err'
5824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825  (eval $ac_try) 2>&5
5826  ac_status=$?
5827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828  (exit $ac_status); }; } &&
5829         { ac_try='test -s conftest.$ac_objext'
5830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831  (eval $ac_try) 2>&5
5832  ac_status=$?
5833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834  (exit $ac_status); }; }; then
5835  ac_cv_header_stdc=yes
5836else
5837  echo "$as_me: failed program was:" >&5
5838sed 's/^/| /' conftest.$ac_ext >&5
5839
5840ac_cv_header_stdc=no
5841fi
5842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843
5844if test $ac_cv_header_stdc = yes; then
5845  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5846  cat >conftest.$ac_ext <<_ACEOF
5847/* confdefs.h.  */
5848_ACEOF
5849cat confdefs.h >>conftest.$ac_ext
5850cat >>conftest.$ac_ext <<_ACEOF
5851/* end confdefs.h.  */
5852#include <string.h>
5853
5854_ACEOF
5855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5856  $EGREP "memchr" >/dev/null 2>&1; then
5857  :
5858else
5859  ac_cv_header_stdc=no
5860fi
5861rm -f conftest*
5862
5863fi
5864
5865if test $ac_cv_header_stdc = yes; then
5866  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5867  cat >conftest.$ac_ext <<_ACEOF
5868/* confdefs.h.  */
5869_ACEOF
5870cat confdefs.h >>conftest.$ac_ext
5871cat >>conftest.$ac_ext <<_ACEOF
5872/* end confdefs.h.  */
5873#include <stdlib.h>
5874
5875_ACEOF
5876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5877  $EGREP "free" >/dev/null 2>&1; then
5878  :
5879else
5880  ac_cv_header_stdc=no
5881fi
5882rm -f conftest*
5883
5884fi
5885
5886if test $ac_cv_header_stdc = yes; then
5887  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5888  if test "$cross_compiling" = yes; then
5889  :
5890else
5891  cat >conftest.$ac_ext <<_ACEOF
5892/* confdefs.h.  */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h.  */
5897#include <ctype.h>
5898#if ((' ' & 0x0FF) == 0x020)
5899# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5900# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5901#else
5902# define ISLOWER(c) \
5903                   (('a' <= (c) && (c) <= 'i') \
5904                     || ('j' <= (c) && (c) <= 'r') \
5905                     || ('s' <= (c) && (c) <= 'z'))
5906# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5907#endif
5908
5909#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5910int
5911main ()
5912{
5913  int i;
5914  for (i = 0; i < 256; i++)
5915    if (XOR (islower (i), ISLOWER (i))
5916        || toupper (i) != TOUPPER (i))
5917      exit(2);
5918  exit (0);
5919}
5920_ACEOF
5921rm -f conftest$ac_exeext
5922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5923  (eval $ac_link) 2>&5
5924  ac_status=$?
5925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928  (eval $ac_try) 2>&5
5929  ac_status=$?
5930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931  (exit $ac_status); }; }; then
5932  :
5933else
5934  echo "$as_me: program exited with status $ac_status" >&5
5935echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938( exit $ac_status )
5939ac_cv_header_stdc=no
5940fi
5941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5942fi
5943fi
5944fi
5945echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5946echo "${ECHO_T}$ac_cv_header_stdc" >&6
5947if test $ac_cv_header_stdc = yes; then
5948
5949cat >>confdefs.h <<\_ACEOF
5950#define STDC_HEADERS 1
5951_ACEOF
5952
5953fi
5954
5955# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5966                  inttypes.h stdint.h unistd.h
5967do
5968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5969echo "$as_me:$LINENO: checking for $ac_header" >&5
5970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5971if eval "test \"\${$as_ac_Header+set}\" = set"; then
5972  echo $ECHO_N "(cached) $ECHO_C" >&6
5973else
5974  cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h.  */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h.  */
5980$ac_includes_default
5981
5982#include <$ac_header>
5983_ACEOF
5984rm -f conftest.$ac_objext
5985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986  (eval $ac_compile) 2>conftest.er1
5987  ac_status=$?
5988  grep -v '^ *+' conftest.er1 >conftest.err
5989  rm -f conftest.er1
5990  cat conftest.err >&5
5991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992  (exit $ac_status); } &&
5993         { ac_try='test -z "$ac_c_werror_flag"
5994                         || test ! -s conftest.err'
5995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996  (eval $ac_try) 2>&5
5997  ac_status=$?
5998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999  (exit $ac_status); }; } &&
6000         { ac_try='test -s conftest.$ac_objext'
6001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002  (eval $ac_try) 2>&5
6003  ac_status=$?
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); }; }; then
6006  eval "$as_ac_Header=yes"
6007else
6008  echo "$as_me: failed program was:" >&5
6009sed 's/^/| /' conftest.$ac_ext >&5
6010
6011eval "$as_ac_Header=no"
6012fi
6013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6014fi
6015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6017if test `eval echo '${'$as_ac_Header'}'` = yes; then
6018  cat >>confdefs.h <<_ACEOF
6019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6020_ACEOF
6021
6022fi
6023
6024done
6025
6026
6027
6028for ac_header in dlfcn.h
6029do
6030as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6031if eval "test \"\${$as_ac_Header+set}\" = set"; then
6032  echo "$as_me:$LINENO: checking for $ac_header" >&5
6033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6034if eval "test \"\${$as_ac_Header+set}\" = set"; then
6035  echo $ECHO_N "(cached) $ECHO_C" >&6
6036fi
6037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6039else
6040  # Is the header compilable?
6041echo "$as_me:$LINENO: checking $ac_header usability" >&5
6042echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6043cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h.  */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h.  */
6049$ac_includes_default
6050#include <$ac_header>
6051_ACEOF
6052rm -f conftest.$ac_objext
6053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6054  (eval $ac_compile) 2>conftest.er1
6055  ac_status=$?
6056  grep -v '^ *+' conftest.er1 >conftest.err
6057  rm -f conftest.er1
6058  cat conftest.err >&5
6059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060  (exit $ac_status); } &&
6061         { ac_try='test -z "$ac_c_werror_flag"
6062                         || test ! -s conftest.err'
6063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064  (eval $ac_try) 2>&5
6065  ac_status=$?
6066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067  (exit $ac_status); }; } &&
6068         { ac_try='test -s conftest.$ac_objext'
6069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070  (eval $ac_try) 2>&5
6071  ac_status=$?
6072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073  (exit $ac_status); }; }; then
6074  ac_header_compiler=yes
6075else
6076  echo "$as_me: failed program was:" >&5
6077sed 's/^/| /' conftest.$ac_ext >&5
6078
6079ac_header_compiler=no
6080fi
6081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6082echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6083echo "${ECHO_T}$ac_header_compiler" >&6
6084
6085# Is the header present?
6086echo "$as_me:$LINENO: checking $ac_header presence" >&5
6087echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6088cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h.  */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h.  */
6094#include <$ac_header>
6095_ACEOF
6096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6097  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6098  ac_status=$?
6099  grep -v '^ *+' conftest.er1 >conftest.err
6100  rm -f conftest.er1
6101  cat conftest.err >&5
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); } >/dev/null; then
6104  if test -s conftest.err; then
6105    ac_cpp_err=$ac_c_preproc_warn_flag
6106    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6107  else
6108    ac_cpp_err=
6109  fi
6110else
6111  ac_cpp_err=yes
6112fi
6113if test -z "$ac_cpp_err"; then
6114  ac_header_preproc=yes
6115else
6116  echo "$as_me: failed program was:" >&5
6117sed 's/^/| /' conftest.$ac_ext >&5
6118
6119  ac_header_preproc=no
6120fi
6121rm -f conftest.err conftest.$ac_ext
6122echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6123echo "${ECHO_T}$ac_header_preproc" >&6
6124
6125# So?  What about this header?
6126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6127  yes:no: )
6128    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6130    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6132    ac_header_preproc=yes
6133    ;;
6134  no:yes:* )
6135    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6137    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6138echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6139    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6141    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6142echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6143    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6145    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6147    (
6148      cat <<\_ASBOX
6149## --------------------------------------------------------------- ##
6150## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6151## --------------------------------------------------------------- ##
6152_ASBOX
6153    ) |
6154      sed "s/^/$as_me: WARNING:     /" >&2
6155    ;;
6156esac
6157echo "$as_me:$LINENO: checking for $ac_header" >&5
6158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6159if eval "test \"\${$as_ac_Header+set}\" = set"; then
6160  echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162  eval "$as_ac_Header=\$ac_header_preproc"
6163fi
6164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6166
6167fi
6168if test `eval echo '${'$as_ac_Header'}'` = yes; then
6169  cat >>confdefs.h <<_ACEOF
6170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6171_ACEOF
6172
6173fi
6174
6175done
6176
6177ac_ext=cc
6178ac_cpp='$CXXCPP $CPPFLAGS'
6179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6182if test -n "$ac_tool_prefix"; then
6183  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6184  do
6185    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6186set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6187echo "$as_me:$LINENO: checking for $ac_word" >&5
6188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6189if test "${ac_cv_prog_CXX+set}" = set; then
6190  echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192  if test -n "$CXX"; then
6193  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6194else
6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
6197do
6198  IFS=$as_save_IFS
6199  test -z "$as_dir" && as_dir=.
6200  for ac_exec_ext in '' $ac_executable_extensions; do
6201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6202    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204    break 2
6205  fi
6206done
6207done
6208
6209fi
6210fi
6211CXX=$ac_cv_prog_CXX
6212if test -n "$CXX"; then
6213  echo "$as_me:$LINENO: result: $CXX" >&5
6214echo "${ECHO_T}$CXX" >&6
6215else
6216  echo "$as_me:$LINENO: result: no" >&5
6217echo "${ECHO_T}no" >&6
6218fi
6219
6220    test -n "$CXX" && break
6221  done
6222fi
6223if test -z "$CXX"; then
6224  ac_ct_CXX=$CXX
6225  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6226do
6227  # Extract the first word of "$ac_prog", so it can be a program name with args.
6228set dummy $ac_prog; ac_word=$2
6229echo "$as_me:$LINENO: checking for $ac_word" >&5
6230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6231if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6232  echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234  if test -n "$ac_ct_CXX"; then
6235  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240  IFS=$as_save_IFS
6241  test -z "$as_dir" && as_dir=.
6242  for ac_exec_ext in '' $ac_executable_extensions; do
6243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244    ac_cv_prog_ac_ct_CXX="$ac_prog"
6245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246    break 2
6247  fi
6248done
6249done
6250
6251fi
6252fi
6253ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6254if test -n "$ac_ct_CXX"; then
6255  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6256echo "${ECHO_T}$ac_ct_CXX" >&6
6257else
6258  echo "$as_me:$LINENO: result: no" >&5
6259echo "${ECHO_T}no" >&6
6260fi
6261
6262  test -n "$ac_ct_CXX" && break
6263done
6264test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6265
6266  CXX=$ac_ct_CXX
6267fi
6268
6269
6270# Provide some information about the compiler.
6271echo "$as_me:$LINENO:" \
6272     "checking for C++ compiler version" >&5
6273ac_compiler=`set X $ac_compile; echo $2`
6274{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6275  (eval $ac_compiler --version </dev/null >&5) 2>&5
6276  ac_status=$?
6277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278  (exit $ac_status); }
6279{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6280  (eval $ac_compiler -v </dev/null >&5) 2>&5
6281  ac_status=$?
6282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283  (exit $ac_status); }
6284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6285  (eval $ac_compiler -V </dev/null >&5) 2>&5
6286  ac_status=$?
6287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288  (exit $ac_status); }
6289
6290echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6291echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6292if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6293  echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295  cat >conftest.$ac_ext <<_ACEOF
6296/* confdefs.h.  */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h.  */
6301
6302int
6303main ()
6304{
6305#ifndef __GNUC__
6306       choke me
6307#endif
6308
6309  ;
6310  return 0;
6311}
6312_ACEOF
6313rm -f conftest.$ac_objext
6314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315  (eval $ac_compile) 2>conftest.er1
6316  ac_status=$?
6317  grep -v '^ *+' conftest.er1 >conftest.err
6318  rm -f conftest.er1
6319  cat conftest.err >&5
6320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321  (exit $ac_status); } &&
6322         { ac_try='test -z "$ac_cxx_werror_flag"
6323                         || test ! -s conftest.err'
6324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325  (eval $ac_try) 2>&5
6326  ac_status=$?
6327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328  (exit $ac_status); }; } &&
6329         { ac_try='test -s conftest.$ac_objext'
6330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331  (eval $ac_try) 2>&5
6332  ac_status=$?
6333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334  (exit $ac_status); }; }; then
6335  ac_compiler_gnu=yes
6336else
6337  echo "$as_me: failed program was:" >&5
6338sed 's/^/| /' conftest.$ac_ext >&5
6339
6340ac_compiler_gnu=no
6341fi
6342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6343ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6344
6345fi
6346echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6347echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6348GXX=`test $ac_compiler_gnu = yes && echo yes`
6349ac_test_CXXFLAGS=${CXXFLAGS+set}
6350ac_save_CXXFLAGS=$CXXFLAGS
6351CXXFLAGS="-g"
6352echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6353echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6354if test "${ac_cv_prog_cxx_g+set}" = set; then
6355  echo $ECHO_N "(cached) $ECHO_C" >&6
6356else
6357  cat >conftest.$ac_ext <<_ACEOF
6358/* confdefs.h.  */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h.  */
6363
6364int
6365main ()
6366{
6367
6368  ;
6369  return 0;
6370}
6371_ACEOF
6372rm -f conftest.$ac_objext
6373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374  (eval $ac_compile) 2>conftest.er1
6375  ac_status=$?
6376  grep -v '^ *+' conftest.er1 >conftest.err
6377  rm -f conftest.er1
6378  cat conftest.err >&5
6379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380  (exit $ac_status); } &&
6381         { ac_try='test -z "$ac_cxx_werror_flag"
6382                         || test ! -s conftest.err'
6383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384  (eval $ac_try) 2>&5
6385  ac_status=$?
6386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387  (exit $ac_status); }; } &&
6388         { ac_try='test -s conftest.$ac_objext'
6389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390  (eval $ac_try) 2>&5
6391  ac_status=$?
6392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393  (exit $ac_status); }; }; then
6394  ac_cv_prog_cxx_g=yes
6395else
6396  echo "$as_me: failed program was:" >&5
6397sed 's/^/| /' conftest.$ac_ext >&5
6398
6399ac_cv_prog_cxx_g=no
6400fi
6401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6402fi
6403echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6404echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6405if test "$ac_test_CXXFLAGS" = set; then
6406  CXXFLAGS=$ac_save_CXXFLAGS
6407elif test $ac_cv_prog_cxx_g = yes; then
6408  if test "$GXX" = yes; then
6409    CXXFLAGS="-g -O2"
6410  else
6411    CXXFLAGS="-g"
6412  fi
6413else
6414  if test "$GXX" = yes; then
6415    CXXFLAGS="-O2"
6416  else
6417    CXXFLAGS=
6418  fi
6419fi
6420for ac_declaration in \
6421   '' \
6422   'extern "C" void std::exit (int) throw (); using std::exit;' \
6423   'extern "C" void std::exit (int); using std::exit;' \
6424   'extern "C" void exit (int) throw ();' \
6425   'extern "C" void exit (int);' \
6426   'void exit (int);'
6427do
6428  cat >conftest.$ac_ext <<_ACEOF
6429/* confdefs.h.  */
6430_ACEOF
6431cat confdefs.h >>conftest.$ac_ext
6432cat >>conftest.$ac_ext <<_ACEOF
6433/* end confdefs.h.  */
6434$ac_declaration
6435#include <stdlib.h>
6436int
6437main ()
6438{
6439exit (42);
6440  ;
6441  return 0;
6442}
6443_ACEOF
6444rm -f conftest.$ac_objext
6445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446  (eval $ac_compile) 2>conftest.er1
6447  ac_status=$?
6448  grep -v '^ *+' conftest.er1 >conftest.err
6449  rm -f conftest.er1
6450  cat conftest.err >&5
6451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452  (exit $ac_status); } &&
6453         { ac_try='test -z "$ac_cxx_werror_flag"
6454                         || test ! -s conftest.err'
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); }; } &&
6460         { ac_try='test -s conftest.$ac_objext'
6461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462  (eval $ac_try) 2>&5
6463  ac_status=$?
6464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465  (exit $ac_status); }; }; then
6466  :
6467else
6468  echo "$as_me: failed program was:" >&5
6469sed 's/^/| /' conftest.$ac_ext >&5
6470
6471continue
6472fi
6473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6474  cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h.  */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h.  */
6480$ac_declaration
6481int
6482main ()
6483{
6484exit (42);
6485  ;
6486  return 0;
6487}
6488_ACEOF
6489rm -f conftest.$ac_objext
6490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491  (eval $ac_compile) 2>conftest.er1
6492  ac_status=$?
6493  grep -v '^ *+' conftest.er1 >conftest.err
6494  rm -f conftest.er1
6495  cat conftest.err >&5
6496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497  (exit $ac_status); } &&
6498         { ac_try='test -z "$ac_cxx_werror_flag"
6499                         || test ! -s conftest.err'
6500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501  (eval $ac_try) 2>&5
6502  ac_status=$?
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); }; } &&
6505         { ac_try='test -s conftest.$ac_objext'
6506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507  (eval $ac_try) 2>&5
6508  ac_status=$?
6509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510  (exit $ac_status); }; }; then
6511  break
6512else
6513  echo "$as_me: failed program was:" >&5
6514sed 's/^/| /' conftest.$ac_ext >&5
6515
6516fi
6517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6518done
6519rm -f conftest*
6520if test -n "$ac_declaration"; then
6521  echo '#ifdef __cplusplus' >>confdefs.h
6522  echo $ac_declaration      >>confdefs.h
6523  echo '#endif'             >>confdefs.h
6524fi
6525
6526ac_ext=cc
6527ac_cpp='$CXXCPP $CPPFLAGS'
6528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6531
6532depcc="$CXX"  am_compiler_list=
6533
6534echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6535echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6536if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6537  echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
6539  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6540  # We make a subdir and do the tests there.  Otherwise we can end up
6541  # making bogus files that we don't know about and never remove.  For
6542  # instance it was reported that on HP-UX the gcc test will end up
6543  # making a dummy file named `D' -- because `-MD' means `put the output
6544  # in D'.
6545  mkdir conftest.dir
6546  # Copy depcomp to subdir because otherwise we won't find it if we're
6547  # using a relative directory.
6548  cp "$am_depcomp" conftest.dir
6549  cd conftest.dir
6550  # We will build objects and dependencies in a subdirectory because
6551  # it helps to detect inapplicable dependency modes.  For instance
6552  # both Tru64's cc and ICC support -MD to output dependencies as a
6553  # side effect of compilation, but ICC will put the dependencies in
6554  # the current directory while Tru64 will put them in the object
6555  # directory.
6556  mkdir sub
6557
6558  am_cv_CXX_dependencies_compiler_type=none
6559  if test "$am_compiler_list" = ""; then
6560     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6561  fi
6562  for depmode in $am_compiler_list; do
6563    # Setup a source with many dependencies, because some compilers
6564    # like to wrap large dependency lists on column 80 (with \), and
6565    # we should not choose a depcomp mode which is confused by this.
6566    #
6567    # We need to recreate these files for each test, as the compiler may
6568    # overwrite some of them when testing with obscure command lines.
6569    # This happens at least with the AIX C compiler.
6570    : > sub/conftest.c
6571    for i in 1 2 3 4 5 6; do
6572      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6573      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6574      # Solaris 8's {/usr,}/bin/sh.
6575      touch sub/conftst$i.h
6576    done
6577    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6578
6579    case $depmode in
6580    nosideeffect)
6581      # after this tag, mechanisms are not by side-effect, so they'll
6582      # only be used when explicitly requested
6583      if test "x$enable_dependency_tracking" = xyes; then
6584        continue
6585      else
6586        break
6587      fi
6588      ;;
6589    none) break ;;
6590    esac
6591    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6592    # mode.  It turns out that the SunPro C++ compiler does not properly
6593    # handle `-M -o', and we need to detect this.
6594    if depmode=$depmode \
6595       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6596       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6597       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6598         >/dev/null 2>conftest.err &&
6599       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6600       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6601       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6602      # icc doesn't choke on unknown options, it will just issue warnings
6603      # or remarks (even with -Werror).  So we grep stderr for any message
6604      # that says an option was ignored or not supported.
6605      # When given -MP, icc 7.0 and 7.1 complain thusly:
6606      #   icc: Command line warning: ignoring option '-M'; no argument required
6607      # The diagnosis changed in icc 8.0:
6608      #   icc: Command line remark: option '-MP' not supported
6609      if (grep 'ignoring option' conftest.err ||
6610          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6611        am_cv_CXX_dependencies_compiler_type=$depmode
6612        break
6613      fi
6614    fi
6615  done
6616
6617  cd ..
6618  rm -rf conftest.dir
6619else
6620  am_cv_CXX_dependencies_compiler_type=none
6621fi
6622
6623fi
6624echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6625echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6626CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6627
6628
6629
6630if
6631  test "x$enable_dependency_tracking" != xno \
6632  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6633  am__fastdepCXX_TRUE=
6634  am__fastdepCXX_FALSE='#'
6635else
6636  am__fastdepCXX_TRUE='#'
6637  am__fastdepCXX_FALSE=
6638fi
6639
6640
6641
6642
6643if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6644    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6645    (test "X$CXX" != "Xg++"))) ; then
6646  ac_ext=cc
6647ac_cpp='$CXXCPP $CPPFLAGS'
6648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6651echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6652echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6653if test -z "$CXXCPP"; then
6654  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6655  echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657      # Double quotes because CXXCPP needs to be expanded
6658    for CXXCPP in "$CXX -E" "/lib/cpp"
6659    do
6660      ac_preproc_ok=false
6661for ac_cxx_preproc_warn_flag in '' yes
6662do
6663  # Use a header file that comes with gcc, so configuring glibc
6664  # with a fresh cross-compiler works.
6665  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666  # <limits.h> exists even on freestanding compilers.
6667  # On the NeXT, cc -E runs the code through the compiler's parser,
6668  # not just through cpp. "Syntax error" is here to catch this case.
6669  cat >conftest.$ac_ext <<_ACEOF
6670/* confdefs.h.  */
6671_ACEOF
6672cat confdefs.h >>conftest.$ac_ext
6673cat >>conftest.$ac_ext <<_ACEOF
6674/* end confdefs.h.  */
6675#ifdef __STDC__
6676# include <limits.h>
6677#else
6678# include <assert.h>
6679#endif
6680                     Syntax error
6681_ACEOF
6682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6683  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6684  ac_status=$?
6685  grep -v '^ *+' conftest.er1 >conftest.err
6686  rm -f conftest.er1
6687  cat conftest.err >&5
6688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689  (exit $ac_status); } >/dev/null; then
6690  if test -s conftest.err; then
6691    ac_cpp_err=$ac_cxx_preproc_warn_flag
6692    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6693  else
6694    ac_cpp_err=
6695  fi
6696else
6697  ac_cpp_err=yes
6698fi
6699if test -z "$ac_cpp_err"; then
6700  :
6701else
6702  echo "$as_me: failed program was:" >&5
6703sed 's/^/| /' conftest.$ac_ext >&5
6704
6705  # Broken: fails on valid input.
6706continue
6707fi
6708rm -f conftest.err conftest.$ac_ext
6709
6710  # OK, works on sane cases.  Now check whether non-existent headers
6711  # can be detected and how.
6712  cat >conftest.$ac_ext <<_ACEOF
6713/* confdefs.h.  */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h.  */
6718#include <ac_nonexistent.h>
6719_ACEOF
6720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6721  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6722  ac_status=$?
6723  grep -v '^ *+' conftest.er1 >conftest.err
6724  rm -f conftest.er1
6725  cat conftest.err >&5
6726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727  (exit $ac_status); } >/dev/null; then
6728  if test -s conftest.err; then
6729    ac_cpp_err=$ac_cxx_preproc_warn_flag
6730    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6731  else
6732    ac_cpp_err=
6733  fi
6734else
6735  ac_cpp_err=yes
6736fi
6737if test -z "$ac_cpp_err"; then
6738  # Broken: success on invalid input.
6739continue
6740else
6741  echo "$as_me: failed program was:" >&5
6742sed 's/^/| /' conftest.$ac_ext >&5
6743
6744  # Passes both tests.
6745ac_preproc_ok=:
6746break
6747fi
6748rm -f conftest.err conftest.$ac_ext
6749
6750done
6751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6752rm -f conftest.err conftest.$ac_ext
6753if $ac_preproc_ok; then
6754  break
6755fi
6756
6757    done
6758    ac_cv_prog_CXXCPP=$CXXCPP
6759
6760fi
6761  CXXCPP=$ac_cv_prog_CXXCPP
6762else
6763  ac_cv_prog_CXXCPP=$CXXCPP
6764fi
6765echo "$as_me:$LINENO: result: $CXXCPP" >&5
6766echo "${ECHO_T}$CXXCPP" >&6
6767ac_preproc_ok=false
6768for ac_cxx_preproc_warn_flag in '' yes
6769do
6770  # Use a header file that comes with gcc, so configuring glibc
6771  # with a fresh cross-compiler works.
6772  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6773  # <limits.h> exists even on freestanding compilers.
6774  # On the NeXT, cc -E runs the code through the compiler's parser,
6775  # not just through cpp. "Syntax error" is here to catch this case.
6776  cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h.  */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h.  */
6782#ifdef __STDC__
6783# include <limits.h>
6784#else
6785# include <assert.h>
6786#endif
6787                     Syntax error
6788_ACEOF
6789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6790  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6791  ac_status=$?
6792  grep -v '^ *+' conftest.er1 >conftest.err
6793  rm -f conftest.er1
6794  cat conftest.err >&5
6795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796  (exit $ac_status); } >/dev/null; then
6797  if test -s conftest.err; then
6798    ac_cpp_err=$ac_cxx_preproc_warn_flag
6799    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6800  else
6801    ac_cpp_err=
6802  fi
6803else
6804  ac_cpp_err=yes
6805fi
6806if test -z "$ac_cpp_err"; then
6807  :
6808else
6809  echo "$as_me: failed program was:" >&5
6810sed 's/^/| /' conftest.$ac_ext >&5
6811
6812  # Broken: fails on valid input.
6813continue
6814fi
6815rm -f conftest.err conftest.$ac_ext
6816
6817  # OK, works on sane cases.  Now check whether non-existent headers
6818  # can be detected and how.
6819  cat >conftest.$ac_ext <<_ACEOF
6820/* confdefs.h.  */
6821_ACEOF
6822cat confdefs.h >>conftest.$ac_ext
6823cat >>conftest.$ac_ext <<_ACEOF
6824/* end confdefs.h.  */
6825#include <ac_nonexistent.h>
6826_ACEOF
6827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6828  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6829  ac_status=$?
6830  grep -v '^ *+' conftest.er1 >conftest.err
6831  rm -f conftest.er1
6832  cat conftest.err >&5
6833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834  (exit $ac_status); } >/dev/null; then
6835  if test -s conftest.err; then
6836    ac_cpp_err=$ac_cxx_preproc_warn_flag
6837    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6838  else
6839    ac_cpp_err=
6840  fi
6841else
6842  ac_cpp_err=yes
6843fi
6844if test -z "$ac_cpp_err"; then
6845  # Broken: success on invalid input.
6846continue
6847else
6848  echo "$as_me: failed program was:" >&5
6849sed 's/^/| /' conftest.$ac_ext >&5
6850
6851  # Passes both tests.
6852ac_preproc_ok=:
6853break
6854fi
6855rm -f conftest.err conftest.$ac_ext
6856
6857done
6858# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6859rm -f conftest.err conftest.$ac_ext
6860if $ac_preproc_ok; then
6861  :
6862else
6863  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6864See \`config.log' for more details." >&5
6865echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6866See \`config.log' for more details." >&2;}
6867   { (exit 1); exit 1; }; }
6868fi
6869
6870ac_ext=cc
6871ac_cpp='$CXXCPP $CPPFLAGS'
6872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6875
6876fi
6877
6878
6879
6880# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6881
6882# find the maximum length of command line arguments
6883echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6884echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6885if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6886  echo $ECHO_N "(cached) $ECHO_C" >&6
6887else
6888    i=0
6889  teststring="ABCD"
6890
6891  case $build_os in
6892  msdosdjgpp*)
6893    # On DJGPP, this test can blow up pretty badly due to problems in libc
6894    # (any single argument exceeding 2000 bytes causes a buffer overrun
6895    # during glob expansion).  Even if it were fixed, the result of this
6896    # check would be larger than it should be.
6897    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6898    ;;
6899
6900  gnu*)
6901    # Under GNU Hurd, this test is not required because there is
6902    # no limit to the length of command line arguments.
6903    # Libtool will interpret -1 as no limit whatsoever
6904    lt_cv_sys_max_cmd_len=-1;
6905    ;;
6906
6907  cygwin* | mingw*)
6908    # On Win9x/ME, this test blows up -- it succeeds, but takes
6909    # about 5 minutes as the teststring grows exponentially.
6910    # Worse, since 9x/ME are not pre-emptively multitasking,
6911    # you end up with a "frozen" computer, even though with patience
6912    # the test eventually succeeds (with a max line length of 256k).
6913    # Instead, let's just punt: use the minimum linelength reported by
6914    # all of the supported platforms: 8192 (on NT/2K/XP).
6915    lt_cv_sys_max_cmd_len=8192;
6916    ;;
6917
6918  amigaos*)
6919    # On AmigaOS with pdksh, this test takes hours, literally.
6920    # So we just punt and use a minimum line length of 8192.
6921    lt_cv_sys_max_cmd_len=8192;
6922    ;;
6923
6924  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6925    # This has been around since 386BSD, at least.  Likely further.
6926    if test -x /sbin/sysctl; then
6927      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6928    elif test -x /usr/sbin/sysctl; then
6929      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6930    else
6931      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6932    fi
6933    # And add a safety zone
6934    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6935    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6936    ;;
6937
6938  interix*)
6939    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6940    lt_cv_sys_max_cmd_len=196608
6941    ;;
6942
6943  osf*)
6944    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6945    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6946    # nice to cause kernel panics so lets avoid the loop below.
6947    # First set a reasonable default.
6948    lt_cv_sys_max_cmd_len=16384
6949    #
6950    if test -x /sbin/sysconfig; then
6951      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6952        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6953      esac
6954    fi
6955    ;;
6956  sco3.2v5*)
6957    lt_cv_sys_max_cmd_len=102400
6958    ;;
6959  sysv5* | sco5v6* | sysv4.2uw2*)
6960    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6961    if test -n "$kargmax"; then
6962      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6963    else
6964      lt_cv_sys_max_cmd_len=32768
6965    fi
6966    ;;
6967  *)
6968    # If test is not a shell built-in, we'll probably end up computing a
6969    # maximum length that is only half of the actual maximum length, but
6970    # we can't tell.
6971    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6972    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6973               = "XX$teststring") >/dev/null 2>&1 &&
6974            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6975            lt_cv_sys_max_cmd_len=$new_result &&
6976            test $i != 17 # 1/2 MB should be enough
6977    do
6978      i=`expr $i + 1`
6979      teststring=$teststring$teststring
6980    done
6981    teststring=
6982    # Add a significant safety factor because C++ compilers can tack on massive
6983    # amounts of additional arguments before passing them to the linker.
6984    # It appears as though 1/2 is a usable value.
6985    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6986    ;;
6987  esac
6988
6989fi
6990
6991if test -n $lt_cv_sys_max_cmd_len ; then
6992  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6993echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6994else
6995  echo "$as_me:$LINENO: result: none" >&5
6996echo "${ECHO_T}none" >&6
6997fi
6998
6999
7000
7001
7002# Check for command to grab the raw symbol name followed by C symbol from nm.
7003echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7004echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7005if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7006  echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008
7009# These are sane defaults that work on at least a few old systems.
7010# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7011
7012# Character class describing NM global symbol codes.
7013symcode='[BCDEGRST]'
7014
7015# Regexp to match symbols that can be accessed directly from C.
7016sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7017
7018# Transform an extracted symbol line into a proper C declaration
7019lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7020
7021# Transform an extracted symbol line into symbol name and symbol address
7022lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7023
7024# Define system-specific variables.
7025case $host_os in
7026aix*)
7027  symcode='[BCDT]'
7028  ;;
7029cygwin* | mingw* | pw32*)
7030  symcode='[ABCDGISTW]'
7031  ;;
7032hpux*) # Its linker distinguishes data from code symbols
7033  if test "$host_cpu" = ia64; then
7034    symcode='[ABCDEGRST]'
7035  fi
7036  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7037  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'"
7038  ;;
7039linux*)
7040  if test "$host_cpu" = ia64; then
7041    symcode='[ABCDGIRSTW]'
7042    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7043    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'"
7044  fi
7045  ;;
7046irix* | nonstopux*)
7047  symcode='[BCDEGRST]'
7048  ;;
7049osf*)
7050  symcode='[BCDEGQRST]'
7051  ;;
7052solaris*)
7053  symcode='[BDRT]'
7054  ;;
7055sco3.2v5*)
7056  symcode='[DT]'
7057  ;;
7058sysv4.2uw2*)
7059  symcode='[DT]'
7060  ;;
7061sysv5* | sco5v6* | unixware* | OpenUNIX*)
7062  symcode='[ABDT]'
7063  ;;
7064sysv4)
7065  symcode='[DFNSTU]'
7066  ;;
7067esac
7068
7069# Handle CRLF in mingw tool chain
7070opt_cr=
7071case $build_os in
7072mingw*)
7073  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7074  ;;
7075esac
7076
7077# If we're using GNU nm, then use its standard symbol codes.
7078case `$NM -V 2>&1` in
7079*GNU* | *'with BFD'*)
7080  symcode='[ABCDGIRSTW]' ;;
7081esac
7082
7083# Try without a prefix undercore, then with it.
7084for ac_symprfx in "" "_"; do
7085
7086  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7087  symxfrm="\\1 $ac_symprfx\\2 \\2"
7088
7089  # Write the raw and C identifiers.
7090  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7091
7092  # Check to see that the pipe works correctly.
7093  pipe_works=no
7094
7095  rm -f conftest*
7096  cat > conftest.$ac_ext <<EOF
7097#ifdef __cplusplus
7098extern "C" {
7099#endif
7100char nm_test_var;
7101void nm_test_func(){}
7102#ifdef __cplusplus
7103}
7104#endif
7105int main(){nm_test_var='a';nm_test_func();return(0);}
7106EOF
7107
7108  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7109  (eval $ac_compile) 2>&5
7110  ac_status=$?
7111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112  (exit $ac_status); }; then
7113    # Now try to grab the symbols.
7114    nlist=conftest.nm
7115    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7116  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7117  ac_status=$?
7118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119  (exit $ac_status); } && test -s "$nlist"; then
7120      # Try sorting and uniquifying the output.
7121      if sort "$nlist" | uniq > "$nlist"T; then
7122        mv -f "$nlist"T "$nlist"
7123      else
7124        rm -f "$nlist"T
7125      fi
7126
7127      # Make sure that we snagged all the symbols we need.
7128      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7129        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7130          cat <<EOF > conftest.$ac_ext
7131#ifdef __cplusplus
7132extern "C" {
7133#endif
7134
7135EOF
7136          # Now generate the symbol file.
7137          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7138
7139          cat <<EOF >> conftest.$ac_ext
7140#if defined (__STDC__) && __STDC__
7141# define lt_ptr_t void *
7142#else
7143# define lt_ptr_t char *
7144# define const
7145#endif
7146
7147/* The mapping between symbol names and symbols. */
7148const struct {
7149  const char *name;
7150  lt_ptr_t address;
7151}
7152lt_preloaded_symbols[] =
7153{
7154EOF
7155          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7156          cat <<\EOF >> conftest.$ac_ext
7157  {0, (lt_ptr_t) 0}
7158};
7159
7160#ifdef __cplusplus
7161}
7162#endif
7163EOF
7164          # Now try linking the two files.
7165          mv conftest.$ac_objext conftstm.$ac_objext
7166          lt_save_LIBS="$LIBS"
7167          lt_save_CFLAGS="$CFLAGS"
7168          LIBS="conftstm.$ac_objext"
7169          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7170          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7171  (eval $ac_link) 2>&5
7172  ac_status=$?
7173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7175            pipe_works=yes
7176          fi
7177          LIBS="$lt_save_LIBS"
7178          CFLAGS="$lt_save_CFLAGS"
7179        else
7180          echo "cannot find nm_test_func in $nlist" >&5
7181        fi
7182      else
7183        echo "cannot find nm_test_var in $nlist" >&5
7184      fi
7185    else
7186      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7187    fi
7188  else
7189    echo "$progname: failed program was:" >&5
7190    cat conftest.$ac_ext >&5
7191  fi
7192  rm -f conftest* conftst*
7193
7194  # Do not use the global_symbol_pipe unless it works.
7195  if test "$pipe_works" = yes; then
7196    break
7197  else
7198    lt_cv_sys_global_symbol_pipe=
7199  fi
7200done
7201
7202fi
7203
7204if test -z "$lt_cv_sys_global_symbol_pipe"; then
7205  lt_cv_sys_global_symbol_to_cdecl=
7206fi
7207if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7208  echo "$as_me:$LINENO: result: failed" >&5
7209echo "${ECHO_T}failed" >&6
7210else
7211  echo "$as_me:$LINENO: result: ok" >&5
7212echo "${ECHO_T}ok" >&6
7213fi
7214
7215echo "$as_me:$LINENO: checking for objdir" >&5
7216echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7217if test "${lt_cv_objdir+set}" = set; then
7218  echo $ECHO_N "(cached) $ECHO_C" >&6
7219else
7220  rm -f .libs 2>/dev/null
7221mkdir .libs 2>/dev/null
7222if test -d .libs; then
7223  lt_cv_objdir=.libs
7224else
7225  # MS-DOS does not allow filenames that begin with a dot.
7226  lt_cv_objdir=_libs
7227fi
7228rmdir .libs 2>/dev/null
7229fi
7230echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7231echo "${ECHO_T}$lt_cv_objdir" >&6
7232objdir=$lt_cv_objdir
7233
7234
7235
7236
7237
7238case $host_os in
7239aix3*)
7240  # AIX sometimes has problems with the GCC collect2 program.  For some
7241  # reason, if we set the COLLECT_NAMES environment variable, the problems
7242  # vanish in a puff of smoke.
7243  if test "X${COLLECT_NAMES+set}" != Xset; then
7244    COLLECT_NAMES=
7245    export COLLECT_NAMES
7246  fi
7247  ;;
7248esac
7249
7250# Sed substitution that helps us do robust quoting.  It backslashifies
7251# metacharacters that are still active within double-quoted strings.
7252Xsed='sed -e 1s/^X//'
7253sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7254
7255# Same as above, but do not quote variable references.
7256double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7257
7258# Sed substitution to delay expansion of an escaped shell variable in a
7259# double_quote_subst'ed string.
7260delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7261
7262# Sed substitution to avoid accidental globbing in evaled expressions
7263no_glob_subst='s/\*/\\\*/g'
7264
7265# Constants:
7266rm="rm -f"
7267
7268# Global variables:
7269default_ofile=libtool
7270can_build_shared=yes
7271
7272# All known linkers require a `.a' archive for static linking (except MSVC,
7273# which needs '.lib').
7274libext=a
7275ltmain="$ac_aux_dir/ltmain.sh"
7276ofile="$default_ofile"
7277with_gnu_ld="$lt_cv_prog_gnu_ld"
7278
7279if test -n "$ac_tool_prefix"; then
7280  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7281set dummy ${ac_tool_prefix}ar; ac_word=$2
7282echo "$as_me:$LINENO: checking for $ac_word" >&5
7283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7284if test "${ac_cv_prog_AR+set}" = set; then
7285  echo $ECHO_N "(cached) $ECHO_C" >&6
7286else
7287  if test -n "$AR"; then
7288  ac_cv_prog_AR="$AR" # Let the user override the test.
7289else
7290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293  IFS=$as_save_IFS
7294  test -z "$as_dir" && as_dir=.
7295  for ac_exec_ext in '' $ac_executable_extensions; do
7296  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297    ac_cv_prog_AR="${ac_tool_prefix}ar"
7298    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299    break 2
7300  fi
7301done
7302done
7303
7304fi
7305fi
7306AR=$ac_cv_prog_AR
7307if test -n "$AR"; then
7308  echo "$as_me:$LINENO: result: $AR" >&5
7309echo "${ECHO_T}$AR" >&6
7310else
7311  echo "$as_me:$LINENO: result: no" >&5
7312echo "${ECHO_T}no" >&6
7313fi
7314
7315fi
7316if test -z "$ac_cv_prog_AR"; then
7317  ac_ct_AR=$AR
7318  # Extract the first word of "ar", so it can be a program name with args.
7319set dummy ar; ac_word=$2
7320echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7322if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7323  echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325  if test -n "$ac_ct_AR"; then
7326  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7327else
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331  IFS=$as_save_IFS
7332  test -z "$as_dir" && as_dir=.
7333  for ac_exec_ext in '' $ac_executable_extensions; do
7334  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335    ac_cv_prog_ac_ct_AR="ar"
7336    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337    break 2
7338  fi
7339done
7340done
7341
7342  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7343fi
7344fi
7345ac_ct_AR=$ac_cv_prog_ac_ct_AR
7346if test -n "$ac_ct_AR"; then
7347  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7348echo "${ECHO_T}$ac_ct_AR" >&6
7349else
7350  echo "$as_me:$LINENO: result: no" >&5
7351echo "${ECHO_T}no" >&6
7352fi
7353
7354  AR=$ac_ct_AR
7355else
7356  AR="$ac_cv_prog_AR"
7357fi
7358
7359if test -n "$ac_tool_prefix"; then
7360  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7361set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7362echo "$as_me:$LINENO: checking for $ac_word" >&5
7363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7364if test "${ac_cv_prog_RANLIB+set}" = set; then
7365  echo $ECHO_N "(cached) $ECHO_C" >&6
7366else
7367  if test -n "$RANLIB"; then
7368  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7369else
7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373  IFS=$as_save_IFS
7374  test -z "$as_dir" && as_dir=.
7375  for ac_exec_ext in '' $ac_executable_extensions; do
7376  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379    break 2
7380  fi
7381done
7382done
7383
7384fi
7385fi
7386RANLIB=$ac_cv_prog_RANLIB
7387if test -n "$RANLIB"; then
7388  echo "$as_me:$LINENO: result: $RANLIB" >&5
7389echo "${ECHO_T}$RANLIB" >&6
7390else
7391  echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6
7393fi
7394
7395fi
7396if test -z "$ac_cv_prog_RANLIB"; then
7397  ac_ct_RANLIB=$RANLIB
7398  # Extract the first word of "ranlib", so it can be a program name with args.
7399set dummy ranlib; ac_word=$2
7400echo "$as_me:$LINENO: checking for $ac_word" >&5
7401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7402if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7403  echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405  if test -n "$ac_ct_RANLIB"; then
7406  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7407else
7408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409for as_dir in $PATH
7410do
7411  IFS=$as_save_IFS
7412  test -z "$as_dir" && as_dir=.
7413  for ac_exec_ext in '' $ac_executable_extensions; do
7414  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7415    ac_cv_prog_ac_ct_RANLIB="ranlib"
7416    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417    break 2
7418  fi
7419done
7420done
7421
7422  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7423fi
7424fi
7425ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7426if test -n "$ac_ct_RANLIB"; then
7427  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7428echo "${ECHO_T}$ac_ct_RANLIB" >&6
7429else
7430  echo "$as_me:$LINENO: result: no" >&5
7431echo "${ECHO_T}no" >&6
7432fi
7433
7434  RANLIB=$ac_ct_RANLIB
7435else
7436  RANLIB="$ac_cv_prog_RANLIB"
7437fi
7438
7439if test -n "$ac_tool_prefix"; then
7440  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7441set dummy ${ac_tool_prefix}strip; ac_word=$2
7442echo "$as_me:$LINENO: checking for $ac_word" >&5
7443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7444if test "${ac_cv_prog_STRIP+set}" = set; then
7445  echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447  if test -n "$STRIP"; then
7448  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7449else
7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453  IFS=$as_save_IFS
7454  test -z "$as_dir" && as_dir=.
7455  for ac_exec_ext in '' $ac_executable_extensions; do
7456  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7458    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459    break 2
7460  fi
7461done
7462done
7463
7464fi
7465fi
7466STRIP=$ac_cv_prog_STRIP
7467if test -n "$STRIP"; then
7468  echo "$as_me:$LINENO: result: $STRIP" >&5
7469echo "${ECHO_T}$STRIP" >&6
7470else
7471  echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6
7473fi
7474
7475fi
7476if test -z "$ac_cv_prog_STRIP"; then
7477  ac_ct_STRIP=$STRIP
7478  # Extract the first word of "strip", so it can be a program name with args.
7479set dummy strip; ac_word=$2
7480echo "$as_me:$LINENO: checking for $ac_word" >&5
7481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7482if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7483  echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485  if test -n "$ac_ct_STRIP"; then
7486  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7487else
7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491  IFS=$as_save_IFS
7492  test -z "$as_dir" && as_dir=.
7493  for ac_exec_ext in '' $ac_executable_extensions; do
7494  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495    ac_cv_prog_ac_ct_STRIP="strip"
7496    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497    break 2
7498  fi
7499done
7500done
7501
7502  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7503fi
7504fi
7505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7506if test -n "$ac_ct_STRIP"; then
7507  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7508echo "${ECHO_T}$ac_ct_STRIP" >&6
7509else
7510  echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6
7512fi
7513
7514  STRIP=$ac_ct_STRIP
7515else
7516  STRIP="$ac_cv_prog_STRIP"
7517fi
7518
7519
7520old_CC="$CC"
7521old_CFLAGS="$CFLAGS"
7522
7523# Set sane defaults for various variables
7524test -z "$AR" && AR=ar
7525test -z "$AR_FLAGS" && AR_FLAGS=cru
7526test -z "$AS" && AS=as
7527test -z "$CC" && CC=cc
7528test -z "$LTCC" && LTCC=$CC
7529test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7530test -z "$DLLTOOL" && DLLTOOL=dlltool
7531test -z "$LD" && LD=ld
7532test -z "$LN_S" && LN_S="ln -s"
7533test -z "$MAGIC_CMD" && MAGIC_CMD=file
7534test -z "$NM" && NM=nm
7535test -z "$SED" && SED=sed
7536test -z "$OBJDUMP" && OBJDUMP=objdump
7537test -z "$RANLIB" && RANLIB=:
7538test -z "$STRIP" && STRIP=:
7539test -z "$ac_objext" && ac_objext=o
7540
7541# Determine commands to create old-style static archives.
7542old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7543old_postinstall_cmds='chmod 644 $oldlib'
7544old_postuninstall_cmds=
7545
7546if test -n "$RANLIB"; then
7547  case $host_os in
7548  openbsd*)
7549    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7550    ;;
7551  *)
7552    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7553    ;;
7554  esac
7555  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7556fi
7557
7558for cc_temp in $compiler""; do
7559  case $cc_temp in
7560    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7561    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7562    \-*) ;;
7563    *) break;;
7564  esac
7565done
7566cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7567
7568
7569# Only perform the check for file, if the check method requires it
7570case $deplibs_check_method in
7571file_magic*)
7572  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7573    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7574echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7575if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7576  echo $ECHO_N "(cached) $ECHO_C" >&6
7577else
7578  case $MAGIC_CMD in
7579[\\/*] |  ?:[\\/]*)
7580  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7581  ;;
7582*)
7583  lt_save_MAGIC_CMD="$MAGIC_CMD"
7584  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7585  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7586  for ac_dir in $ac_dummy; do
7587    IFS="$lt_save_ifs"
7588    test -z "$ac_dir" && ac_dir=.
7589    if test -f $ac_dir/${ac_tool_prefix}file; then
7590      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7591      if test -n "$file_magic_test_file"; then
7592        case $deplibs_check_method in
7593        "file_magic "*)
7594          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7595          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7596          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7597            $EGREP "$file_magic_regex" > /dev/null; then
7598            :
7599          else
7600            cat <<EOF 1>&2
7601
7602*** Warning: the command libtool uses to detect shared libraries,
7603*** $file_magic_cmd, produces output that libtool cannot recognize.
7604*** The result is that libtool may fail to recognize shared libraries
7605*** as such.  This will affect the creation of libtool libraries that
7606*** depend on shared libraries, but programs linked with such libtool
7607*** libraries will work regardless of this problem.  Nevertheless, you
7608*** may want to report the problem to your system manager and/or to
7609*** bug-libtool@gnu.org
7610
7611EOF
7612          fi ;;
7613        esac
7614      fi
7615      break
7616    fi
7617  done
7618  IFS="$lt_save_ifs"
7619  MAGIC_CMD="$lt_save_MAGIC_CMD"
7620  ;;
7621esac
7622fi
7623
7624MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7625if test -n "$MAGIC_CMD"; then
7626  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7627echo "${ECHO_T}$MAGIC_CMD" >&6
7628else
7629  echo "$as_me:$LINENO: result: no" >&5
7630echo "${ECHO_T}no" >&6
7631fi
7632
7633if test -z "$lt_cv_path_MAGIC_CMD"; then
7634  if test -n "$ac_tool_prefix"; then
7635    echo "$as_me:$LINENO: checking for file" >&5
7636echo $ECHO_N "checking for file... $ECHO_C" >&6
7637if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7638  echo $ECHO_N "(cached) $ECHO_C" >&6
7639else
7640  case $MAGIC_CMD in
7641[\\/*] |  ?:[\\/]*)
7642  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7643  ;;
7644*)
7645  lt_save_MAGIC_CMD="$MAGIC_CMD"
7646  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7647  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7648  for ac_dir in $ac_dummy; do
7649    IFS="$lt_save_ifs"
7650    test -z "$ac_dir" && ac_dir=.
7651    if test -f $ac_dir/file; then
7652      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7653      if test -n "$file_magic_test_file"; then
7654        case $deplibs_check_method in
7655        "file_magic "*)
7656          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7657          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7658          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7659            $EGREP "$file_magic_regex" > /dev/null; then
7660            :
7661          else
7662            cat <<EOF 1>&2
7663
7664*** Warning: the command libtool uses to detect shared libraries,
7665*** $file_magic_cmd, produces output that libtool cannot recognize.
7666*** The result is that libtool may fail to recognize shared libraries
7667*** as such.  This will affect the creation of libtool libraries that
7668*** depend on shared libraries, but programs linked with such libtool
7669*** libraries will work regardless of this problem.  Nevertheless, you
7670*** may want to report the problem to your system manager and/or to
7671*** bug-libtool@gnu.org
7672
7673EOF
7674          fi ;;
7675        esac
7676      fi
7677      break
7678    fi
7679  done
7680  IFS="$lt_save_ifs"
7681  MAGIC_CMD="$lt_save_MAGIC_CMD"
7682  ;;
7683esac
7684fi
7685
7686MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7687if test -n "$MAGIC_CMD"; then
7688  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7689echo "${ECHO_T}$MAGIC_CMD" >&6
7690else
7691  echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6
7693fi
7694
7695  else
7696    MAGIC_CMD=:
7697  fi
7698fi
7699
7700  fi
7701  ;;
7702esac
7703
7704enable_dlopen=no
7705enable_win32_dll=no
7706
7707# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7708if test "${enable_libtool_lock+set}" = set; then
7709  enableval="$enable_libtool_lock"
7710
7711fi;
7712test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7713
7714
7715# Check whether --with-pic or --without-pic was given.
7716if test "${with_pic+set}" = set; then
7717  withval="$with_pic"
7718  pic_mode="$withval"
7719else
7720  pic_mode=default
7721fi;
7722test -z "$pic_mode" && pic_mode=default
7723
7724# Use C for the default configuration in the libtool script
7725tagname=
7726lt_save_CC="$CC"
7727ac_ext=c
7728ac_cpp='$CPP $CPPFLAGS'
7729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732
7733
7734# Source file extension for C test sources.
7735ac_ext=c
7736
7737# Object file extension for compiled C test sources.
7738objext=o
7739objext=$objext
7740
7741# Code to be used in simple compile tests
7742lt_simple_compile_test_code="int some_variable = 0;\n"
7743
7744# Code to be used in simple link tests
7745lt_simple_link_test_code='int main(){return(0);}\n'
7746
7747
7748# If no C compiler was specified, use CC.
7749LTCC=${LTCC-"$CC"}
7750
7751# If no C compiler flags were specified, use CFLAGS.
7752LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7753
7754# Allow CC to be a program name with arguments.
7755compiler=$CC
7756
7757
7758# save warnings/boilerplate of simple test code
7759ac_outfile=conftest.$ac_objext
7760printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7761eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7762_lt_compiler_boilerplate=`cat conftest.err`
7763$rm conftest*
7764
7765ac_outfile=conftest.$ac_objext
7766printf "$lt_simple_link_test_code" >conftest.$ac_ext
7767eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7768_lt_linker_boilerplate=`cat conftest.err`
7769$rm conftest*
7770
7771
7772## CAVEAT EMPTOR:
7773## There is no encapsulation within the following macros, do not change
7774## the running order or otherwise move them around unless you know exactly
7775## what you are doing...
7776
7777lt_prog_compiler_no_builtin_flag=
7778
7779if test "$GCC" = yes; then
7780  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7781
7782
7783echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7784echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7785if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7786  echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788  lt_cv_prog_compiler_rtti_exceptions=no
7789  ac_outfile=conftest.$ac_objext
7790   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7791   lt_compiler_flag="-fno-rtti -fno-exceptions"
7792   # Insert the option either (1) after the last *FLAGS variable, or
7793   # (2) before a word containing "conftest.", or (3) at the end.
7794   # Note that $ac_compile itself does not contain backslashes and begins
7795   # with a dollar sign (not a hyphen), so the echo should work correctly.
7796   # The option is referenced via a variable to avoid confusing sed.
7797   lt_compile=`echo "$ac_compile" | $SED \
7798   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7799   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7800   -e 's:$: $lt_compiler_flag:'`
7801   (eval echo "\"\$as_me:7801: $lt_compile\"" >&5)
7802   (eval "$lt_compile" 2>conftest.err)
7803   ac_status=$?
7804   cat conftest.err >&5
7805   echo "$as_me:7805: \$? = $ac_status" >&5
7806   if (exit $ac_status) && test -s "$ac_outfile"; then
7807     # The compiler can only warn and ignore the option if not recognized
7808     # So say no if there are warnings other than the usual output.
7809     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7810     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7811     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7812       lt_cv_prog_compiler_rtti_exceptions=yes
7813     fi
7814   fi
7815   $rm conftest*
7816
7817fi
7818echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7819echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7820
7821if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7822    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7823else
7824    :
7825fi
7826
7827fi
7828
7829lt_prog_compiler_wl=
7830lt_prog_compiler_pic=
7831lt_prog_compiler_static=
7832
7833echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7834echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7835
7836  if test "$GCC" = yes; then
7837    lt_prog_compiler_wl='-Wl,'
7838    lt_prog_compiler_static='-static'
7839
7840    case $host_os in
7841      aix*)
7842      # All AIX code is PIC.
7843      if test "$host_cpu" = ia64; then
7844        # AIX 5 now supports IA64 processor
7845        lt_prog_compiler_static='-Bstatic'
7846      fi
7847      ;;
7848
7849    amigaos*)
7850      # FIXME: we need at least 68020 code to build shared libraries, but
7851      # adding the `-m68020' flag to GCC prevents building anything better,
7852      # like `-m68040'.
7853      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7854      ;;
7855
7856    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7857      # PIC is the default for these OSes.
7858      ;;
7859
7860    mingw* | pw32* | os2*)
7861      # This hack is so that the source file can tell whether it is being
7862      # built for inclusion in a dll (and should export symbols for example).
7863      lt_prog_compiler_pic='-DDLL_EXPORT'
7864      ;;
7865
7866    darwin* | rhapsody*)
7867      # PIC is the default on this platform
7868      # Common symbols not allowed in MH_DYLIB files
7869      lt_prog_compiler_pic='-fno-common'
7870      ;;
7871
7872    interix3*)
7873      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7874      # Instead, we relocate shared libraries at runtime.
7875      ;;
7876
7877    msdosdjgpp*)
7878      # Just because we use GCC doesn't mean we suddenly get shared libraries
7879      # on systems that don't support them.
7880      lt_prog_compiler_can_build_shared=no
7881      enable_shared=no
7882      ;;
7883
7884    sysv4*MP*)
7885      if test -d /usr/nec; then
7886        lt_prog_compiler_pic=-Kconform_pic
7887      fi
7888      ;;
7889
7890    hpux*)
7891      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7892      # not for PA HP-UX.
7893      case $host_cpu in
7894      hppa*64*|ia64*)
7895        # +Z the default
7896        ;;
7897      *)
7898        lt_prog_compiler_pic='-fPIC'
7899        ;;
7900      esac
7901      ;;
7902
7903    *)
7904      lt_prog_compiler_pic='-fPIC'
7905      ;;
7906    esac
7907  else
7908    # PORTME Check for flag to pass linker flags through the system compiler.
7909    case $host_os in
7910    aix*)
7911      lt_prog_compiler_wl='-Wl,'
7912      if test "$host_cpu" = ia64; then
7913        # AIX 5 now supports IA64 processor
7914        lt_prog_compiler_static='-Bstatic'
7915      else
7916        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7917      fi
7918      ;;
7919      darwin*)
7920        # PIC is the default on this platform
7921        # Common symbols not allowed in MH_DYLIB files
7922       case $cc_basename in
7923         xlc*)
7924         lt_prog_compiler_pic='-qnocommon'
7925         lt_prog_compiler_wl='-Wl,'
7926         ;;
7927       esac
7928       ;;
7929
7930    mingw* | pw32* | os2*)
7931      # This hack is so that the source file can tell whether it is being
7932      # built for inclusion in a dll (and should export symbols for example).
7933      lt_prog_compiler_pic='-DDLL_EXPORT'
7934      ;;
7935
7936    hpux9* | hpux10* | hpux11*)
7937      lt_prog_compiler_wl='-Wl,'
7938      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7939      # not for PA HP-UX.
7940      case $host_cpu in
7941      hppa*64*|ia64*)
7942        # +Z the default
7943        ;;
7944      *)
7945        lt_prog_compiler_pic='+Z'
7946        ;;
7947      esac
7948      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7949      lt_prog_compiler_static='${wl}-a ${wl}archive'
7950      ;;
7951
7952    irix5* | irix6* | nonstopux*)
7953      lt_prog_compiler_wl='-Wl,'
7954      # PIC (with -KPIC) is the default.
7955      lt_prog_compiler_static='-non_shared'
7956      ;;
7957
7958    newsos6)
7959      lt_prog_compiler_pic='-KPIC'
7960      lt_prog_compiler_static='-Bstatic'
7961      ;;
7962
7963    linux*)
7964      case $cc_basename in
7965      icc* | ecc*)
7966        lt_prog_compiler_wl='-Wl,'
7967        lt_prog_compiler_pic='-KPIC'
7968        lt_prog_compiler_static='-static'
7969        ;;
7970      pgcc* | pgf77* | pgf90* | pgf95*)
7971        # Portland Group compilers (*not* the Pentium gcc compiler,
7972        # which looks to be a dead project)
7973        lt_prog_compiler_wl='-Wl,'
7974        lt_prog_compiler_pic='-fpic'
7975        lt_prog_compiler_static='-Bstatic'
7976        ;;
7977      ccc*)
7978        lt_prog_compiler_wl='-Wl,'
7979        # All Alpha code is PIC.
7980        lt_prog_compiler_static='-non_shared'
7981        ;;
7982      esac
7983      ;;
7984
7985    osf3* | osf4* | osf5*)
7986      lt_prog_compiler_wl='-Wl,'
7987      # All OSF/1 code is PIC.
7988      lt_prog_compiler_static='-non_shared'
7989      ;;
7990
7991    solaris*)
7992      lt_prog_compiler_pic='-KPIC'
7993      lt_prog_compiler_static='-Bstatic'
7994      case $cc_basename in
7995      f77* | f90* | f95*)
7996        lt_prog_compiler_wl='-Qoption ld ';;
7997      *)
7998        lt_prog_compiler_wl='-Wl,';;
7999      esac
8000      ;;
8001
8002    sunos4*)
8003      lt_prog_compiler_wl='-Qoption ld '
8004      lt_prog_compiler_pic='-PIC'
8005      lt_prog_compiler_static='-Bstatic'
8006      ;;
8007
8008    sysv4 | sysv4.2uw2* | sysv4.3*)
8009      lt_prog_compiler_wl='-Wl,'
8010      lt_prog_compiler_pic='-KPIC'
8011      lt_prog_compiler_static='-Bstatic'
8012      ;;
8013
8014    sysv4*MP*)
8015      if test -d /usr/nec ;then
8016        lt_prog_compiler_pic='-Kconform_pic'
8017        lt_prog_compiler_static='-Bstatic'
8018      fi
8019      ;;
8020
8021    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8022      lt_prog_compiler_wl='-Wl,'
8023      lt_prog_compiler_pic='-KPIC'
8024      lt_prog_compiler_static='-Bstatic'
8025      ;;
8026
8027    unicos*)
8028      lt_prog_compiler_wl='-Wl,'
8029      lt_prog_compiler_can_build_shared=no
8030      ;;
8031
8032    uts4*)
8033      lt_prog_compiler_pic='-pic'
8034      lt_prog_compiler_static='-Bstatic'
8035      ;;
8036
8037    *)
8038      lt_prog_compiler_can_build_shared=no
8039      ;;
8040    esac
8041  fi
8042
8043echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8044echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8045
8046#
8047# Check to make sure the PIC flag actually works.
8048#
8049if test -n "$lt_prog_compiler_pic"; then
8050
8051echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8052echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8053if test "${lt_prog_compiler_pic_works+set}" = set; then
8054  echo $ECHO_N "(cached) $ECHO_C" >&6
8055else
8056  lt_prog_compiler_pic_works=no
8057  ac_outfile=conftest.$ac_objext
8058   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8059   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8060   # Insert the option either (1) after the last *FLAGS variable, or
8061   # (2) before a word containing "conftest.", or (3) at the end.
8062   # Note that $ac_compile itself does not contain backslashes and begins
8063   # with a dollar sign (not a hyphen), so the echo should work correctly.
8064   # The option is referenced via a variable to avoid confusing sed.
8065   lt_compile=`echo "$ac_compile" | $SED \
8066   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8067   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8068   -e 's:$: $lt_compiler_flag:'`
8069   (eval echo "\"\$as_me:8069: $lt_compile\"" >&5)
8070   (eval "$lt_compile" 2>conftest.err)
8071   ac_status=$?
8072   cat conftest.err >&5
8073   echo "$as_me:8073: \$? = $ac_status" >&5
8074   if (exit $ac_status) && test -s "$ac_outfile"; then
8075     # The compiler can only warn and ignore the option if not recognized
8076     # So say no if there are warnings other than the usual output.
8077     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8078     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8079     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8080       lt_prog_compiler_pic_works=yes
8081     fi
8082   fi
8083   $rm conftest*
8084
8085fi
8086echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8087echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8088
8089if test x"$lt_prog_compiler_pic_works" = xyes; then
8090    case $lt_prog_compiler_pic in
8091     "" | " "*) ;;
8092     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8093     esac
8094else
8095    lt_prog_compiler_pic=
8096     lt_prog_compiler_can_build_shared=no
8097fi
8098
8099fi
8100case $host_os in
8101  # For platforms which do not support PIC, -DPIC is meaningless:
8102  *djgpp*)
8103    lt_prog_compiler_pic=
8104    ;;
8105  *)
8106    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8107    ;;
8108esac
8109
8110#
8111# Check to make sure the static flag actually works.
8112#
8113wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8114echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8115echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8116if test "${lt_prog_compiler_static_works+set}" = set; then
8117  echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119  lt_prog_compiler_static_works=no
8120   save_LDFLAGS="$LDFLAGS"
8121   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8122   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8123   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8124     # The linker can only warn and ignore the option if not recognized
8125     # So say no if there are warnings
8126     if test -s conftest.err; then
8127       # Append any errors to the config.log.
8128       cat conftest.err 1>&5
8129       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8130       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8131       if diff conftest.exp conftest.er2 >/dev/null; then
8132         lt_prog_compiler_static_works=yes
8133       fi
8134     else
8135       lt_prog_compiler_static_works=yes
8136     fi
8137   fi
8138   $rm conftest*
8139   LDFLAGS="$save_LDFLAGS"
8140
8141fi
8142echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8143echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8144
8145if test x"$lt_prog_compiler_static_works" = xyes; then
8146    :
8147else
8148    lt_prog_compiler_static=
8149fi
8150
8151
8152echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8153echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8154if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8155  echo $ECHO_N "(cached) $ECHO_C" >&6
8156else
8157  lt_cv_prog_compiler_c_o=no
8158   $rm -r conftest 2>/dev/null
8159   mkdir conftest
8160   cd conftest
8161   mkdir out
8162   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8163
8164   lt_compiler_flag="-o out/conftest2.$ac_objext"
8165   # Insert the option either (1) after the last *FLAGS variable, or
8166   # (2) before a word containing "conftest.", or (3) at the end.
8167   # Note that $ac_compile itself does not contain backslashes and begins
8168   # with a dollar sign (not a hyphen), so the echo should work correctly.
8169   lt_compile=`echo "$ac_compile" | $SED \
8170   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8171   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8172   -e 's:$: $lt_compiler_flag:'`
8173   (eval echo "\"\$as_me:8173: $lt_compile\"" >&5)
8174   (eval "$lt_compile" 2>out/conftest.err)
8175   ac_status=$?
8176   cat out/conftest.err >&5
8177   echo "$as_me:8177: \$? = $ac_status" >&5
8178   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8179   then
8180     # The compiler can only warn and ignore the option if not recognized
8181     # So say no if there are warnings
8182     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8183     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8184     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8185       lt_cv_prog_compiler_c_o=yes
8186     fi
8187   fi
8188   chmod u+w . 2>&5
8189   $rm conftest*
8190   # SGI C++ compiler will create directory out/ii_files/ for
8191   # template instantiation
8192   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8193   $rm out/* && rmdir out
8194   cd ..
8195   rmdir conftest
8196   $rm conftest*
8197
8198fi
8199echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8200echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8201
8202
8203hard_links="nottested"
8204if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8205  # do not overwrite the value of need_locks provided by the user
8206  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8207echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8208  hard_links=yes
8209  $rm conftest*
8210  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8211  touch conftest.a
8212  ln conftest.a conftest.b 2>&5 || hard_links=no
8213  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8214  echo "$as_me:$LINENO: result: $hard_links" >&5
8215echo "${ECHO_T}$hard_links" >&6
8216  if test "$hard_links" = no; then
8217    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8218echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8219    need_locks=warn
8220  fi
8221else
8222  need_locks=no
8223fi
8224
8225echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8226echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8227
8228  runpath_var=
8229  allow_undefined_flag=
8230  enable_shared_with_static_runtimes=no
8231  archive_cmds=
8232  archive_expsym_cmds=
8233  old_archive_From_new_cmds=
8234  old_archive_from_expsyms_cmds=
8235  export_dynamic_flag_spec=
8236  whole_archive_flag_spec=
8237  thread_safe_flag_spec=
8238  hardcode_libdir_flag_spec=
8239  hardcode_libdir_flag_spec_ld=
8240  hardcode_libdir_separator=
8241  hardcode_direct=no
8242  hardcode_minus_L=no
8243  hardcode_shlibpath_var=unsupported
8244  link_all_deplibs=unknown
8245  hardcode_automatic=no
8246  module_cmds=
8247  module_expsym_cmds=
8248  always_export_symbols=no
8249  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8250  # include_expsyms should be a list of space-separated symbols to be *always*
8251  # included in the symbol list
8252  include_expsyms=
8253  # exclude_expsyms can be an extended regexp of symbols to exclude
8254  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8255  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8256  # as well as any symbol that contains `d'.
8257  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8258  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8259  # platforms (ab)use it in PIC code, but their linkers get confused if
8260  # the symbol is explicitly referenced.  Since portable code cannot
8261  # rely on this symbol name, it's probably fine to never include it in
8262  # preloaded symbol tables.
8263  extract_expsyms_cmds=
8264  # Just being paranoid about ensuring that cc_basename is set.
8265  for cc_temp in $compiler""; do
8266  case $cc_temp in
8267    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8268    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8269    \-*) ;;
8270    *) break;;
8271  esac
8272done
8273cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8274
8275  case $host_os in
8276  cygwin* | mingw* | pw32*)
8277    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8278    # When not using gcc, we currently assume that we are using
8279    # Microsoft Visual C++.
8280    if test "$GCC" != yes; then
8281      with_gnu_ld=no
8282    fi
8283    ;;
8284  interix*)
8285    # we just hope/assume this is gcc and not c89 (= MSVC++)
8286    with_gnu_ld=yes
8287    ;;
8288  openbsd*)
8289    with_gnu_ld=no
8290    ;;
8291  esac
8292
8293  ld_shlibs=yes
8294  if test "$with_gnu_ld" = yes; then
8295    # If archive_cmds runs LD, not CC, wlarc should be empty
8296    wlarc='${wl}'
8297
8298    # Set some defaults for GNU ld with shared library support. These
8299    # are reset later if shared libraries are not supported. Putting them
8300    # here allows them to be overridden if necessary.
8301    runpath_var=LD_RUN_PATH
8302    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8303    export_dynamic_flag_spec='${wl}--export-dynamic'
8304    # ancient GNU ld didn't support --whole-archive et. al.
8305    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8306        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8307      else
8308        whole_archive_flag_spec=
8309    fi
8310    supports_anon_versioning=no
8311    case `$LD -v 2>/dev/null` in
8312      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8313      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8314      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8315      *\ 2.11.*) ;; # other 2.11 versions
8316      *) supports_anon_versioning=yes ;;
8317    esac
8318
8319    # See if GNU ld supports shared libraries.
8320    case $host_os in
8321    aix3* | aix4* | aix5*)
8322      # On AIX/PPC, the GNU linker is very broken
8323      if test "$host_cpu" != ia64; then
8324        ld_shlibs=no
8325        cat <<EOF 1>&2
8326
8327*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8328*** to be unable to reliably create shared libraries on AIX.
8329*** Therefore, libtool is disabling shared libraries support.  If you
8330*** really care for shared libraries, you may want to modify your PATH
8331*** so that a non-GNU linker is found, and then restart.
8332
8333EOF
8334      fi
8335      ;;
8336
8337    amigaos*)
8338      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)'
8339      hardcode_libdir_flag_spec='-L$libdir'
8340      hardcode_minus_L=yes
8341
8342      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8343      # that the semantics of dynamic libraries on AmigaOS, at least up
8344      # to version 4, is to share data among multiple programs linked
8345      # with the same dynamic library.  Since this doesn't match the
8346      # behavior of shared libraries on other platforms, we can't use
8347      # them.
8348      ld_shlibs=no
8349      ;;
8350
8351    beos*)
8352      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8353        allow_undefined_flag=unsupported
8354        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8355        # support --undefined.  This deserves some investigation.  FIXME
8356        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8357      else
8358        ld_shlibs=no
8359      fi
8360      ;;
8361
8362    cygwin* | mingw* | pw32*)
8363      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8364      # as there is no search path for DLLs.
8365      hardcode_libdir_flag_spec='-L$libdir'
8366      allow_undefined_flag=unsupported
8367      always_export_symbols=no
8368      enable_shared_with_static_runtimes=yes
8369      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8370
8371      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8372        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8373        # If the export-symbols file already is a .def file (1st line
8374        # is EXPORTS), use it as is; otherwise, prepend...
8375        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8376          cp $export_symbols $output_objdir/$soname.def;
8377        else
8378          echo EXPORTS > $output_objdir/$soname.def;
8379          cat $export_symbols >> $output_objdir/$soname.def;
8380        fi~
8381        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8382      else
8383        ld_shlibs=no
8384      fi
8385      ;;
8386
8387    interix3*)
8388      hardcode_direct=no
8389      hardcode_shlibpath_var=no
8390      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8391      export_dynamic_flag_spec='${wl}-E'
8392      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8393      # Instead, shared libraries are loaded at an image base (0x10000000 by
8394      # default) and relocated if they conflict, which is a slow very memory
8395      # consuming and fragmenting process.  To avoid this, we pick a random,
8396      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8397      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8398      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8399      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'
8400      ;;
8401
8402    linux*)
8403      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8404        tmp_addflag=
8405        case $cc_basename,$host_cpu in
8406        pgcc*)                          # Portland Group C compiler
8407          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'
8408          tmp_addflag=' $pic_flag'
8409          ;;
8410        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8411          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'
8412          tmp_addflag=' $pic_flag -Mnomain' ;;
8413        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8414          tmp_addflag=' -i_dynamic' ;;
8415        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8416          tmp_addflag=' -i_dynamic -nofor_main' ;;
8417        ifc* | ifort*)                  # Intel Fortran compiler
8418          tmp_addflag=' -nofor_main' ;;
8419        esac
8420        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421
8422        if test $supports_anon_versioning = yes; then
8423          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8424  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8425  $echo "local: *; };" >> $output_objdir/$libname.ver~
8426          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8427        fi
8428      else
8429        ld_shlibs=no
8430      fi
8431      ;;
8432
8433    netbsd*)
8434      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8435        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8436        wlarc=
8437      else
8438        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8439        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8440      fi
8441      ;;
8442
8443    solaris*)
8444      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8445        ld_shlibs=no
8446        cat <<EOF 1>&2
8447
8448*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8449*** create shared libraries on Solaris systems.  Therefore, libtool
8450*** is disabling shared libraries support.  We urge you to upgrade GNU
8451*** binutils to release 2.9.1 or newer.  Another option is to modify
8452*** your PATH or compiler configuration so that the native linker is
8453*** used, and then restart.
8454
8455EOF
8456      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8457        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8458        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8459      else
8460        ld_shlibs=no
8461      fi
8462      ;;
8463
8464    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8465      case `$LD -v 2>&1` in
8466        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8467        ld_shlibs=no
8468        cat <<_LT_EOF 1>&2
8469
8470*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8471*** reliably create shared libraries on SCO systems.  Therefore, libtool
8472*** is disabling shared libraries support.  We urge you to upgrade GNU
8473*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8474*** your PATH or compiler configuration so that the native linker is
8475*** used, and then restart.
8476
8477_LT_EOF
8478        ;;
8479        *)
8480          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8481            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8482            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8483            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8484          else
8485            ld_shlibs=no
8486          fi
8487        ;;
8488      esac
8489      ;;
8490
8491    sunos4*)
8492      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8493      wlarc=
8494      hardcode_direct=yes
8495      hardcode_shlibpath_var=no
8496      ;;
8497
8498    *)
8499      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8500        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8501        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8502      else
8503        ld_shlibs=no
8504      fi
8505      ;;
8506    esac
8507
8508    if test "$ld_shlibs" = no; then
8509      runpath_var=
8510      hardcode_libdir_flag_spec=
8511      export_dynamic_flag_spec=
8512      whole_archive_flag_spec=
8513    fi
8514  else
8515    # PORTME fill in a description of your system's linker (not GNU ld)
8516    case $host_os in
8517    aix3*)
8518      allow_undefined_flag=unsupported
8519      always_export_symbols=yes
8520      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'
8521      # Note: this linker hardcodes the directories in LIBPATH if there
8522      # are no directories specified by -L.
8523      hardcode_minus_L=yes
8524      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8525        # Neither direct hardcoding nor static linking is supported with a
8526        # broken collect2.
8527        hardcode_direct=unsupported
8528      fi
8529      ;;
8530
8531    aix4* | aix5*)
8532      if test "$host_cpu" = ia64; then
8533        # On IA64, the linker does run time linking by default, so we don't
8534        # have to do anything special.
8535        aix_use_runtimelinking=no
8536        exp_sym_flag='-Bexport'
8537        no_entry_flag=""
8538      else
8539        # If we're using GNU nm, then we don't want the "-C" option.
8540        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8541        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8542          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'
8543        else
8544          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'
8545        fi
8546        aix_use_runtimelinking=no
8547
8548        # Test if we are trying to use run time linking or normal
8549        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8550        # need to do runtime linking.
8551        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8552          for ld_flag in $LDFLAGS; do
8553          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8554            aix_use_runtimelinking=yes
8555            break
8556          fi
8557          done
8558          ;;
8559        esac
8560
8561        exp_sym_flag='-bexport'
8562        no_entry_flag='-bnoentry'
8563      fi
8564
8565      # When large executables or shared objects are built, AIX ld can
8566      # have problems creating the table of contents.  If linking a library
8567      # or program results in "error TOC overflow" add -mminimal-toc to
8568      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8569      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8570
8571      archive_cmds=''
8572      hardcode_direct=yes
8573      hardcode_libdir_separator=':'
8574      link_all_deplibs=yes
8575
8576      if test "$GCC" = yes; then
8577        case $host_os in aix4.[012]|aix4.[012].*)
8578        # We only want to do this on AIX 4.2 and lower, the check
8579        # below for broken collect2 doesn't work under 4.3+
8580          collect2name=`${CC} -print-prog-name=collect2`
8581          if test -f "$collect2name" && \
8582           strings "$collect2name" | grep resolve_lib_name >/dev/null
8583          then
8584          # We have reworked collect2
8585          hardcode_direct=yes
8586          else
8587          # We have old collect2
8588          hardcode_direct=unsupported
8589          # It fails to find uninstalled libraries when the uninstalled
8590          # path is not listed in the libpath.  Setting hardcode_minus_L
8591          # to unsupported forces relinking
8592          hardcode_minus_L=yes
8593          hardcode_libdir_flag_spec='-L$libdir'
8594          hardcode_libdir_separator=
8595          fi
8596          ;;
8597        esac
8598        shared_flag='-shared'
8599        if test "$aix_use_runtimelinking" = yes; then
8600          shared_flag="$shared_flag "'${wl}-G'
8601        fi
8602      else
8603        # not using gcc
8604        if test "$host_cpu" = ia64; then
8605        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8606        # chokes on -Wl,-G. The following line is correct:
8607          shared_flag='-G'
8608        else
8609          if test "$aix_use_runtimelinking" = yes; then
8610            shared_flag='${wl}-G'
8611          else
8612            shared_flag='${wl}-bM:SRE'
8613          fi
8614        fi
8615      fi
8616
8617      # It seems that -bexpall does not export symbols beginning with
8618      # underscore (_), so it is better to generate a list of symbols to export.
8619      always_export_symbols=yes
8620      if test "$aix_use_runtimelinking" = yes; then
8621        # Warning - without using the other runtime loading flags (-brtl),
8622        # -berok will link without error, but may produce a broken library.
8623        allow_undefined_flag='-berok'
8624       # Determine the default libpath from the value encoded in an empty executable.
8625       cat >conftest.$ac_ext <<_ACEOF
8626/* confdefs.h.  */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h.  */
8631
8632int
8633main ()
8634{
8635
8636  ;
8637  return 0;
8638}
8639_ACEOF
8640rm -f conftest.$ac_objext conftest$ac_exeext
8641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642  (eval $ac_link) 2>conftest.er1
8643  ac_status=$?
8644  grep -v '^ *+' conftest.er1 >conftest.err
8645  rm -f conftest.er1
8646  cat conftest.err >&5
8647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648  (exit $ac_status); } &&
8649         { ac_try='test -z "$ac_c_werror_flag"
8650                         || test ! -s conftest.err'
8651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652  (eval $ac_try) 2>&5
8653  ac_status=$?
8654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655  (exit $ac_status); }; } &&
8656         { ac_try='test -s conftest$ac_exeext'
8657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658  (eval $ac_try) 2>&5
8659  ac_status=$?
8660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661  (exit $ac_status); }; }; then
8662
8663aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8664}'`
8665# Check for a 64-bit object if we didn't find anything.
8666if 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; }
8667}'`; fi
8668else
8669  echo "$as_me: failed program was:" >&5
8670sed 's/^/| /' conftest.$ac_ext >&5
8671
8672fi
8673rm -f conftest.err conftest.$ac_objext \
8674      conftest$ac_exeext conftest.$ac_ext
8675if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8676
8677       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8678        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"
8679       else
8680        if test "$host_cpu" = ia64; then
8681          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8682          allow_undefined_flag="-z nodefs"
8683          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"
8684        else
8685         # Determine the default libpath from the value encoded in an empty executable.
8686         cat >conftest.$ac_ext <<_ACEOF
8687/* confdefs.h.  */
8688_ACEOF
8689cat confdefs.h >>conftest.$ac_ext
8690cat >>conftest.$ac_ext <<_ACEOF
8691/* end confdefs.h.  */
8692
8693int
8694main ()
8695{
8696
8697  ;
8698  return 0;
8699}
8700_ACEOF
8701rm -f conftest.$ac_objext conftest$ac_exeext
8702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703  (eval $ac_link) 2>conftest.er1
8704  ac_status=$?
8705  grep -v '^ *+' conftest.er1 >conftest.err
8706  rm -f conftest.er1
8707  cat conftest.err >&5
8708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709  (exit $ac_status); } &&
8710         { ac_try='test -z "$ac_c_werror_flag"
8711                         || test ! -s conftest.err'
8712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713  (eval $ac_try) 2>&5
8714  ac_status=$?
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); }; } &&
8717         { ac_try='test -s conftest$ac_exeext'
8718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719  (eval $ac_try) 2>&5
8720  ac_status=$?
8721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722  (exit $ac_status); }; }; then
8723
8724aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8725}'`
8726# Check for a 64-bit object if we didn't find anything.
8727if 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; }
8728}'`; fi
8729else
8730  echo "$as_me: failed program was:" >&5
8731sed 's/^/| /' conftest.$ac_ext >&5
8732
8733fi
8734rm -f conftest.err conftest.$ac_objext \
8735      conftest$ac_exeext conftest.$ac_ext
8736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8737
8738         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8739          # Warning - without using the other run time loading flags,
8740          # -berok will link without error, but may produce a broken library.
8741          no_undefined_flag=' ${wl}-bernotok'
8742          allow_undefined_flag=' ${wl}-berok'
8743          # Exported symbols can be pulled into shared objects from archives
8744          whole_archive_flag_spec='$convenience'
8745          archive_cmds_need_lc=yes
8746          # This is similar to how AIX traditionally builds its shared libraries.
8747          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'
8748        fi
8749      fi
8750      ;;
8751
8752    amigaos*)
8753      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)'
8754      hardcode_libdir_flag_spec='-L$libdir'
8755      hardcode_minus_L=yes
8756      # see comment about different semantics on the GNU ld section
8757      ld_shlibs=no
8758      ;;
8759
8760    bsdi[45]*)
8761      export_dynamic_flag_spec=-rdynamic
8762      ;;
8763
8764    cygwin* | mingw* | pw32*)
8765      # When not using gcc, we currently assume that we are using
8766      # Microsoft Visual C++.
8767      # hardcode_libdir_flag_spec is actually meaningless, as there is
8768      # no search path for DLLs.
8769      hardcode_libdir_flag_spec=' '
8770      allow_undefined_flag=unsupported
8771      # Tell ltmain to make .lib files, not .a files.
8772      libext=lib
8773      # Tell ltmain to make .dll files, not .so files.
8774      shrext_cmds=".dll"
8775      # FIXME: Setting linknames here is a bad hack.
8776      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8777      # The linker will automatically build a .lib file if we build a DLL.
8778      old_archive_From_new_cmds='true'
8779      # FIXME: Should let the user specify the lib program.
8780      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8781      fix_srcfile_path='`cygpath -w "$srcfile"`'
8782      enable_shared_with_static_runtimes=yes
8783      ;;
8784
8785    darwin* | rhapsody*)
8786      case $host_os in
8787        rhapsody* | darwin1.[012])
8788         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8789         ;;
8790       *) # Darwin 1.3 on
8791         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8792           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8793         else
8794           case ${MACOSX_DEPLOYMENT_TARGET} in
8795             10.[012])
8796               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8797               ;;
8798             10.*)
8799               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8800               ;;
8801           esac
8802         fi
8803         ;;
8804      esac
8805      archive_cmds_need_lc=no
8806      hardcode_direct=no
8807      hardcode_automatic=yes
8808      hardcode_shlibpath_var=unsupported
8809      whole_archive_flag_spec=''
8810      link_all_deplibs=yes
8811    if test "$GCC" = yes ; then
8812        output_verbose_link_cmd='echo'
8813        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8814      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8815      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8816      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}'
8817      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}'
8818    else
8819      case $cc_basename in
8820        xlc*)
8821         output_verbose_link_cmd='echo'
8822         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8823         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8824          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8825         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}'
8826          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}'
8827          ;;
8828       *)
8829         ld_shlibs=no
8830          ;;
8831      esac
8832    fi
8833      ;;
8834
8835    dgux*)
8836      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8837      hardcode_libdir_flag_spec='-L$libdir'
8838      hardcode_shlibpath_var=no
8839      ;;
8840
8841    freebsd1*)
8842      ld_shlibs=no
8843      ;;
8844
8845    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8846    # support.  Future versions do this automatically, but an explicit c++rt0.o
8847    # does not break anything, and helps significantly (at the cost of a little
8848    # extra space).
8849    freebsd2.2*)
8850      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8851      hardcode_libdir_flag_spec='-R$libdir'
8852      hardcode_direct=yes
8853      hardcode_shlibpath_var=no
8854      ;;
8855
8856    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8857    freebsd2*)
8858      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8859      hardcode_direct=yes
8860      hardcode_minus_L=yes
8861      hardcode_shlibpath_var=no
8862      ;;
8863
8864    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8865    freebsd* | kfreebsd*-gnu | dragonfly*)
8866      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8867      hardcode_libdir_flag_spec='-R$libdir'
8868      hardcode_direct=yes
8869      hardcode_shlibpath_var=no
8870      ;;
8871
8872    hpux9*)
8873      if test "$GCC" = yes; then
8874        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'
8875      else
8876        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'
8877      fi
8878      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8879      hardcode_libdir_separator=:
8880      hardcode_direct=yes
8881
8882      # hardcode_minus_L: Not really in the search PATH,
8883      # but as the default location of the library.
8884      hardcode_minus_L=yes
8885      export_dynamic_flag_spec='${wl}-E'
8886      ;;
8887
8888    hpux10*)
8889      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8890        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8891      else
8892        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8893      fi
8894      if test "$with_gnu_ld" = no; then
8895        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8896        hardcode_libdir_separator=:
8897
8898        hardcode_direct=yes
8899        export_dynamic_flag_spec='${wl}-E'
8900
8901        # hardcode_minus_L: Not really in the search PATH,
8902        # but as the default location of the library.
8903        hardcode_minus_L=yes
8904      fi
8905      ;;
8906
8907    hpux11*)
8908      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8909        case $host_cpu in
8910        hppa*64*)
8911          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912          ;;
8913        ia64*)
8914          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8915          ;;
8916        *)
8917          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8918          ;;
8919        esac
8920      else
8921        case $host_cpu in
8922        hppa*64*)
8923          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8924          ;;
8925        ia64*)
8926          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8927          ;;
8928        *)
8929          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8930          ;;
8931        esac
8932      fi
8933      if test "$with_gnu_ld" = no; then
8934        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8935        hardcode_libdir_separator=:
8936
8937        case $host_cpu in
8938        hppa*64*|ia64*)
8939          hardcode_libdir_flag_spec_ld='+b $libdir'
8940          hardcode_direct=no
8941          hardcode_shlibpath_var=no
8942          ;;
8943        *)
8944          hardcode_direct=yes
8945          export_dynamic_flag_spec='${wl}-E'
8946
8947          # hardcode_minus_L: Not really in the search PATH,
8948          # but as the default location of the library.
8949          hardcode_minus_L=yes
8950          ;;
8951        esac
8952      fi
8953      ;;
8954
8955    irix5* | irix6* | nonstopux*)
8956      if test "$GCC" = yes; then
8957        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'
8958      else
8959        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'
8960        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8961      fi
8962      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8963      hardcode_libdir_separator=:
8964      link_all_deplibs=yes
8965      ;;
8966
8967    netbsd*)
8968      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8969        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8970      else
8971        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8972      fi
8973      hardcode_libdir_flag_spec='-R$libdir'
8974      hardcode_direct=yes
8975      hardcode_shlibpath_var=no
8976      ;;
8977
8978    newsos6)
8979      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8980      hardcode_direct=yes
8981      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8982      hardcode_libdir_separator=:
8983      hardcode_shlibpath_var=no
8984      ;;
8985
8986    openbsd*)
8987      hardcode_direct=yes
8988      hardcode_shlibpath_var=no
8989      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8990        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8991        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8992        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8993        export_dynamic_flag_spec='${wl}-E'
8994      else
8995       case $host_os in
8996         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8997           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8998           hardcode_libdir_flag_spec='-R$libdir'
8999           ;;
9000         *)
9001           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9002           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9003           ;;
9004       esac
9005      fi
9006      ;;
9007
9008    os2*)
9009      hardcode_libdir_flag_spec='-L$libdir'
9010      hardcode_minus_L=yes
9011      allow_undefined_flag=unsupported
9012      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'
9013      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9014      ;;
9015
9016    osf3*)
9017      if test "$GCC" = yes; then
9018        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9019        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'
9020      else
9021        allow_undefined_flag=' -expect_unresolved \*'
9022        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'
9023      fi
9024      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9025      hardcode_libdir_separator=:
9026      ;;
9027
9028    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9029      if test "$GCC" = yes; then
9030        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9031        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'
9032        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9033      else
9034        allow_undefined_flag=' -expect_unresolved \*'
9035        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'
9036        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9037        $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'
9038
9039        # Both c and cxx compiler support -rpath directly
9040        hardcode_libdir_flag_spec='-rpath $libdir'
9041      fi
9042      hardcode_libdir_separator=:
9043      ;;
9044
9045    solaris*)
9046      no_undefined_flag=' -z text'
9047      if test "$GCC" = yes; then
9048        wlarc='${wl}'
9049        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9050        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9051          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9052      else
9053        wlarc=''
9054        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9056        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9057      fi
9058      hardcode_libdir_flag_spec='-R$libdir'
9059      hardcode_shlibpath_var=no
9060      case $host_os in
9061      solaris2.[0-5] | solaris2.[0-5].*) ;;
9062      *)
9063        # The compiler driver will combine linker options so we
9064        # cannot just pass the convience library names through
9065        # without $wl, iff we do not link with $LD.
9066        # Luckily, gcc supports the same syntax we need for Sun Studio.
9067        # Supported since Solaris 2.6 (maybe 2.5.1?)
9068        case $wlarc in
9069        '')
9070          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9071        *)
9072          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' ;;
9073        esac ;;
9074      esac
9075      link_all_deplibs=yes
9076      ;;
9077
9078    sunos4*)
9079      if test "x$host_vendor" = xsequent; then
9080        # Use $CC to link under sequent, because it throws in some extra .o
9081        # files that make .init and .fini sections work.
9082        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9083      else
9084        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9085      fi
9086      hardcode_libdir_flag_spec='-L$libdir'
9087      hardcode_direct=yes
9088      hardcode_minus_L=yes
9089      hardcode_shlibpath_var=no
9090      ;;
9091
9092    sysv4)
9093      case $host_vendor in
9094        sni)
9095          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096          hardcode_direct=yes # is this really true???
9097        ;;
9098        siemens)
9099          ## LD is ld it makes a PLAMLIB
9100          ## CC just makes a GrossModule.
9101          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9102          reload_cmds='$CC -r -o $output$reload_objs'
9103          hardcode_direct=no
9104        ;;
9105        motorola)
9106          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9107          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9108        ;;
9109      esac
9110      runpath_var='LD_RUN_PATH'
9111      hardcode_shlibpath_var=no
9112      ;;
9113
9114    sysv4.3*)
9115      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9116      hardcode_shlibpath_var=no
9117      export_dynamic_flag_spec='-Bexport'
9118      ;;
9119
9120    sysv4*MP*)
9121      if test -d /usr/nec; then
9122        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9123        hardcode_shlibpath_var=no
9124        runpath_var=LD_RUN_PATH
9125        hardcode_runpath_var=yes
9126        ld_shlibs=yes
9127      fi
9128      ;;
9129
9130    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9131      no_undefined_flag='${wl}-z,text'
9132      archive_cmds_need_lc=no
9133      hardcode_shlibpath_var=no
9134      runpath_var='LD_RUN_PATH'
9135
9136      if test "$GCC" = yes; then
9137        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9138        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9139      else
9140        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9141        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142      fi
9143      ;;
9144
9145    sysv5* | sco3.2v5* | sco5v6*)
9146      # Note: We can NOT use -z defs as we might desire, because we do not
9147      # link with -lc, and that would cause any symbols used from libc to
9148      # always be unresolved, which means just about no library would
9149      # ever link correctly.  If we're not using GNU ld we use -z text
9150      # though, which does catch some bad symbols but isn't as heavy-handed
9151      # as -z defs.
9152      no_undefined_flag='${wl}-z,text'
9153      allow_undefined_flag='${wl}-z,nodefs'
9154      archive_cmds_need_lc=no
9155      hardcode_shlibpath_var=no
9156      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9157      hardcode_libdir_separator=':'
9158      link_all_deplibs=yes
9159      export_dynamic_flag_spec='${wl}-Bexport'
9160      runpath_var='LD_RUN_PATH'
9161
9162      if test "$GCC" = yes; then
9163        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9164        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9165      else
9166        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9167        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9168      fi
9169      ;;
9170
9171    uts4*)
9172      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9173      hardcode_libdir_flag_spec='-L$libdir'
9174      hardcode_shlibpath_var=no
9175      ;;
9176
9177    *)
9178      ld_shlibs=no
9179      ;;
9180    esac
9181  fi
9182
9183echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9184echo "${ECHO_T}$ld_shlibs" >&6
9185test "$ld_shlibs" = no && can_build_shared=no
9186
9187#
9188# Do we need to explicitly link libc?
9189#
9190case "x$archive_cmds_need_lc" in
9191x|xyes)
9192  # Assume -lc should be added
9193  archive_cmds_need_lc=yes
9194
9195  if test "$enable_shared" = yes && test "$GCC" = yes; then
9196    case $archive_cmds in
9197    *'~'*)
9198      # FIXME: we may have to deal with multi-command sequences.
9199      ;;
9200    '$CC '*)
9201      # Test whether the compiler implicitly links with -lc since on some
9202      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9203      # to ld, don't add -lc before -lgcc.
9204      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9205echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9206      $rm conftest*
9207      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9208
9209      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9210  (eval $ac_compile) 2>&5
9211  ac_status=$?
9212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213  (exit $ac_status); } 2>conftest.err; then
9214        soname=conftest
9215        lib=conftest
9216        libobjs=conftest.$ac_objext
9217        deplibs=
9218        wl=$lt_prog_compiler_wl
9219        pic_flag=$lt_prog_compiler_pic
9220        compiler_flags=-v
9221        linker_flags=-v
9222        verstring=
9223        output_objdir=.
9224        libname=conftest
9225        lt_save_allow_undefined_flag=$allow_undefined_flag
9226        allow_undefined_flag=
9227        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9228  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9229  ac_status=$?
9230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231  (exit $ac_status); }
9232        then
9233          archive_cmds_need_lc=no
9234        else
9235          archive_cmds_need_lc=yes
9236        fi
9237        allow_undefined_flag=$lt_save_allow_undefined_flag
9238      else
9239        cat conftest.err 1>&5
9240      fi
9241      $rm conftest*
9242      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9243echo "${ECHO_T}$archive_cmds_need_lc" >&6
9244      ;;
9245    esac
9246  fi
9247  ;;
9248esac
9249
9250echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9251echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9252library_names_spec=
9253libname_spec='lib$name'
9254soname_spec=
9255shrext_cmds=".so"
9256postinstall_cmds=
9257postuninstall_cmds=
9258finish_cmds=
9259finish_eval=
9260shlibpath_var=
9261shlibpath_overrides_runpath=unknown
9262version_type=none
9263dynamic_linker="$host_os ld.so"
9264sys_lib_dlsearch_path_spec="/lib /usr/lib"
9265if test "$GCC" = yes; then
9266  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9267  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9268    # if the path contains ";" then we assume it to be the separator
9269    # otherwise default to the standard path separator (i.e. ":") - it is
9270    # assumed that no part of a normal pathname contains ";" but that should
9271    # okay in the real world where ";" in dirpaths is itself problematic.
9272    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9273  else
9274    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9275  fi
9276else
9277  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9278fi
9279need_lib_prefix=unknown
9280hardcode_into_libs=no
9281
9282# when you set need_version to no, make sure it does not cause -set_version
9283# flags to be left without arguments
9284need_version=unknown
9285
9286case $host_os in
9287aix3*)
9288  version_type=linux
9289  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9290  shlibpath_var=LIBPATH
9291
9292  # AIX 3 has no versioning support, so we append a major version to the name.
9293  soname_spec='${libname}${release}${shared_ext}$major'
9294  ;;
9295
9296aix4* | aix5*)
9297  version_type=linux
9298  need_lib_prefix=no
9299  need_version=no
9300  hardcode_into_libs=yes
9301  if test "$host_cpu" = ia64; then
9302    # AIX 5 supports IA64
9303    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9304    shlibpath_var=LD_LIBRARY_PATH
9305  else
9306    # With GCC up to 2.95.x, collect2 would create an import file
9307    # for dependence libraries.  The import file would start with
9308    # the line `#! .'.  This would cause the generated library to
9309    # depend on `.', always an invalid library.  This was fixed in
9310    # development snapshots of GCC prior to 3.0.
9311    case $host_os in
9312      aix4 | aix4.[01] | aix4.[01].*)
9313      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9314           echo ' yes '
9315           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9316        :
9317      else
9318        can_build_shared=no
9319      fi
9320      ;;
9321    esac
9322    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9323    # soname into executable. Probably we can add versioning support to
9324    # collect2, so additional links can be useful in future.
9325    if test "$aix_use_runtimelinking" = yes; then
9326      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9327      # instead of lib<name>.a to let people know that these are not
9328      # typical AIX shared libraries.
9329      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330    else
9331      # We preserve .a as extension for shared libraries through AIX4.2
9332      # and later when we are not doing run time linking.
9333      library_names_spec='${libname}${release}.a $libname.a'
9334      soname_spec='${libname}${release}${shared_ext}$major'
9335    fi
9336    shlibpath_var=LIBPATH
9337  fi
9338  ;;
9339
9340amigaos*)
9341  library_names_spec='$libname.ixlibrary $libname.a'
9342  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9343  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'
9344  ;;
9345
9346beos*)
9347  library_names_spec='${libname}${shared_ext}'
9348  dynamic_linker="$host_os ld.so"
9349  shlibpath_var=LIBRARY_PATH
9350  ;;
9351
9352bsdi[45]*)
9353  version_type=linux
9354  need_version=no
9355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9356  soname_spec='${libname}${release}${shared_ext}$major'
9357  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9358  shlibpath_var=LD_LIBRARY_PATH
9359  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9360  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9361  # the default ld.so.conf also contains /usr/contrib/lib and
9362  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9363  # libtool to hard-code these into programs
9364  ;;
9365
9366cygwin* | mingw* | pw32*)
9367  version_type=windows
9368  shrext_cmds=".dll"
9369  need_version=no
9370  need_lib_prefix=no
9371
9372  case $GCC,$host_os in
9373  yes,cygwin* | yes,mingw* | yes,pw32*)
9374    library_names_spec='$libname.dll.a'
9375    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9376    postinstall_cmds='base_file=`basename \${file}`~
9377      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9378      dldir=$destdir/`dirname \$dlpath`~
9379      test -d \$dldir || mkdir -p \$dldir~
9380      $install_prog $dir/$dlname \$dldir/$dlname~
9381      chmod a+x \$dldir/$dlname'
9382    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9383      dlpath=$dir/\$dldll~
9384       $rm \$dlpath'
9385    shlibpath_overrides_runpath=yes
9386
9387    case $host_os in
9388    cygwin*)
9389      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9390      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9391      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9392      ;;
9393    mingw*)
9394      # MinGW DLLs use traditional 'lib' prefix
9395      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9396      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9397      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9398        # It is most probably a Windows format PATH printed by
9399        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9400        # path with ; separators, and with drive letters. We can handle the
9401        # drive letters (cygwin fileutils understands them), so leave them,
9402        # especially as we might pass files found there to a mingw objdump,
9403        # which wouldn't understand a cygwinified path. Ahh.
9404        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9405      else
9406        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9407      fi
9408      ;;
9409    pw32*)
9410      # pw32 DLLs use 'pw' prefix rather than 'lib'
9411      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9412      ;;
9413    esac
9414    ;;
9415
9416  *)
9417    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9418    ;;
9419  esac
9420  dynamic_linker='Win32 ld.exe'
9421  # FIXME: first we should search . and the directory the executable is in
9422  shlibpath_var=PATH
9423  ;;
9424
9425darwin* | rhapsody*)
9426  dynamic_linker="$host_os dyld"
9427  version_type=darwin
9428  need_lib_prefix=no
9429  need_version=no
9430  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9431  soname_spec='${libname}${release}${major}$shared_ext'
9432  shlibpath_overrides_runpath=yes
9433  shlibpath_var=DYLD_LIBRARY_PATH
9434  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9435  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9436  if test "$GCC" = yes; then
9437    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"`
9438  else
9439    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9440  fi
9441  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9442  ;;
9443
9444dgux*)
9445  version_type=linux
9446  need_lib_prefix=no
9447  need_version=no
9448  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9449  soname_spec='${libname}${release}${shared_ext}$major'
9450  shlibpath_var=LD_LIBRARY_PATH
9451  ;;
9452
9453freebsd1*)
9454  dynamic_linker=no
9455  ;;
9456
9457kfreebsd*-gnu)
9458  version_type=linux
9459  need_lib_prefix=no
9460  need_version=no
9461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9462  soname_spec='${libname}${release}${shared_ext}$major'
9463  shlibpath_var=LD_LIBRARY_PATH
9464  shlibpath_overrides_runpath=no
9465  hardcode_into_libs=yes
9466  dynamic_linker='GNU ld.so'
9467  ;;
9468
9469freebsd* | dragonfly*)
9470  # DragonFly does not have aout.  When/if they implement a new
9471  # versioning mechanism, adjust this.
9472  if test -x /usr/bin/objformat; then
9473    objformat=`/usr/bin/objformat`
9474  else
9475    case $host_os in
9476    freebsd[123]*) objformat=aout ;;
9477    *) objformat=elf ;;
9478    esac
9479  fi
9480  version_type=freebsd-$objformat
9481  case $version_type in
9482    freebsd-elf*)
9483      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9484      need_version=no
9485      need_lib_prefix=no
9486      ;;
9487    freebsd-*)
9488      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9489      need_version=yes
9490      ;;
9491  esac
9492  shlibpath_var=LD_LIBRARY_PATH
9493  case $host_os in
9494  freebsd2*)
9495    shlibpath_overrides_runpath=yes
9496    ;;
9497  freebsd3.[01]* | freebsdelf3.[01]*)
9498    shlibpath_overrides_runpath=yes
9499    hardcode_into_libs=yes
9500    ;;
9501  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9502  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9503    shlibpath_overrides_runpath=no
9504    hardcode_into_libs=yes
9505    ;;
9506  freebsd*) # from 4.6 on
9507    shlibpath_overrides_runpath=yes
9508    hardcode_into_libs=yes
9509    ;;
9510  esac
9511  ;;
9512
9513gnu*)
9514  version_type=linux
9515  need_lib_prefix=no
9516  need_version=no
9517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9518  soname_spec='${libname}${release}${shared_ext}$major'
9519  shlibpath_var=LD_LIBRARY_PATH
9520  hardcode_into_libs=yes
9521  ;;
9522
9523hpux9* | hpux10* | hpux11*)
9524  # Give a soname corresponding to the major version so that dld.sl refuses to
9525  # link against other versions.
9526  version_type=sunos
9527  need_lib_prefix=no
9528  need_version=no
9529  case $host_cpu in
9530  ia64*)
9531    shrext_cmds='.so'
9532    hardcode_into_libs=yes
9533    dynamic_linker="$host_os dld.so"
9534    shlibpath_var=LD_LIBRARY_PATH
9535    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9536    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537    soname_spec='${libname}${release}${shared_ext}$major'
9538    if test "X$HPUX_IA64_MODE" = X32; then
9539      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9540    else
9541      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9542    fi
9543    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9544    ;;
9545   hppa*64*)
9546     shrext_cmds='.sl'
9547     hardcode_into_libs=yes
9548     dynamic_linker="$host_os dld.sl"
9549     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9550     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552     soname_spec='${libname}${release}${shared_ext}$major'
9553     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9554     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9555     ;;
9556   *)
9557    shrext_cmds='.sl'
9558    dynamic_linker="$host_os dld.sl"
9559    shlibpath_var=SHLIB_PATH
9560    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9561    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562    soname_spec='${libname}${release}${shared_ext}$major'
9563    ;;
9564  esac
9565  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9566  postinstall_cmds='chmod 555 $lib'
9567  ;;
9568
9569interix3*)
9570  version_type=linux
9571  need_lib_prefix=no
9572  need_version=no
9573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9574  soname_spec='${libname}${release}${shared_ext}$major'
9575  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9576  shlibpath_var=LD_LIBRARY_PATH
9577  shlibpath_overrides_runpath=no
9578  hardcode_into_libs=yes
9579  ;;
9580
9581irix5* | irix6* | nonstopux*)
9582  case $host_os in
9583    nonstopux*) version_type=nonstopux ;;
9584    *)
9585        if test "$lt_cv_prog_gnu_ld" = yes; then
9586                version_type=linux
9587        else
9588                version_type=irix
9589        fi ;;
9590  esac
9591  need_lib_prefix=no
9592  need_version=no
9593  soname_spec='${libname}${release}${shared_ext}$major'
9594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9595  case $host_os in
9596  irix5* | nonstopux*)
9597    libsuff= shlibsuff=
9598    ;;
9599  *)
9600    case $LD in # libtool.m4 will add one of these switches to LD
9601    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9602      libsuff= shlibsuff= libmagic=32-bit;;
9603    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9604      libsuff=32 shlibsuff=N32 libmagic=N32;;
9605    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9606      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9607    *) libsuff= shlibsuff= libmagic=never-match;;
9608    esac
9609    ;;
9610  esac
9611  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9612  shlibpath_overrides_runpath=no
9613  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9614  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9615  hardcode_into_libs=yes
9616  ;;
9617
9618# No shared lib support for Linux oldld, aout, or coff.
9619linux*oldld* | linux*aout* | linux*coff*)
9620  dynamic_linker=no
9621  ;;
9622
9623# This must be Linux ELF.
9624linux*)
9625  version_type=linux
9626  need_lib_prefix=no
9627  need_version=no
9628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9629  soname_spec='${libname}${release}${shared_ext}$major'
9630  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9631  shlibpath_var=LD_LIBRARY_PATH
9632  shlibpath_overrides_runpath=no
9633  # This implies no fast_install, which is unacceptable.
9634  # Some rework will be needed to allow for fast_install
9635  # before this can be enabled.
9636  hardcode_into_libs=yes
9637
9638  # Append ld.so.conf contents to the search path
9639  if test -f /etc/ld.so.conf; then
9640    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' ' '`
9641    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9642  fi
9643
9644  # We used to test for /lib/ld.so.1 and disable shared libraries on
9645  # powerpc, because MkLinux only supported shared libraries with the
9646  # GNU dynamic linker.  Since this was broken with cross compilers,
9647  # most powerpc-linux boxes support dynamic linking these days and
9648  # people can always --disable-shared, the test was removed, and we
9649  # assume the GNU/Linux dynamic linker is in use.
9650  dynamic_linker='GNU/Linux ld.so'
9651  ;;
9652
9653knetbsd*-gnu)
9654  version_type=linux
9655  need_lib_prefix=no
9656  need_version=no
9657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9658  soname_spec='${libname}${release}${shared_ext}$major'
9659  shlibpath_var=LD_LIBRARY_PATH
9660  shlibpath_overrides_runpath=no
9661  hardcode_into_libs=yes
9662  dynamic_linker='GNU ld.so'
9663  ;;
9664
9665netbsd*)
9666  version_type=sunos
9667  need_lib_prefix=no
9668  need_version=no
9669  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9670    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9671    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9672    dynamic_linker='NetBSD (a.out) ld.so'
9673  else
9674    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9675    soname_spec='${libname}${release}${shared_ext}$major'
9676    dynamic_linker='NetBSD ld.elf_so'
9677  fi
9678  shlibpath_var=LD_LIBRARY_PATH
9679  shlibpath_overrides_runpath=yes
9680  hardcode_into_libs=yes
9681  ;;
9682
9683newsos6)
9684  version_type=linux
9685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686  shlibpath_var=LD_LIBRARY_PATH
9687  shlibpath_overrides_runpath=yes
9688  ;;
9689
9690nto-qnx*)
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  shlibpath_var=LD_LIBRARY_PATH
9697  shlibpath_overrides_runpath=yes
9698  ;;
9699
9700openbsd*)
9701  version_type=sunos
9702  sys_lib_dlsearch_path_spec="/usr/lib"
9703  need_lib_prefix=no
9704  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9705  case $host_os in
9706    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9707    *)                         need_version=no  ;;
9708  esac
9709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9710  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9711  shlibpath_var=LD_LIBRARY_PATH
9712  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9713    case $host_os in
9714      openbsd2.[89] | openbsd2.[89].*)
9715        shlibpath_overrides_runpath=no
9716        ;;
9717      *)
9718        shlibpath_overrides_runpath=yes
9719        ;;
9720      esac
9721  else
9722    shlibpath_overrides_runpath=yes
9723  fi
9724  ;;
9725
9726os2*)
9727  libname_spec='$name'
9728  shrext_cmds=".dll"
9729  need_lib_prefix=no
9730  library_names_spec='$libname${shared_ext} $libname.a'
9731  dynamic_linker='OS/2 ld.exe'
9732  shlibpath_var=LIBPATH
9733  ;;
9734
9735osf3* | osf4* | osf5*)
9736  version_type=osf
9737  need_lib_prefix=no
9738  need_version=no
9739  soname_spec='${libname}${release}${shared_ext}$major'
9740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741  shlibpath_var=LD_LIBRARY_PATH
9742  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9743  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9744  ;;
9745
9746solaris*)
9747  version_type=linux
9748  need_lib_prefix=no
9749  need_version=no
9750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751  soname_spec='${libname}${release}${shared_ext}$major'
9752  shlibpath_var=LD_LIBRARY_PATH
9753  shlibpath_overrides_runpath=yes
9754  hardcode_into_libs=yes
9755  # ldd complains unless libraries are executable
9756  postinstall_cmds='chmod +x $lib'
9757  ;;
9758
9759sunos4*)
9760  version_type=sunos
9761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9762  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9763  shlibpath_var=LD_LIBRARY_PATH
9764  shlibpath_overrides_runpath=yes
9765  if test "$with_gnu_ld" = yes; then
9766    need_lib_prefix=no
9767  fi
9768  need_version=yes
9769  ;;
9770
9771sysv4 | sysv4.3*)
9772  version_type=linux
9773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9774  soname_spec='${libname}${release}${shared_ext}$major'
9775  shlibpath_var=LD_LIBRARY_PATH
9776  case $host_vendor in
9777    sni)
9778      shlibpath_overrides_runpath=no
9779      need_lib_prefix=no
9780      export_dynamic_flag_spec='${wl}-Blargedynsym'
9781      runpath_var=LD_RUN_PATH
9782      ;;
9783    siemens)
9784      need_lib_prefix=no
9785      ;;
9786    motorola)
9787      need_lib_prefix=no
9788      need_version=no
9789      shlibpath_overrides_runpath=no
9790      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9791      ;;
9792  esac
9793  ;;
9794
9795sysv4*MP*)
9796  if test -d /usr/nec ;then
9797    version_type=linux
9798    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9799    soname_spec='$libname${shared_ext}.$major'
9800    shlibpath_var=LD_LIBRARY_PATH
9801  fi
9802  ;;
9803
9804sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9805  version_type=freebsd-elf
9806  need_lib_prefix=no
9807  need_version=no
9808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9809  soname_spec='${libname}${release}${shared_ext}$major'
9810  shlibpath_var=LD_LIBRARY_PATH
9811  hardcode_into_libs=yes
9812  if test "$with_gnu_ld" = yes; then
9813    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9814    shlibpath_overrides_runpath=no
9815  else
9816    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9817    shlibpath_overrides_runpath=yes
9818    case $host_os in
9819      sco3.2v5*)
9820        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9821        ;;
9822    esac
9823  fi
9824  sys_lib_dlsearch_path_spec='/usr/lib'
9825  ;;
9826
9827uts4*)
9828  version_type=linux
9829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9830  soname_spec='${libname}${release}${shared_ext}$major'
9831  shlibpath_var=LD_LIBRARY_PATH
9832  ;;
9833
9834*)
9835  dynamic_linker=no
9836  ;;
9837esac
9838echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9839echo "${ECHO_T}$dynamic_linker" >&6
9840test "$dynamic_linker" = no && can_build_shared=no
9841
9842variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9843if test "$GCC" = yes; then
9844  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9845fi
9846
9847echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9848echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9849hardcode_action=
9850if test -n "$hardcode_libdir_flag_spec" || \
9851   test -n "$runpath_var" || \
9852   test "X$hardcode_automatic" = "Xyes" ; then
9853
9854  # We can hardcode non-existant directories.
9855  if test "$hardcode_direct" != no &&
9856     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9857     # have to relink, otherwise we might link with an installed library
9858     # when we should be linking with a yet-to-be-installed one
9859     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9860     test "$hardcode_minus_L" != no; then
9861    # Linking always hardcodes the temporary library directory.
9862    hardcode_action=relink
9863  else
9864    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9865    hardcode_action=immediate
9866  fi
9867else
9868  # We cannot hardcode anything, or else we can only hardcode existing
9869  # directories.
9870  hardcode_action=unsupported
9871fi
9872echo "$as_me:$LINENO: result: $hardcode_action" >&5
9873echo "${ECHO_T}$hardcode_action" >&6
9874
9875if test "$hardcode_action" = relink; then
9876  # Fast installation is not supported
9877  enable_fast_install=no
9878elif test "$shlibpath_overrides_runpath" = yes ||
9879     test "$enable_shared" = no; then
9880  # Fast installation is not necessary
9881  enable_fast_install=needless
9882fi
9883
9884striplib=
9885old_striplib=
9886echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9887echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9888if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9889  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9890  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9891  echo "$as_me:$LINENO: result: yes" >&5
9892echo "${ECHO_T}yes" >&6
9893else
9894# FIXME - insert some real tests, host_os isn't really good enough
9895  case $host_os in
9896   darwin*)
9897       if test -n "$STRIP" ; then
9898         striplib="$STRIP -x"
9899         echo "$as_me:$LINENO: result: yes" >&5
9900echo "${ECHO_T}yes" >&6
9901       else
9902  echo "$as_me:$LINENO: result: no" >&5
9903echo "${ECHO_T}no" >&6
9904fi
9905       ;;
9906   *)
9907  echo "$as_me:$LINENO: result: no" >&5
9908echo "${ECHO_T}no" >&6
9909    ;;
9910  esac
9911fi
9912
9913if test "x$enable_dlopen" != xyes; then
9914  enable_dlopen=unknown
9915  enable_dlopen_self=unknown
9916  enable_dlopen_self_static=unknown
9917else
9918  lt_cv_dlopen=no
9919  lt_cv_dlopen_libs=
9920
9921  case $host_os in
9922  beos*)
9923    lt_cv_dlopen="load_add_on"
9924    lt_cv_dlopen_libs=
9925    lt_cv_dlopen_self=yes
9926    ;;
9927
9928  mingw* | pw32*)
9929    lt_cv_dlopen="LoadLibrary"
9930    lt_cv_dlopen_libs=
9931   ;;
9932
9933  cygwin*)
9934    lt_cv_dlopen="dlopen"
9935    lt_cv_dlopen_libs=
9936   ;;
9937
9938  darwin*)
9939  # if libdl is installed we need to link against it
9940    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9941echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9942if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9943  echo $ECHO_N "(cached) $ECHO_C" >&6
9944else
9945  ac_check_lib_save_LIBS=$LIBS
9946LIBS="-ldl  $LIBS"
9947cat >conftest.$ac_ext <<_ACEOF
9948/* confdefs.h.  */
9949_ACEOF
9950cat confdefs.h >>conftest.$ac_ext
9951cat >>conftest.$ac_ext <<_ACEOF
9952/* end confdefs.h.  */
9953
9954/* Override any gcc2 internal prototype to avoid an error.  */
9955#ifdef __cplusplus
9956extern "C"
9957#endif
9958/* We use char because int might match the return type of a gcc2
9959   builtin and then its argument prototype would still apply.  */
9960char dlopen ();
9961int
9962main ()
9963{
9964dlopen ();
9965  ;
9966  return 0;
9967}
9968_ACEOF
9969rm -f conftest.$ac_objext conftest$ac_exeext
9970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971  (eval $ac_link) 2>conftest.er1
9972  ac_status=$?
9973  grep -v '^ *+' conftest.er1 >conftest.err
9974  rm -f conftest.er1
9975  cat conftest.err >&5
9976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977  (exit $ac_status); } &&
9978         { ac_try='test -z "$ac_c_werror_flag"
9979                         || test ! -s conftest.err'
9980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981  (eval $ac_try) 2>&5
9982  ac_status=$?
9983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984  (exit $ac_status); }; } &&
9985         { ac_try='test -s conftest$ac_exeext'
9986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987  (eval $ac_try) 2>&5
9988  ac_status=$?
9989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990  (exit $ac_status); }; }; then
9991  ac_cv_lib_dl_dlopen=yes
9992else
9993  echo "$as_me: failed program was:" >&5
9994sed 's/^/| /' conftest.$ac_ext >&5
9995
9996ac_cv_lib_dl_dlopen=no
9997fi
9998rm -f conftest.err conftest.$ac_objext \
9999      conftest$ac_exeext conftest.$ac_ext
10000LIBS=$ac_check_lib_save_LIBS
10001fi
10002echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10003echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10004if test $ac_cv_lib_dl_dlopen = yes; then
10005  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10006else
10007
10008    lt_cv_dlopen="dyld"
10009    lt_cv_dlopen_libs=
10010    lt_cv_dlopen_self=yes
10011
10012fi
10013
10014   ;;
10015
10016  *)
10017    echo "$as_me:$LINENO: checking for shl_load" >&5
10018echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10019if test "${ac_cv_func_shl_load+set}" = set; then
10020  echo $ECHO_N "(cached) $ECHO_C" >&6
10021else
10022  cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h.  */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h.  */
10028/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10029   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10030#define shl_load innocuous_shl_load
10031
10032/* System header to define __stub macros and hopefully few prototypes,
10033    which can conflict with char shl_load (); below.
10034    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035    <limits.h> exists even on freestanding compilers.  */
10036
10037#ifdef __STDC__
10038# include <limits.h>
10039#else
10040# include <assert.h>
10041#endif
10042
10043#undef shl_load
10044
10045/* Override any gcc2 internal prototype to avoid an error.  */
10046#ifdef __cplusplus
10047extern "C"
10048{
10049#endif
10050/* We use char because int might match the return type of a gcc2
10051   builtin and then its argument prototype would still apply.  */
10052char shl_load ();
10053/* The GNU C library defines this for functions which it implements
10054    to always fail with ENOSYS.  Some functions are actually named
10055    something starting with __ and the normal name is an alias.  */
10056#if defined (__stub_shl_load) || defined (__stub___shl_load)
10057choke me
10058#else
10059char (*f) () = shl_load;
10060#endif
10061#ifdef __cplusplus
10062}
10063#endif
10064
10065int
10066main ()
10067{
10068return f != shl_load;
10069  ;
10070  return 0;
10071}
10072_ACEOF
10073rm -f conftest.$ac_objext conftest$ac_exeext
10074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075  (eval $ac_link) 2>conftest.er1
10076  ac_status=$?
10077  grep -v '^ *+' conftest.er1 >conftest.err
10078  rm -f conftest.er1
10079  cat conftest.err >&5
10080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081  (exit $ac_status); } &&
10082         { ac_try='test -z "$ac_c_werror_flag"
10083                         || test ! -s conftest.err'
10084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085  (eval $ac_try) 2>&5
10086  ac_status=$?
10087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088  (exit $ac_status); }; } &&
10089         { ac_try='test -s conftest$ac_exeext'
10090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091  (eval $ac_try) 2>&5
10092  ac_status=$?
10093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094  (exit $ac_status); }; }; then
10095  ac_cv_func_shl_load=yes
10096else
10097  echo "$as_me: failed program was:" >&5
10098sed 's/^/| /' conftest.$ac_ext >&5
10099
10100ac_cv_func_shl_load=no
10101fi
10102rm -f conftest.err conftest.$ac_objext \
10103      conftest$ac_exeext conftest.$ac_ext
10104fi
10105echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10106echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10107if test $ac_cv_func_shl_load = yes; then
10108  lt_cv_dlopen="shl_load"
10109else
10110  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10111echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10112if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10113  echo $ECHO_N "(cached) $ECHO_C" >&6
10114else
10115  ac_check_lib_save_LIBS=$LIBS
10116LIBS="-ldld  $LIBS"
10117cat >conftest.$ac_ext <<_ACEOF
10118/* confdefs.h.  */
10119_ACEOF
10120cat confdefs.h >>conftest.$ac_ext
10121cat >>conftest.$ac_ext <<_ACEOF
10122/* end confdefs.h.  */
10123
10124/* Override any gcc2 internal prototype to avoid an error.  */
10125#ifdef __cplusplus
10126extern "C"
10127#endif
10128/* We use char because int might match the return type of a gcc2
10129   builtin and then its argument prototype would still apply.  */
10130char shl_load ();
10131int
10132main ()
10133{
10134shl_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_lib_dld_shl_load=yes
10162else
10163  echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
10166ac_cv_lib_dld_shl_load=no
10167fi
10168rm -f conftest.err conftest.$ac_objext \
10169      conftest$ac_exeext conftest.$ac_ext
10170LIBS=$ac_check_lib_save_LIBS
10171fi
10172echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10173echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10174if test $ac_cv_lib_dld_shl_load = yes; then
10175  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10176else
10177  echo "$as_me:$LINENO: checking for dlopen" >&5
10178echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10179if test "${ac_cv_func_dlopen+set}" = set; then
10180  echo $ECHO_N "(cached) $ECHO_C" >&6
10181else
10182  cat >conftest.$ac_ext <<_ACEOF
10183/* confdefs.h.  */
10184_ACEOF
10185cat confdefs.h >>conftest.$ac_ext
10186cat >>conftest.$ac_ext <<_ACEOF
10187/* end confdefs.h.  */
10188/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10189   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10190#define dlopen innocuous_dlopen
10191
10192/* System header to define __stub macros and hopefully few prototypes,
10193    which can conflict with char dlopen (); below.
10194    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10195    <limits.h> exists even on freestanding compilers.  */
10196
10197#ifdef __STDC__
10198# include <limits.h>
10199#else
10200# include <assert.h>
10201#endif
10202
10203#undef dlopen
10204
10205/* Override any gcc2 internal prototype to avoid an error.  */
10206#ifdef __cplusplus
10207extern "C"
10208{
10209#endif
10210/* We use char because int might match the return type of a gcc2
10211   builtin and then its argument prototype would still apply.  */
10212char dlopen ();
10213/* The GNU C library defines this for functions which it implements
10214    to always fail with ENOSYS.  Some functions are actually named
10215    something starting with __ and the normal name is an alias.  */
10216#if defined (__stub_dlopen) || defined (__stub___dlopen)
10217choke me
10218#else
10219char (*f) () = dlopen;
10220#endif
10221#ifdef __cplusplus
10222}
10223#endif
10224
10225int
10226main ()
10227{
10228return f != dlopen;
10229  ;
10230  return 0;
10231}
10232_ACEOF
10233rm -f conftest.$ac_objext conftest$ac_exeext
10234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235  (eval $ac_link) 2>conftest.er1
10236  ac_status=$?
10237  grep -v '^ *+' conftest.er1 >conftest.err
10238  rm -f conftest.er1
10239  cat conftest.err >&5
10240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241  (exit $ac_status); } &&
10242         { ac_try='test -z "$ac_c_werror_flag"
10243                         || test ! -s conftest.err'
10244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245  (eval $ac_try) 2>&5
10246  ac_status=$?
10247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248  (exit $ac_status); }; } &&
10249         { ac_try='test -s conftest$ac_exeext'
10250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251  (eval $ac_try) 2>&5
10252  ac_status=$?
10253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254  (exit $ac_status); }; }; then
10255  ac_cv_func_dlopen=yes
10256else
10257  echo "$as_me: failed program was:" >&5
10258sed 's/^/| /' conftest.$ac_ext >&5
10259
10260ac_cv_func_dlopen=no
10261fi
10262rm -f conftest.err conftest.$ac_objext \
10263      conftest$ac_exeext conftest.$ac_ext
10264fi
10265echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10266echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10267if test $ac_cv_func_dlopen = yes; then
10268  lt_cv_dlopen="dlopen"
10269else
10270  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10271echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10272if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10273  echo $ECHO_N "(cached) $ECHO_C" >&6
10274else
10275  ac_check_lib_save_LIBS=$LIBS
10276LIBS="-ldl  $LIBS"
10277cat >conftest.$ac_ext <<_ACEOF
10278/* confdefs.h.  */
10279_ACEOF
10280cat confdefs.h >>conftest.$ac_ext
10281cat >>conftest.$ac_ext <<_ACEOF
10282/* end confdefs.h.  */
10283
10284/* Override any gcc2 internal prototype to avoid an error.  */
10285#ifdef __cplusplus
10286extern "C"
10287#endif
10288/* We use char because int might match the return type of a gcc2
10289   builtin and then its argument prototype would still apply.  */
10290char dlopen ();
10291int
10292main ()
10293{
10294dlopen ();
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_lib_dl_dlopen=yes
10322else
10323  echo "$as_me: failed program was:" >&5
10324sed 's/^/| /' conftest.$ac_ext >&5
10325
10326ac_cv_lib_dl_dlopen=no
10327fi
10328rm -f conftest.err conftest.$ac_objext \
10329      conftest$ac_exeext conftest.$ac_ext
10330LIBS=$ac_check_lib_save_LIBS
10331fi
10332echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10333echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10334if test $ac_cv_lib_dl_dlopen = yes; then
10335  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10336else
10337  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10338echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10339if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10340  echo $ECHO_N "(cached) $ECHO_C" >&6
10341else
10342  ac_check_lib_save_LIBS=$LIBS
10343LIBS="-lsvld  $LIBS"
10344cat >conftest.$ac_ext <<_ACEOF
10345/* confdefs.h.  */
10346_ACEOF
10347cat confdefs.h >>conftest.$ac_ext
10348cat >>conftest.$ac_ext <<_ACEOF
10349/* end confdefs.h.  */
10350
10351/* Override any gcc2 internal prototype to avoid an error.  */
10352#ifdef __cplusplus
10353extern "C"
10354#endif
10355/* We use char because int might match the return type of a gcc2
10356   builtin and then its argument prototype would still apply.  */
10357char dlopen ();
10358int
10359main ()
10360{
10361dlopen ();
10362  ;
10363  return 0;
10364}
10365_ACEOF
10366rm -f conftest.$ac_objext conftest$ac_exeext
10367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368  (eval $ac_link) 2>conftest.er1
10369  ac_status=$?
10370  grep -v '^ *+' conftest.er1 >conftest.err
10371  rm -f conftest.er1
10372  cat conftest.err >&5
10373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374  (exit $ac_status); } &&
10375         { ac_try='test -z "$ac_c_werror_flag"
10376                         || test ! -s conftest.err'
10377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10378  (eval $ac_try) 2>&5
10379  ac_status=$?
10380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381  (exit $ac_status); }; } &&
10382         { ac_try='test -s conftest$ac_exeext'
10383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384  (eval $ac_try) 2>&5
10385  ac_status=$?
10386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387  (exit $ac_status); }; }; then
10388  ac_cv_lib_svld_dlopen=yes
10389else
10390  echo "$as_me: failed program was:" >&5
10391sed 's/^/| /' conftest.$ac_ext >&5
10392
10393ac_cv_lib_svld_dlopen=no
10394fi
10395rm -f conftest.err conftest.$ac_objext \
10396      conftest$ac_exeext conftest.$ac_ext
10397LIBS=$ac_check_lib_save_LIBS
10398fi
10399echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10400echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10401if test $ac_cv_lib_svld_dlopen = yes; then
10402  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10403else
10404  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10405echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10406if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10407  echo $ECHO_N "(cached) $ECHO_C" >&6
10408else
10409  ac_check_lib_save_LIBS=$LIBS
10410LIBS="-ldld  $LIBS"
10411cat >conftest.$ac_ext <<_ACEOF
10412/* confdefs.h.  */
10413_ACEOF
10414cat confdefs.h >>conftest.$ac_ext
10415cat >>conftest.$ac_ext <<_ACEOF
10416/* end confdefs.h.  */
10417
10418/* Override any gcc2 internal prototype to avoid an error.  */
10419#ifdef __cplusplus
10420extern "C"
10421#endif
10422/* We use char because int might match the return type of a gcc2
10423   builtin and then its argument prototype would still apply.  */
10424char dld_link ();
10425int
10426main ()
10427{
10428dld_link ();
10429  ;
10430  return 0;
10431}
10432_ACEOF
10433rm -f conftest.$ac_objext conftest$ac_exeext
10434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10435  (eval $ac_link) 2>conftest.er1
10436  ac_status=$?
10437  grep -v '^ *+' conftest.er1 >conftest.err
10438  rm -f conftest.er1
10439  cat conftest.err >&5
10440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441  (exit $ac_status); } &&
10442         { ac_try='test -z "$ac_c_werror_flag"
10443                         || test ! -s conftest.err'
10444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445  (eval $ac_try) 2>&5
10446  ac_status=$?
10447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448  (exit $ac_status); }; } &&
10449         { ac_try='test -s conftest$ac_exeext'
10450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10451  (eval $ac_try) 2>&5
10452  ac_status=$?
10453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454  (exit $ac_status); }; }; then
10455  ac_cv_lib_dld_dld_link=yes
10456else
10457  echo "$as_me: failed program was:" >&5
10458sed 's/^/| /' conftest.$ac_ext >&5
10459
10460ac_cv_lib_dld_dld_link=no
10461fi
10462rm -f conftest.err conftest.$ac_objext \
10463      conftest$ac_exeext conftest.$ac_ext
10464LIBS=$ac_check_lib_save_LIBS
10465fi
10466echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10467echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10468if test $ac_cv_lib_dld_dld_link = yes; then
10469  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10470fi
10471
10472
10473fi
10474
10475
10476fi
10477
10478
10479fi
10480
10481
10482fi
10483
10484
10485fi
10486
10487    ;;
10488  esac
10489
10490  if test "x$lt_cv_dlopen" != xno; then
10491    enable_dlopen=yes
10492  else
10493    enable_dlopen=no
10494  fi
10495
10496  case $lt_cv_dlopen in
10497  dlopen)
10498    save_CPPFLAGS="$CPPFLAGS"
10499    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10500
10501    save_LDFLAGS="$LDFLAGS"
10502    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10503
10504    save_LIBS="$LIBS"
10505    LIBS="$lt_cv_dlopen_libs $LIBS"
10506
10507    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10508echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10509if test "${lt_cv_dlopen_self+set}" = set; then
10510  echo $ECHO_N "(cached) $ECHO_C" >&6
10511else
10512          if test "$cross_compiling" = yes; then :
10513  lt_cv_dlopen_self=cross
10514else
10515  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10516  lt_status=$lt_dlunknown
10517  cat > conftest.$ac_ext <<EOF
10518#line 10518 "configure"
10519#include "confdefs.h"
10520
10521#if HAVE_DLFCN_H
10522#include <dlfcn.h>
10523#endif
10524
10525#include <stdio.h>
10526
10527#ifdef RTLD_GLOBAL
10528#  define LT_DLGLOBAL           RTLD_GLOBAL
10529#else
10530#  ifdef DL_GLOBAL
10531#    define LT_DLGLOBAL         DL_GLOBAL
10532#  else
10533#    define LT_DLGLOBAL         0
10534#  endif
10535#endif
10536
10537/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10538   find out it does not work in some platform. */
10539#ifndef LT_DLLAZY_OR_NOW
10540#  ifdef RTLD_LAZY
10541#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10542#  else
10543#    ifdef DL_LAZY
10544#      define LT_DLLAZY_OR_NOW          DL_LAZY
10545#    else
10546#      ifdef RTLD_NOW
10547#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10548#      else
10549#        ifdef DL_NOW
10550#          define LT_DLLAZY_OR_NOW      DL_NOW
10551#        else
10552#          define LT_DLLAZY_OR_NOW      0
10553#        endif
10554#      endif
10555#    endif
10556#  endif
10557#endif
10558
10559#ifdef __cplusplus
10560extern "C" void exit (int);
10561#endif
10562
10563void fnord() { int i=42;}
10564int main ()
10565{
10566  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10567  int status = $lt_dlunknown;
10568
10569  if (self)
10570    {
10571      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10572      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10573      /* dlclose (self); */
10574    }
10575  else
10576    puts (dlerror ());
10577
10578    exit (status);
10579}
10580EOF
10581  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582  (eval $ac_link) 2>&5
10583  ac_status=$?
10584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10586    (./conftest; exit; ) >&5 2>/dev/null
10587    lt_status=$?
10588    case x$lt_status in
10589      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10590      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10591      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10592    esac
10593  else :
10594    # compilation failed
10595    lt_cv_dlopen_self=no
10596  fi
10597fi
10598rm -fr conftest*
10599
10600
10601fi
10602echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10603echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10604
10605    if test "x$lt_cv_dlopen_self" = xyes; then
10606      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10607      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10608echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10609if test "${lt_cv_dlopen_self_static+set}" = set; then
10610  echo $ECHO_N "(cached) $ECHO_C" >&6
10611else
10612          if test "$cross_compiling" = yes; then :
10613  lt_cv_dlopen_self_static=cross
10614else
10615  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10616  lt_status=$lt_dlunknown
10617  cat > conftest.$ac_ext <<EOF
10618#line 10618 "configure"
10619#include "confdefs.h"
10620
10621#if HAVE_DLFCN_H
10622#include <dlfcn.h>
10623#endif
10624
10625#include <stdio.h>
10626
10627#ifdef RTLD_GLOBAL
10628#  define LT_DLGLOBAL           RTLD_GLOBAL
10629#else
10630#  ifdef DL_GLOBAL
10631#    define LT_DLGLOBAL         DL_GLOBAL
10632#  else
10633#    define LT_DLGLOBAL         0
10634#  endif
10635#endif
10636
10637/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10638   find out it does not work in some platform. */
10639#ifndef LT_DLLAZY_OR_NOW
10640#  ifdef RTLD_LAZY
10641#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10642#  else
10643#    ifdef DL_LAZY
10644#      define LT_DLLAZY_OR_NOW          DL_LAZY
10645#    else
10646#      ifdef RTLD_NOW
10647#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10648#      else
10649#        ifdef DL_NOW
10650#          define LT_DLLAZY_OR_NOW      DL_NOW
10651#        else
10652#          define LT_DLLAZY_OR_NOW      0
10653#        endif
10654#      endif
10655#    endif
10656#  endif
10657#endif
10658
10659#ifdef __cplusplus
10660extern "C" void exit (int);
10661#endif
10662
10663void fnord() { int i=42;}
10664int main ()
10665{
10666  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10667  int status = $lt_dlunknown;
10668
10669  if (self)
10670    {
10671      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10672      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10673      /* dlclose (self); */
10674    }
10675  else
10676    puts (dlerror ());
10677
10678    exit (status);
10679}
10680EOF
10681  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10682  (eval $ac_link) 2>&5
10683  ac_status=$?
10684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10686    (./conftest; exit; ) >&5 2>/dev/null
10687    lt_status=$?
10688    case x$lt_status in
10689      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10690      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10691      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10692    esac
10693  else :
10694    # compilation failed
10695    lt_cv_dlopen_self_static=no
10696  fi
10697fi
10698rm -fr conftest*
10699
10700
10701fi
10702echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10703echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10704    fi
10705
10706    CPPFLAGS="$save_CPPFLAGS"
10707    LDFLAGS="$save_LDFLAGS"
10708    LIBS="$save_LIBS"
10709    ;;
10710  esac
10711
10712  case $lt_cv_dlopen_self in
10713  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10714  *) enable_dlopen_self=unknown ;;
10715  esac
10716
10717  case $lt_cv_dlopen_self_static in
10718  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10719  *) enable_dlopen_self_static=unknown ;;
10720  esac
10721fi
10722
10723
10724# Report which library types will actually be built
10725echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10726echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10727echo "$as_me:$LINENO: result: $can_build_shared" >&5
10728echo "${ECHO_T}$can_build_shared" >&6
10729
10730echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10731echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10732test "$can_build_shared" = "no" && enable_shared=no
10733
10734# On AIX, shared libraries and static libraries use the same namespace, and
10735# are all built from PIC.
10736case $host_os in
10737aix3*)
10738  test "$enable_shared" = yes && enable_static=no
10739  if test -n "$RANLIB"; then
10740    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10741    postinstall_cmds='$RANLIB $lib'
10742  fi
10743  ;;
10744
10745aix4* | aix5*)
10746  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10747    test "$enable_shared" = yes && enable_static=no
10748  fi
10749    ;;
10750esac
10751echo "$as_me:$LINENO: result: $enable_shared" >&5
10752echo "${ECHO_T}$enable_shared" >&6
10753
10754echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10755echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10756# Make sure either enable_shared or enable_static is yes.
10757test "$enable_shared" = yes || enable_static=yes
10758echo "$as_me:$LINENO: result: $enable_static" >&5
10759echo "${ECHO_T}$enable_static" >&6
10760
10761# The else clause should only fire when bootstrapping the
10762# libtool distribution, otherwise you forgot to ship ltmain.sh
10763# with your package, and you will get complaints that there are
10764# no rules to generate ltmain.sh.
10765if test -f "$ltmain"; then
10766  # See if we are running on zsh, and set the options which allow our commands through
10767  # without removal of \ escapes.
10768  if test -n "${ZSH_VERSION+set}" ; then
10769    setopt NO_GLOB_SUBST
10770  fi
10771  # Now quote all the things that may contain metacharacters while being
10772  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10773  # variables and quote the copies for generation of the libtool script.
10774  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10775    SED SHELL STRIP \
10776    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10777    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10778    deplibs_check_method reload_flag reload_cmds need_locks \
10779    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10780    lt_cv_sys_global_symbol_to_c_name_address \
10781    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10782    old_postinstall_cmds old_postuninstall_cmds \
10783