source: ThirdParty/Blas/releases/1.0.4/configure @ 882

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

synchronize Blas stable/1.0 with trunk rev 302

  • Property svn:executable set to *
File size: 763.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyBlas 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL 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 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyBlas 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-blas compile this project (Blas) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS. 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 0.0
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 0.0, 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'
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"
3029     else
3030       coin_f77_comps="gfortran g77 ifort fl32"
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        esac
3425        ;;
3426      *-linux-*)
3427        case $F77 in
3428          ifc* | */ifc* | ifort* | */ifort*)
3429            coin_opt_fflags="-O3 -ip"
3430            coin_add_fflags="-cm -w90 -w95"
3431            coin_dbg_fflags="-g -CA -CB -CS"
3432            # Check if -i_dynamic is necessary (for new glibc library)
3433            FFLAGS=
3434            cat >conftest.$ac_ext <<_ACEOF
3435      program main
3436      write(*,*) 'Hello world'
3437      end
3438_ACEOF
3439rm -f conftest.$ac_objext conftest$ac_exeext
3440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3441  (eval $ac_link) 2>conftest.er1
3442  ac_status=$?
3443  grep -v '^ *+' conftest.er1 >conftest.err
3444  rm -f conftest.er1
3445  cat conftest.err >&5
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); } &&
3448         { ac_try='test -z "$ac_f77_werror_flag"
3449                         || test ! -s conftest.err'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; } &&
3455         { ac_try='test -s conftest$ac_exeext'
3456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457  (eval $ac_try) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }; }; then
3461  :
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466coin_add_fflags="-i_dynamic $coin_add_fflags"
3467fi
3468rm -f conftest.err conftest.$ac_objext \
3469      conftest$ac_exeext conftest.$ac_ext
3470            ;;
3471          pgf77* | */pgf77* | pgf90* | */pgf90*)
3472            coin_opt_fflags="-fast"
3473            coin_add_fflags="-Kieee -pc 64"
3474            coin_dbg_fflags="-g"
3475          ;;
3476        esac
3477        ;;
3478      *-ibm-*)
3479        case "$F77" in
3480          xlf* | */xlf* | mpxlf* | */mpxlf* )
3481            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3482            coin_add_fflags="-bmaxdata:0x80000000"
3483            coin_dbg_fflags="-g -C"
3484            ;;
3485        esac
3486        ;;
3487      *-hp-*)
3488        coin_opt_fflags="+O3"
3489        coin_add_fflags="+U77"
3490        coin_dbg_fflags="-C -g"
3491        ;;
3492      *-sun-*)
3493        coin_opt_fflags="-O4"
3494        coin_dbg_fflags="-g"
3495        ;;
3496      *-sgi-*)
3497        coin_opt_fflags="-O5 -OPT:Olimit=0"
3498        coin_dbg_fflags="-g"
3499        ;;
3500    esac
3501  fi
3502
3503  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3504    coin_dbg_fflags="-g"
3505  fi
3506
3507  if test -z "$coin_opt_fflags"; then
3508    # Try if -O option works if nothing else is set
3509    FFLAGS=-O
3510    cat >conftest.$ac_ext <<_ACEOF
3511      program main
3512      integer i
3513      end
3514_ACEOF
3515rm -f conftest.$ac_objext conftest$ac_exeext
3516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3517  (eval $ac_link) 2>conftest.er1
3518  ac_status=$?
3519  grep -v '^ *+' conftest.er1 >conftest.err
3520  rm -f conftest.er1
3521  cat conftest.err >&5
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); } &&
3524         { ac_try='test -z "$ac_f77_werror_flag"
3525                         || test ! -s conftest.err'
3526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527  (eval $ac_try) 2>&5
3528  ac_status=$?
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); }; } &&
3531         { ac_try='test -s conftest$ac_exeext'
3532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533  (eval $ac_try) 2>&5
3534  ac_status=$?
3535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536  (exit $ac_status); }; }; then
3537  coin_opt_fflags="-O"
3538else
3539  echo "$as_me: failed program was:" >&5
3540sed 's/^/| /' conftest.$ac_ext >&5
3541
3542fi
3543rm -f conftest.err conftest.$ac_objext \
3544      conftest$ac_exeext conftest.$ac_ext
3545  fi
3546
3547  # if PM doesn't want the warning messages, take them out
3548  if test x"$coin_skip_warn_fflags" = xyes; then
3549    coin_warn_fflags=
3550  fi
3551
3552  if test x${DBG_FFLAGS+set} != xset; then
3553    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3554  fi
3555  if test x${OPT_FFLAGS+set} != xset; then
3556    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3557  fi
3558
3559  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3560  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3561
3562  if test "$coin_debug_compile" = "true"; then
3563    FFLAGS="$DBG_FFLAGS"
3564  else
3565    FFLAGS="$OPT_FFLAGS"
3566  fi
3567else
3568  FFLAGS="$FFLAGS $ADD_FFLAGS"
3569  if test x${DBG_FFLAGS+set} != xset; then
3570    DBG_FFLAGS="$FFLAGS"
3571  fi
3572  if test x${OPT_FFLAGS+set} != xset; then
3573    OPT_FFLAGS="$FFLAGS"
3574  fi
3575fi
3576
3577# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3578case "$FFLAGS" in
3579  *-mno-cygwin*)
3580    if test x${CPPFLAGS+set} != xset ; then
3581      CPPFLAGS="-mno-cygwin"
3582    else
3583      case "$CPPFLAGS" in
3584        *-mno-cygwin*)
3585          ;;
3586        *)
3587          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3588          ;;
3589      esac
3590    fi ;;
3591esac
3592
3593# Try if FFLAGS works
3594if test "$F77" != "unavailable" ; then
3595  cat >conftest.$ac_ext <<_ACEOF
3596      program main
3597      integer i
3598      end
3599_ACEOF
3600rm -f conftest.$ac_objext conftest$ac_exeext
3601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602  (eval $ac_link) 2>conftest.er1
3603  ac_status=$?
3604  grep -v '^ *+' conftest.er1 >conftest.err
3605  rm -f conftest.er1
3606  cat conftest.err >&5
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); } &&
3609         { ac_try='test -z "$ac_f77_werror_flag"
3610                         || test ! -s conftest.err'
3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612  (eval $ac_try) 2>&5
3613  ac_status=$?
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); }; } &&
3616         { ac_try='test -s conftest$ac_exeext'
3617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618  (eval $ac_try) 2>&5
3619  ac_status=$?
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); }; }; then
3622  :
3623else
3624  echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627FFLAGS=
3628fi
3629rm -f conftest.err conftest.$ac_objext \
3630      conftest$ac_exeext conftest.$ac_ext
3631  if test -z "$FFLAGS"; then
3632    { 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
3633echo "$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;}
3634    FFLAGS='-O'
3635    cat >conftest.$ac_ext <<_ACEOF
3636      program main
3637      integer i
3638      end
3639_ACEOF
3640rm -f conftest.$ac_objext conftest$ac_exeext
3641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3642  (eval $ac_link) 2>conftest.er1
3643  ac_status=$?
3644  grep -v '^ *+' conftest.er1 >conftest.err
3645  rm -f conftest.er1
3646  cat conftest.err >&5
3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648  (exit $ac_status); } &&
3649         { ac_try='test -z "$ac_f77_werror_flag"
3650                         || test ! -s conftest.err'
3651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652  (eval $ac_try) 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; } &&
3656         { ac_try='test -s conftest$ac_exeext'
3657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658  (eval $ac_try) 2>&5
3659  ac_status=$?
3660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661  (exit $ac_status); }; }; then
3662  :
3663else
3664  echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667FFLAGS=
3668fi
3669rm -f conftest.err conftest.$ac_objext \
3670      conftest$ac_exeext conftest.$ac_ext
3671    if test -z "$FFLAGS"; then
3672      { 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
3673echo "$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;}
3674    fi
3675  fi
3676fi
3677
3678{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3679echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3680
3681
3682if test x"$MPIF77" = x; then :; else
3683  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3684echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3685  F77="$MPIF77"
3686fi
3687
3688case "$F77" in
3689  ifort* | */ifort* | IFORT* | */IFORT*)
3690    case $build in
3691  *-mingw*)
3692    if test "${LD+set}" = set; then :; else
3693      LD=link
3694    fi
3695    ;;
3696 esac
3697 case $enable_doscompile in
3698   msvc)
3699     if test "x${LD+set}" = xset; then :; else
3700       LD=link
3701     fi
3702     ;;
3703 esac
3704
3705    ;;
3706esac
3707
3708ac_ext=c
3709ac_cpp='$CPP $CPPFLAGS'
3710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713
3714
3715
3716# Initialize automake
3717{
3718
3719
3720
3721# START
3722
3723# On Cygwin, building DLLs doesn't work
3724case $build in
3725  *-cygwin*)
3726    coin_disable_shared=yes
3727    platform=Cygwin
3728  ;;
3729  *-mingw*)
3730    coin_disable_shared=yes
3731    platform="Msys"
3732#    case "$CXX" in
3733#      cl*)
3734#        coin_disable_shared=yes
3735#        platform="Msys with cl"
3736#    ;;
3737#    esac
3738  ;;
3739esac
3740if test x"$coin_disable_shared" = xyes; then
3741  if test x"$enable_shared" = xyes; then
3742    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3743echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3744  fi
3745  enable_shared=no
3746fi
3747# By default, we only want the shared objects to be compiled
3748# Check whether --enable-static or --disable-static was given.
3749if test "${enable_static+set}" = set; then
3750  enableval="$enable_static"
3751  p=${PACKAGE-default}
3752    case $enableval in
3753    yes) enable_static=yes ;;
3754    no) enable_static=no ;;
3755    *)
3756     enable_static=no
3757      # Look at the argument we got.  We use all the common list separators.
3758      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3759      for pkg in $enableval; do
3760        IFS="$lt_save_ifs"
3761        if test "X$pkg" = "X$p"; then
3762          enable_static=yes
3763        fi
3764      done
3765      IFS="$lt_save_ifs"
3766      ;;
3767    esac
3768else
3769  enable_static=no
3770fi;
3771
3772
3773
3774
3775# Initialize automake
3776echo "$as_me:$LINENO: checking for egrep" >&5
3777echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3778if test "${ac_cv_prog_egrep+set}" = set; then
3779  echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3782    then ac_cv_prog_egrep='grep -E'
3783    else ac_cv_prog_egrep='egrep'
3784    fi
3785fi
3786echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3787echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3788 EGREP=$ac_cv_prog_egrep
3789
3790
3791am__api_version="1.9"
3792# Find a good install program.  We prefer a C program (faster),
3793# so one script is as good as another.  But avoid the broken or
3794# incompatible versions:
3795# SysV /etc/install, /usr/sbin/install
3796# SunOS /usr/etc/install
3797# IRIX /sbin/install
3798# AIX /bin/install
3799# AmigaOS /C/install, which installs bootblocks on floppy discs
3800# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3801# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3802# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3803# OS/2's system install, which has a completely different semantic
3804# ./install, which can be erroneously created by make from ./install.sh.
3805echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3806echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3807if test -z "$INSTALL"; then
3808if test "${ac_cv_path_install+set}" = set; then
3809  echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH
3813do
3814  IFS=$as_save_IFS
3815  test -z "$as_dir" && as_dir=.
3816  # Account for people who put trailing slashes in PATH elements.
3817case $as_dir/ in
3818  ./ | .// | /cC/* | \
3819  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3820  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3821  /usr/ucb/* ) ;;
3822  *)
3823    # OSF1 and SCO ODT 3.0 have their own names for install.
3824    # Don't use installbsd from OSF since it installs stuff as root
3825    # by default.
3826    for ac_prog in ginstall scoinst install; do
3827      for ac_exec_ext in '' $ac_executable_extensions; do
3828        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3829          if test $ac_prog = install &&
3830            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3831            # AIX install.  It has an incompatible calling convention.
3832            :
3833          elif test $ac_prog = install &&
3834            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3835            # program-specific install script used by HP pwplus--don't use.
3836            :
3837          else
3838            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3839            break 3
3840          fi
3841        fi
3842      done
3843    done
3844    ;;
3845esac
3846done
3847
3848
3849fi
3850  if test "${ac_cv_path_install+set}" = set; then
3851    INSTALL=$ac_cv_path_install
3852  else
3853    # As a last resort, use the slow shell script.  We don't cache a
3854    # path for INSTALL within a source directory, because that will
3855    # break other packages using the cache if that directory is
3856    # removed, or if the path is relative.
3857    INSTALL=$ac_install_sh
3858  fi
3859fi
3860echo "$as_me:$LINENO: result: $INSTALL" >&5
3861echo "${ECHO_T}$INSTALL" >&6
3862
3863# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3864# It thinks the first close brace ends the variable substitution.
3865test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3866
3867test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3868
3869test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3870
3871echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3872echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3873# Just in case
3874sleep 1
3875echo timestamp > conftest.file
3876# Do `set' in a subshell so we don't clobber the current shell's
3877# arguments.  Must try -L first in case configure is actually a
3878# symlink; some systems play weird games with the mod time of symlinks
3879# (eg FreeBSD returns the mod time of the symlink's containing
3880# directory).
3881if (
3882   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3883   if test "$*" = "X"; then
3884      # -L didn't work.
3885      set X `ls -t $srcdir/configure conftest.file`
3886   fi
3887   rm -f conftest.file
3888   if test "$*" != "X $srcdir/configure conftest.file" \
3889      && test "$*" != "X conftest.file $srcdir/configure"; then
3890
3891      # If neither matched, then we have a broken ls.  This can happen
3892      # if, for instance, CONFIG_SHELL is bash and it inherits a
3893      # broken ls alias from the environment.  This has actually
3894      # happened.  Such a system could not be considered "sane".
3895      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3896alias in your environment" >&5
3897echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3898alias in your environment" >&2;}
3899   { (exit 1); exit 1; }; }
3900   fi
3901
3902   test "$2" = conftest.file
3903   )
3904then
3905   # Ok.
3906   :
3907else
3908   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3909Check your system clock" >&5
3910echo "$as_me: error: newly created file is older than distributed files!
3911Check your system clock" >&2;}
3912   { (exit 1); exit 1; }; }
3913fi
3914echo "$as_me:$LINENO: result: yes" >&5
3915echo "${ECHO_T}yes" >&6
3916test "$program_prefix" != NONE &&
3917  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3918# Use a double $ so make ignores it.
3919test "$program_suffix" != NONE &&
3920  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3921# Double any \ or $.  echo might interpret backslashes.
3922# By default was `s,x,x', remove it if useless.
3923cat <<\_ACEOF >conftest.sed
3924s/[\\$]/&&/g;s/;s,x,x,$//
3925_ACEOF
3926program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3927rm conftest.sed
3928
3929# expand $ac_aux_dir to an absolute path
3930am_aux_dir=`cd $ac_aux_dir && pwd`
3931
3932test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3933# Use eval to expand $SHELL
3934if eval "$MISSING --run true"; then
3935  am_missing_run="$MISSING --run "
3936else
3937  am_missing_run=
3938  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3939echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3940fi
3941
3942if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3943  # We used to keeping the `.' as first argument, in order to
3944  # allow $(mkdir_p) to be used without argument.  As in
3945  #   $(mkdir_p) $(somedir)
3946  # where $(somedir) is conditionally defined.  However this is wrong
3947  # for two reasons:
3948  #  1. if the package is installed by a user who cannot write `.'
3949  #     make install will fail,
3950  #  2. the above comment should most certainly read
3951  #     $(mkdir_p) $(DESTDIR)$(somedir)
3952  #     so it does not work when $(somedir) is undefined and
3953  #     $(DESTDIR) is not.
3954  #  To support the latter case, we have to write
3955  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3956  #  so the `.' trick is pointless.
3957  mkdir_p='mkdir -p --'
3958else
3959  # On NextStep and OpenStep, the `mkdir' command does not
3960  # recognize any option.  It will interpret all options as
3961  # directories to create, and then abort because `.' already
3962  # exists.
3963  for d in ./-p ./--version;
3964  do
3965    test -d $d && rmdir $d
3966  done
3967  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3968  if test -f "$ac_aux_dir/mkinstalldirs"; then
3969    mkdir_p='$(mkinstalldirs)'
3970  else
3971    mkdir_p='$(install_sh) -d'
3972  fi
3973fi
3974
3975for ac_prog in gawk mawk nawk awk
3976do
3977  # Extract the first word of "$ac_prog", so it can be a program name with args.
3978set dummy $ac_prog; ac_word=$2
3979echo "$as_me:$LINENO: checking for $ac_word" >&5
3980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3981if test "${ac_cv_prog_AWK+set}" = set; then
3982  echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984  if test -n "$AWK"; then
3985  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3986else
3987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988for as_dir in $PATH
3989do
3990  IFS=$as_save_IFS
3991  test -z "$as_dir" && as_dir=.
3992  for ac_exec_ext in '' $ac_executable_extensions; do
3993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3994    ac_cv_prog_AWK="$ac_prog"
3995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3996    break 2
3997  fi
3998done
3999done
4000
4001fi
4002fi
4003AWK=$ac_cv_prog_AWK
4004if test -n "$AWK"; then
4005  echo "$as_me:$LINENO: result: $AWK" >&5
4006echo "${ECHO_T}$AWK" >&6
4007else
4008  echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6
4010fi
4011
4012  test -n "$AWK" && break
4013done
4014
4015echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4016echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4017set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4018if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4019  echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021  cat >conftest.make <<\_ACEOF
4022all:
4023        @echo 'ac_maketemp="$(MAKE)"'
4024_ACEOF
4025# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4026eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4027if test -n "$ac_maketemp"; then
4028  eval ac_cv_prog_make_${ac_make}_set=yes
4029else
4030  eval ac_cv_prog_make_${ac_make}_set=no
4031fi
4032rm -f conftest.make
4033fi
4034if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4035  echo "$as_me:$LINENO: result: yes" >&5
4036echo "${ECHO_T}yes" >&6
4037  SET_MAKE=
4038else
4039  echo "$as_me:$LINENO: result: no" >&5
4040echo "${ECHO_T}no" >&6
4041  SET_MAKE="MAKE=${MAKE-make}"
4042fi
4043
4044rm -rf .tst 2>/dev/null
4045mkdir .tst 2>/dev/null
4046if test -d .tst; then
4047  am__leading_dot=.
4048else
4049  am__leading_dot=_
4050fi
4051rmdir .tst 2>/dev/null
4052
4053DEPDIR="${am__leading_dot}deps"
4054
4055          ac_config_commands="$ac_config_commands depfiles"
4056
4057
4058am_make=${MAKE-make}
4059cat > confinc << 'END'
4060am__doit:
4061        @echo done
4062.PHONY: am__doit
4063END
4064# If we don't find an include directive, just comment out the code.
4065echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4066echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4067am__include="#"
4068am__quote=
4069_am_result=none
4070# First try GNU make style include.
4071echo "include confinc" > confmf
4072# We grep out `Entering directory' and `Leaving directory'
4073# messages which can occur if `w' ends up in MAKEFLAGS.
4074# In particular we don't look at `^make:' because GNU make might
4075# be invoked under some other name (usually "gmake"), in which
4076# case it prints its new name instead of `make'.
4077if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4078   am__include=include
4079   am__quote=
4080   _am_result=GNU
4081fi
4082# Now try BSD make style include.
4083if test "$am__include" = "#"; then
4084   echo '.include "confinc"' > confmf
4085   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4086      am__include=.include
4087      am__quote="\""
4088      _am_result=BSD
4089   fi
4090fi
4091
4092
4093echo "$as_me:$LINENO: result: $_am_result" >&5
4094echo "${ECHO_T}$_am_result" >&6
4095rm -f confinc confmf
4096
4097# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4098if test "${enable_dependency_tracking+set}" = set; then
4099  enableval="$enable_dependency_tracking"
4100
4101fi;
4102if test "x$enable_dependency_tracking" != xno; then
4103  am_depcomp="$ac_aux_dir/depcomp"
4104  AMDEPBACKSLASH='\'
4105fi
4106
4107
4108if test "x$enable_dependency_tracking" != xno; then
4109  AMDEP_TRUE=
4110  AMDEP_FALSE='#'
4111else
4112  AMDEP_TRUE='#'
4113  AMDEP_FALSE=
4114fi
4115
4116
4117
4118
4119
4120# AC_MSG_NOTICE([Beginning automake initialisation.])
4121# Stuff for automake
4122# test to see if srcdir already configured
4123if test "`cd $srcdir && pwd`" != "`pwd`" &&
4124   test -f $srcdir/config.status; then
4125  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4126echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4127   { (exit 1); exit 1; }; }
4128fi
4129
4130# test whether we have cygpath
4131if test -z "$CYGPATH_W"; then
4132  if (cygpath --version) >/dev/null 2>/dev/null; then
4133    CYGPATH_W='cygpath -w'
4134  else
4135    CYGPATH_W=echo
4136  fi
4137fi
4138
4139
4140# Define the identity of the package.
4141 PACKAGE='thirdpartyblas'
4142 VERSION='0.0'
4143
4144
4145cat >>confdefs.h <<_ACEOF
4146#define PACKAGE "$PACKAGE"
4147_ACEOF
4148
4149
4150cat >>confdefs.h <<_ACEOF
4151#define VERSION "$VERSION"
4152_ACEOF
4153
4154# Some tools Automake needs.
4155
4156ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4157
4158
4159AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4160
4161
4162AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4163
4164
4165AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4166
4167
4168MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4169
4170install_sh=${install_sh-"$am_aux_dir/install-sh"}
4171
4172# Installed binaries are usually stripped using `strip' when the user
4173# run `make install-strip'.  However `strip' might not be the right
4174# tool to use in cross-compilation environments, therefore Automake
4175# will honor the `STRIP' environment variable to overrule this program.
4176if test "$cross_compiling" != no; then
4177  if test -n "$ac_tool_prefix"; then
4178  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4179set dummy ${ac_tool_prefix}strip; ac_word=$2
4180echo "$as_me:$LINENO: checking for $ac_word" >&5
4181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182if test "${ac_cv_prog_STRIP+set}" = set; then
4183  echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185  if test -n "$STRIP"; then
4186  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4187else
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191  IFS=$as_save_IFS
4192  test -z "$as_dir" && as_dir=.
4193  for ac_exec_ext in '' $ac_executable_extensions; do
4194  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197    break 2
4198  fi
4199done
4200done
4201
4202fi
4203fi
4204STRIP=$ac_cv_prog_STRIP
4205if test -n "$STRIP"; then
4206  echo "$as_me:$LINENO: result: $STRIP" >&5
4207echo "${ECHO_T}$STRIP" >&6
4208else
4209  echo "$as_me:$LINENO: result: no" >&5
4210echo "${ECHO_T}no" >&6
4211fi
4212
4213fi
4214if test -z "$ac_cv_prog_STRIP"; then
4215  ac_ct_STRIP=$STRIP
4216  # Extract the first word of "strip", so it can be a program name with args.
4217set dummy strip; ac_word=$2
4218echo "$as_me:$LINENO: checking for $ac_word" >&5
4219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4221  echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223  if test -n "$ac_ct_STRIP"; then
4224  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4225else
4226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227for as_dir in $PATH
4228do
4229  IFS=$as_save_IFS
4230  test -z "$as_dir" && as_dir=.
4231  for ac_exec_ext in '' $ac_executable_extensions; do
4232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233    ac_cv_prog_ac_ct_STRIP="strip"
4234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235    break 2
4236  fi
4237done
4238done
4239
4240  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4241fi
4242fi
4243ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4244if test -n "$ac_ct_STRIP"; then
4245  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4246echo "${ECHO_T}$ac_ct_STRIP" >&6
4247else
4248  echo "$as_me:$LINENO: result: no" >&5
4249echo "${ECHO_T}no" >&6
4250fi
4251
4252  STRIP=$ac_ct_STRIP
4253else
4254  STRIP="$ac_cv_prog_STRIP"
4255fi
4256
4257fi
4258INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4259
4260# We need awk for the "check" target.  The system "awk" is bad on
4261# some platforms.
4262# Always define AMTAR for backward compatibility.
4263
4264AMTAR=${AMTAR-"${am_missing_run}tar"}
4265
4266am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4267
4268
4269
4270
4271depcc="$CC"   am_compiler_list=
4272
4273echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4274echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4275if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4276  echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4279  # We make a subdir and do the tests there.  Otherwise we can end up
4280  # making bogus files that we don't know about and never remove.  For
4281  # instance it was reported that on HP-UX the gcc test will end up
4282  # making a dummy file named `D' -- because `-MD' means `put the output
4283  # in D'.
4284  mkdir conftest.dir
4285  # Copy depcomp to subdir because otherwise we won't find it if we're
4286  # using a relative directory.
4287  cp "$am_depcomp" conftest.dir
4288  cd conftest.dir
4289  # We will build objects and dependencies in a subdirectory because
4290  # it helps to detect inapplicable dependency modes.  For instance
4291  # both Tru64's cc and ICC support -MD to output dependencies as a
4292  # side effect of compilation, but ICC will put the dependencies in
4293  # the current directory while Tru64 will put them in the object
4294  # directory.
4295  mkdir sub
4296
4297  am_cv_CC_dependencies_compiler_type=none
4298  if test "$am_compiler_list" = ""; then
4299     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4300  fi
4301  for depmode in $am_compiler_list; do
4302    # Setup a source with many dependencies, because some compilers
4303    # like to wrap large dependency lists on column 80 (with \), and
4304    # we should not choose a depcomp mode which is confused by this.
4305    #
4306    # We need to recreate these files for each test, as the compiler may
4307    # overwrite some of them when testing with obscure command lines.
4308    # This happens at least with the AIX C compiler.
4309    : > sub/conftest.c
4310    for i in 1 2 3 4 5 6; do
4311      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4312      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4313      # Solaris 8's {/usr,}/bin/sh.
4314      touch sub/conftst$i.h
4315    done
4316    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4317
4318    case $depmode in
4319    nosideeffect)
4320      # after this tag, mechanisms are not by side-effect, so they'll
4321      # only be used when explicitly requested
4322      if test "x$enable_dependency_tracking" = xyes; then
4323        continue
4324      else
4325        break
4326      fi
4327      ;;
4328    none) break ;;
4329    esac
4330    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4331    # mode.  It turns out that the SunPro C++ compiler does not properly
4332    # handle `-M -o', and we need to detect this.
4333    if depmode=$depmode \
4334       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4335       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4336       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4337         >/dev/null 2>conftest.err &&
4338       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4339       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4340       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4341      # icc doesn't choke on unknown options, it will just issue warnings
4342      # or remarks (even with -Werror).  So we grep stderr for any message
4343      # that says an option was ignored or not supported.
4344      # When given -MP, icc 7.0 and 7.1 complain thusly:
4345      #   icc: Command line warning: ignoring option '-M'; no argument required
4346      # The diagnosis changed in icc 8.0:
4347      #   icc: Command line remark: option '-MP' not supported
4348      if (grep 'ignoring option' conftest.err ||
4349          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4350        am_cv_CC_dependencies_compiler_type=$depmode
4351        break
4352      fi
4353    fi
4354  done
4355
4356  cd ..
4357  rm -rf conftest.dir
4358else
4359  am_cv_CC_dependencies_compiler_type=none
4360fi
4361
4362fi
4363echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4364echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4365CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4366
4367
4368
4369if
4370  test "x$enable_dependency_tracking" != xno \
4371  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4372  am__fastdepCC_TRUE=
4373  am__fastdepCC_FALSE='#'
4374else
4375  am__fastdepCC_TRUE='#'
4376  am__fastdepCC_FALSE=
4377fi
4378
4379
4380
4381echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4382echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4383    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4384if test "${enable_maintainer_mode+set}" = set; then
4385  enableval="$enable_maintainer_mode"
4386  USE_MAINTAINER_MODE=$enableval
4387else
4388  USE_MAINTAINER_MODE=no
4389fi;
4390  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4391echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4392
4393
4394if test $USE_MAINTAINER_MODE = yes; then
4395  MAINTAINER_MODE_TRUE=
4396  MAINTAINER_MODE_FALSE='#'
4397else
4398  MAINTAINER_MODE_TRUE='#'
4399  MAINTAINER_MODE_FALSE=
4400fi
4401
4402  MAINT=$MAINTAINER_MODE_TRUE
4403
4404
4405
4406coin_have_externals=no
4407if test "$enable_maintainer_mode" = yes; then
4408
4409  # If maintainer mode is chosen, we make sure that the correct versions
4410  # of the tools are used, and that we know where libtool.m4 is (to
4411  # recreate acinclude.m4)
4412
4413
4414  LIBTOOLM4=
4415  # Normally, $HOME
4416  AUTOTOOLS_DFLT=$HOME
4417
4418  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4419echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4420if test "${ac_cv_use_correct_autotools+set}" = set; then
4421  echo $ECHO_N "(cached) $ECHO_C" >&6
4422else
4423  ac_cv_use_correct_autotools=check
4424fi
4425echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4426echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4427
4428  if test $ac_cv_use_correct_autotools = check; then
4429    ac_cv_use_correct_autotools=yes
4430    # Check if we have autoconf
4431    # Extract the first word of "autoconf", so it can be a program name with args.
4432set dummy autoconf; ac_word=$2
4433echo "$as_me:$LINENO: checking for $ac_word" >&5
4434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4435if test "${ac_cv_prog_have_autoconf+set}" = set; then
4436  echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438  if test -n "$have_autoconf"; then
4439  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4440else
4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444  IFS=$as_save_IFS
4445  test -z "$as_dir" && as_dir=.
4446  for ac_exec_ext in '' $ac_executable_extensions; do
4447  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448    ac_cv_prog_have_autoconf="yes"
4449    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450    break 2
4451  fi
4452done
4453done
4454
4455  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4456fi
4457fi
4458have_autoconf=$ac_cv_prog_have_autoconf
4459if test -n "$have_autoconf"; then
4460  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4461echo "${ECHO_T}$have_autoconf" >&6
4462else
4463  echo "$as_me:$LINENO: result: no" >&5
4464echo "${ECHO_T}no" >&6
4465fi
4466
4467    if test $have_autoconf = no; then
4468      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4469echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4470   { (exit 1); exit 1; }; }
4471    fi
4472
4473    # Check whether autoconf is the correct version
4474    correct_version='2.59'
4475    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4476    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4477echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4478    autoconf --version > confauto.out 2>&1
4479    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4480      echo "$as_me:$LINENO: result: yes" >&5
4481echo "${ECHO_T}yes" >&6
4482    else
4483      rm -f confauto.out
4484      echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6
4486      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4487echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4488   { (exit 1); exit 1; }; }
4489    fi
4490    rm -f confauto.out
4491
4492    # Check if the executable autoconf is picked up from the correct location
4493    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4494echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4495    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4496    autoconf_dir=`cd $autoconf_dir; pwd`
4497    if test x$AUTOTOOLS_DIR = x; then
4498      want_dir=$AUTOTOOLS_DFLT/bin
4499    else
4500      want_dir=$AUTOTOOLS_DIR/bin
4501    fi
4502    if test $autoconf_dir = `cd $want_dir; pwd`; then
4503      echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
4505    else
4506      rm -f confauto.out
4507      echo "$as_me:$LINENO: result: no" >&5
4508echo "${ECHO_T}no" >&6
4509      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4510echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4511   { (exit 1); exit 1; }; }
4512    fi
4513
4514    # Check if we have automake
4515    # Extract the first word of "automake", so it can be a program name with args.
4516set dummy automake; ac_word=$2
4517echo "$as_me:$LINENO: checking for $ac_word" >&5
4518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519if test "${ac_cv_prog_have_automake+set}" = set; then
4520  echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522  if test -n "$have_automake"; then
4523  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4524else
4525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH
4527do
4528  IFS=$as_save_IFS
4529  test -z "$as_dir" && as_dir=.
4530  for ac_exec_ext in '' $ac_executable_extensions; do
4531  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532    ac_cv_prog_have_automake="yes"
4533    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534    break 2
4535  fi
4536done
4537done
4538
4539  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4540fi
4541fi
4542have_automake=$ac_cv_prog_have_automake
4543if test -n "$have_automake"; then
4544  echo "$as_me:$LINENO: result: $have_automake" >&5
4545echo "${ECHO_T}$have_automake" >&6
4546else
4547  echo "$as_me:$LINENO: result: no" >&5
4548echo "${ECHO_T}no" >&6
4549fi
4550
4551    if test $have_automake = no; then
4552      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4553echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4554   { (exit 1); exit 1; }; }
4555    fi
4556
4557    # Check whether automake is the correct version
4558    correct_version='1.9.6'
4559    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4560    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4561echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4562    automake --version > confauto.out 2>&1
4563    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4564      echo "$as_me:$LINENO: result: yes" >&5
4565echo "${ECHO_T}yes" >&6
4566    else
4567      rm -f confauto.out
4568      echo "$as_me:$LINENO: result: no" >&5
4569echo "${ECHO_T}no" >&6
4570      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4571echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4572   { (exit 1); exit 1; }; }
4573    fi
4574    rm -f confauto.out
4575
4576    # Check if the executable automake is picked up from the correct location
4577    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4578echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4579    automake_dir=`which automake | sed -e 's=/automake=='`
4580    automake_dir=`cd $automake_dir; pwd`
4581    if test x$AUTOTOOLS_DIR = x; then
4582      want_dir=$AUTOTOOLS_DFLT/bin
4583    else
4584      want_dir=$AUTOTOOLS_DIR/bin
4585    fi
4586    if test $automake_dir = `cd $want_dir; pwd`; then
4587      echo "$as_me:$LINENO: result: yes" >&5
4588echo "${ECHO_T}yes" >&6
4589    else
4590      rm -f confauto.out
4591      echo "$as_me:$LINENO: result: no" >&5
4592echo "${ECHO_T}no" >&6
4593      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4594echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4595   { (exit 1); exit 1; }; }
4596    fi
4597
4598    # Check if this is the correct version of libtool (with escaped dots)
4599    if test x$AUTOTOOLS_DIR = x; then
4600      want_dir=$AUTOTOOLS_DFLT/share
4601    else
4602      want_dir=$AUTOTOOLS_DIR/share
4603    fi
4604    correct_version='1.5.22'
4605    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4606    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4607echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4608echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4609if eval "test \"\${$as_ac_File+set}\" = set"; then
4610  echo $ECHO_N "(cached) $ECHO_C" >&6
4611else
4612  test "$cross_compiling" = yes &&
4613  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4614echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4615   { (exit 1); exit 1; }; }
4616if test -r "$want_dir/libtool/ltmain.sh"; then
4617  eval "$as_ac_File=yes"
4618else
4619  eval "$as_ac_File=no"
4620fi
4621fi
4622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4623echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4624if test `eval echo '${'$as_ac_File'}'` = yes; then
4625  have_ltmain=yes
4626else
4627  have_ltmain=no
4628fi
4629
4630    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4631echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4632    if test $have_ltmain = yes; then
4633    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4634        echo "$as_me:$LINENO: result: yes" >&5
4635echo "${ECHO_T}yes" >&6
4636      else
4637        echo "$as_me:$LINENO: result: no" >&5
4638echo "${ECHO_T}no" >&6
4639        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4640echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4641   { (exit 1); exit 1; }; }
4642      fi
4643    else
4644      echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6
4646      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4647echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4648   { (exit 1); exit 1; }; }
4649    fi
4650  fi
4651
4652  # Check if we can find the libtool file
4653  if test x$AUTOTOOLS_DIR = x; then
4654    want_dir=$AUTOTOOLS_DFLT/share
4655  else
4656    want_dir=$AUTOTOOLS_DIR/share
4657  fi
4658  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4659echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4660echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4661if eval "test \"\${$as_ac_File+set}\" = set"; then
4662  echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664  test "$cross_compiling" = yes &&
4665  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4666echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4667   { (exit 1); exit 1; }; }
4668if test -r "$want_dir/aclocal/libtool.m4"; then
4669  eval "$as_ac_File=yes"
4670else
4671  eval "$as_ac_File=no"
4672fi
4673fi
4674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4675echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4676if test `eval echo '${'$as_ac_File'}'` = yes; then
4677  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4678else
4679  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4680echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4681   { (exit 1); exit 1; }; }
4682fi
4683
4684
4685  # Check if we have an Externals file
4686  if test -r $srcdir/Externals; then
4687    coin_have_externals=yes
4688  fi
4689  # Check if subversion is installed and understands https
4690  # Extract the first word of "svn", so it can be a program name with args.
4691set dummy svn; ac_word=$2
4692echo "$as_me:$LINENO: checking for $ac_word" >&5
4693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4694if test "${ac_cv_prog_have_svn+set}" = set; then
4695  echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697  if test -n "$have_svn"; then
4698  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703  IFS=$as_save_IFS
4704  test -z "$as_dir" && as_dir=.
4705  for ac_exec_ext in '' $ac_executable_extensions; do
4706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707    ac_cv_prog_have_svn="yes"
4708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709    break 2
4710  fi
4711done
4712done
4713
4714  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4715fi
4716fi
4717have_svn=$ac_cv_prog_have_svn
4718if test -n "$have_svn"; then
4719  echo "$as_me:$LINENO: result: $have_svn" >&5
4720echo "${ECHO_T}$have_svn" >&6
4721else
4722  echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6
4724fi
4725
4726  if test x$have_svn = xyes; then
4727    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4728echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4729if test "${ac_cv_svn_understands_https+set}" = set; then
4730  echo $ECHO_N "(cached) $ECHO_C" >&6
4731else
4732  svn --version > confauto.out 2>&1
4733                    if $EGREP https confauto.out >/dev/null 2>&1; then
4734                      ac_cv_svn_understands_https=yes
4735                    else
4736                      ac_cv_svn_understands_https=no
4737                      have_svn=no
4738                      ac_cv_prog_have_svn=no
4739                    fi
4740                    rm -f confauto.out
4741fi
4742echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4743echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4744  fi
4745
4746  # Find the location of the BuildTools directory
4747  BUILDTOOLSDIR=
4748  if test -r $srcdir/BuildTools/coin.m4; then
4749    BUILDTOOLSDIR=$srcdir/BuildTools
4750  else
4751    if test -r $srcdir/../BuildTools/coin.m4; then
4752      BUILDTOOLSDIR=$srcdir/../BuildTools
4753    else
4754      if test -r $srcdir/../../BuildTools/coin.m4; then
4755        BUILDTOOLSDIR=$srcdir/../../BuildTools
4756      else
4757        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4758echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4759   { (exit 1); exit 1; }; }
4760      fi
4761    fi
4762  fi
4763
4764
4765  # The following variable is set to the name of the directory where
4766  # the autotool scripts are located
4767
4768  AUX_DIR=$ac_aux_dir
4769fi
4770
4771# helpful variable for the base directory of this package
4772abs_source_dir=`cd $srcdir; pwd`
4773
4774
4775# Stuff for example Makefiles
4776if test x$prefix = xNONE; then
4777  full_prefix=$ac_default_prefix
4778else
4779  full_prefix=$prefix
4780fi
4781full_prefix=`cd $full_prefix ; pwd`
4782
4783abs_lib_dir=$full_prefix/lib
4784
4785abs_include_dir=$full_prefix/include
4786
4787abs_bin_dir=$full_prefix/bin
4788
4789
4790
4791if test $coin_have_externals = yes && test x$have_svn = xyes; then
4792  HAVE_EXTERNALS_TRUE=
4793  HAVE_EXTERNALS_FALSE='#'
4794else
4795  HAVE_EXTERNALS_TRUE='#'
4796  HAVE_EXTERNALS_FALSE=
4797fi
4798
4799
4800# AC_MSG_NOTICE([End automake initialisation.])
4801
4802
4803
4804LIBTOOL=
4805if test -r ../libtool; then
4806  coin_config_dir=..
4807  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4808fi
4809if test "x$LIBTOOL" = x; then
4810  if test -r ../../libtool; then
4811    coin_config_dir=../..
4812    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4813  fi
4814fi
4815
4816if test "x$LIBTOOL" = x; then
4817# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4818  # Stuff for libtool
4819  # Check whether --enable-shared or --disable-shared was given.
4820if test "${enable_shared+set}" = set; then
4821  enableval="$enable_shared"
4822  p=${PACKAGE-default}
4823    case $enableval in
4824    yes) enable_shared=yes ;;
4825    no) enable_shared=no ;;
4826    *)
4827      enable_shared=no
4828      # Look at the argument we got.  We use all the common list separators.
4829      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4830      for pkg in $enableval; do
4831        IFS="$lt_save_ifs"
4832        if test "X$pkg" = "X$p"; then
4833          enable_shared=yes
4834        fi
4835      done
4836      IFS="$lt_save_ifs"
4837      ;;
4838    esac
4839else
4840  enable_shared=yes
4841fi;
4842
4843# Check whether --enable-fast-install or --disable-fast-install was given.
4844if test "${enable_fast_install+set}" = set; then
4845  enableval="$enable_fast_install"
4846  p=${PACKAGE-default}
4847    case $enableval in
4848    yes) enable_fast_install=yes ;;
4849    no) enable_fast_install=no ;;
4850    *)
4851      enable_fast_install=no
4852      # Look at the argument we got.  We use all the common list separators.
4853      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4854      for pkg in $enableval; do
4855        IFS="$lt_save_ifs"
4856        if test "X$pkg" = "X$p"; then
4857          enable_fast_install=yes
4858        fi
4859      done
4860      IFS="$lt_save_ifs"
4861      ;;
4862    esac
4863else
4864  enable_fast_install=yes
4865fi;
4866
4867echo "$as_me:$LINENO: checking host system type" >&5
4868echo $ECHO_N "checking host system type... $ECHO_C" >&6
4869if test "${ac_cv_host+set}" = set; then
4870  echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872  ac_cv_host_alias=$host_alias
4873test -z "$ac_cv_host_alias" &&
4874  ac_cv_host_alias=$ac_cv_build_alias
4875ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4876  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4877echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4878   { (exit 1); exit 1; }; }
4879
4880fi
4881echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4882echo "${ECHO_T}$ac_cv_host" >&6
4883host=$ac_cv_host
4884host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4885host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4886host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4887
4888
4889echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4890echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4891if test "${lt_cv_path_SED+set}" = set; then
4892  echo $ECHO_N "(cached) $ECHO_C" >&6
4893else
4894  # Loop through the user's path and test for sed and gsed.
4895# Then use that list of sed's as ones to test for truncation.
4896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899  IFS=$as_save_IFS
4900  test -z "$as_dir" && as_dir=.
4901  for lt_ac_prog in sed gsed; do
4902    for ac_exec_ext in '' $ac_executable_extensions; do
4903      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4904        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4905      fi
4906    done
4907  done
4908done
4909lt_ac_max=0
4910lt_ac_count=0
4911# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4912# along with /bin/sed that truncates output.
4913for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4914  test ! -f $lt_ac_sed && continue
4915  cat /dev/null > conftest.in
4916  lt_ac_count=0
4917  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4918  # Check for GNU sed and select it if it is found.
4919  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4920    lt_cv_path_SED=$lt_ac_sed
4921    break
4922  fi
4923  while true; do
4924    cat conftest.in conftest.in >conftest.tmp
4925    mv conftest.tmp conftest.in
4926    cp conftest.in conftest.nl
4927    echo >>conftest.nl
4928    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4929    cmp -s conftest.out conftest.nl || break
4930    # 10000 chars as input seems more than enough
4931    test $lt_ac_count -gt 10 && break
4932    lt_ac_count=`expr $lt_ac_count + 1`
4933    if test $lt_ac_count -gt $lt_ac_max; then
4934      lt_ac_max=$lt_ac_count
4935      lt_cv_path_SED=$lt_ac_sed
4936    fi
4937  done
4938done
4939
4940fi
4941
4942SED=$lt_cv_path_SED
4943echo "$as_me:$LINENO: result: $SED" >&5
4944echo "${ECHO_T}$SED" >&6
4945
4946
4947# Check whether --with-gnu-ld or --without-gnu-ld was given.
4948if test "${with_gnu_ld+set}" = set; then
4949  withval="$with_gnu_ld"
4950  test "$withval" = no || with_gnu_ld=yes
4951else
4952  with_gnu_ld=no
4953fi;
4954ac_prog=ld
4955if test "$GCC" = yes; then
4956  # Check if gcc -print-prog-name=ld gives a path.
4957  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4958echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4959  case $host in
4960  *-*-mingw*)
4961    # gcc leaves a trailing carriage return which upsets mingw
4962    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4963  *)
4964    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4965  esac
4966  case $ac_prog in
4967    # Accept absolute paths.
4968    [\\/]* | ?:[\\/]*)
4969      re_direlt='/[^/][^/]*/\.\./'
4970      # Canonicalize the pathname of ld
4971      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4972      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4973        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4974      done
4975      test -z "$LD" && LD="$ac_prog"
4976      ;;
4977  "")
4978    # If it fails, then pretend we aren't using GCC.
4979    ac_prog=ld
4980    ;;
4981  *)
4982    # If it is relative, then search for the first ld in PATH.
4983    with_gnu_ld=unknown
4984    ;;
4985  esac
4986elif test "$with_gnu_ld" = yes; then
4987  echo "$as_me:$LINENO: checking for GNU ld" >&5
4988echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4989else
4990  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4991echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4992fi
4993if test "${lt_cv_path_LD+set}" = set; then
4994  echo $ECHO_N "(cached) $ECHO_C" >&6
4995else
4996  if test -z "$LD"; then
4997  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4998  for ac_dir in $PATH; do
4999    IFS="$lt_save_ifs"
5000    test -z "$ac_dir" && ac_dir=.
5001    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5002      lt_cv_path_LD="$ac_dir/$ac_prog"
5003      # Check to see if the program is GNU ld.  I'd rather use --version,
5004      # but apparently some variants of GNU ld only accept -v.
5005      # Break only if it was the GNU/non-GNU ld that we prefer.
5006      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5007      *GNU* | *'with BFD'*)
5008        test "$with_gnu_ld" != no && break
5009        ;;
5010      *)
5011        test "$with_gnu_ld" != yes && break
5012        ;;
5013      esac
5014    fi
5015  done
5016  IFS="$lt_save_ifs"
5017else
5018  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5019fi
5020fi
5021
5022LD="$lt_cv_path_LD"
5023if test -n "$LD"; then
5024  echo "$as_me:$LINENO: result: $LD" >&5
5025echo "${ECHO_T}$LD" >&6
5026else
5027  echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6
5029fi
5030test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5031echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5032   { (exit 1); exit 1; }; }
5033echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5034echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5035if test "${lt_cv_prog_gnu_ld+set}" = set; then
5036  echo $ECHO_N "(cached) $ECHO_C" >&6
5037else
5038  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5039case `$LD -v 2>&1 </dev/null` in
5040*GNU* | *'with BFD'*)
5041  lt_cv_prog_gnu_ld=yes
5042  ;;
5043*)
5044  lt_cv_prog_gnu_ld=no
5045  ;;
5046esac
5047fi
5048echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5049echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5050with_gnu_ld=$lt_cv_prog_gnu_ld
5051
5052
5053echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5054echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5055if test "${lt_cv_ld_reload_flag+set}" = set; then
5056  echo $ECHO_N "(cached) $ECHO_C" >&6
5057else
5058  lt_cv_ld_reload_flag='-r'
5059fi
5060echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5061echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5062reload_flag=$lt_cv_ld_reload_flag
5063case $reload_flag in
5064"" | " "*) ;;
5065*) reload_flag=" $reload_flag" ;;
5066esac
5067reload_cmds='$LD$reload_flag -o $output$reload_objs'
5068case $host_os in
5069  darwin*)
5070    if test "$GCC" = yes; then
5071      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5072    else
5073      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5074    fi
5075    ;;
5076esac
5077
5078echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5079echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5080if test "${lt_cv_path_NM+set}" = set; then
5081  echo $ECHO_N "(cached) $ECHO_C" >&6
5082else
5083  if test -n "$NM"; then
5084  # Let the user override the test.
5085  lt_cv_path_NM="$NM"
5086else
5087  lt_nm_to_check="${ac_tool_prefix}nm"
5088  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5089    lt_nm_to_check="$lt_nm_to_check nm"
5090  fi
5091  for lt_tmp_nm in $lt_nm_to_check; do
5092    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5093    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5094      IFS="$lt_save_ifs"
5095      test -z "$ac_dir" && ac_dir=.
5096      tmp_nm="$ac_dir/$lt_tmp_nm"
5097      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5098        # Check to see if the nm accepts a BSD-compat flag.
5099        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5100        #   nm: unknown option "B" ignored
5101        # Tru64's nm complains that /dev/null is an invalid object file
5102        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5103        */dev/null* | *'Invalid file or object type'*)
5104          lt_cv_path_NM="$tmp_nm -B"
5105          break
5106          ;;
5107        *)
5108          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5109          */dev/null*)
5110            lt_cv_path_NM="$tmp_nm -p"
5111            break
5112            ;;
5113          *)
5114            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5115            continue # so that we can try to find one that supports BSD flags
5116            ;;
5117          esac
5118          ;;
5119        esac
5120      fi
5121    done
5122    IFS="$lt_save_ifs"
5123  done
5124  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5125fi
5126fi
5127echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5128echo "${ECHO_T}$lt_cv_path_NM" >&6
5129NM="$lt_cv_path_NM"
5130
5131echo "$as_me:$LINENO: checking whether ln -s works" >&5
5132echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5133LN_S=$as_ln_s
5134if test "$LN_S" = "ln -s"; then
5135  echo "$as_me:$LINENO: result: yes" >&5
5136echo "${ECHO_T}yes" >&6
5137else
5138  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5139echo "${ECHO_T}no, using $LN_S" >&6
5140fi
5141
5142echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5143echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5144if test "${lt_cv_deplibs_check_method+set}" = set; then
5145  echo $ECHO_N "(cached) $ECHO_C" >&6
5146else
5147  lt_cv_file_magic_cmd='$MAGIC_CMD'
5148lt_cv_file_magic_test_file=
5149lt_cv_deplibs_check_method='unknown'
5150# Need to set the preceding variable on all platforms that support
5151# interlibrary dependencies.
5152# 'none' -- dependencies not supported.
5153# `unknown' -- same as none, but documents that we really don't know.
5154# 'pass_all' -- all dependencies passed with no checks.
5155# 'test_compile' -- check by making test program.
5156# 'file_magic [[regex]]' -- check by looking for files in library path
5157# which responds to the $file_magic_cmd with a given extended regex.
5158# If you have `file' or equivalent on your system and you're not sure
5159# whether `pass_all' will *always* work, you probably want this one.
5160
5161case $host_os in
5162aix4* | aix5*)
5163  lt_cv_deplibs_check_method=pass_all
5164  ;;
5165
5166beos*)
5167  lt_cv_deplibs_check_method=pass_all
5168  ;;
5169
5170bsdi[45]*)
5171  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5172  lt_cv_file_magic_cmd='/usr/bin/file -L'
5173  lt_cv_file_magic_test_file=/shlib/libc.so
5174  ;;
5175
5176cygwin*)
5177  # func_win32_libid is a shell function defined in ltmain.sh
5178  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5179  lt_cv_file_magic_cmd='func_win32_libid'
5180  ;;
5181
5182mingw* | pw32*)
5183  # Base MSYS/MinGW do not provide the 'file' command needed by
5184  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5185  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5186  lt_cv_file_magic_cmd='$OBJDUMP -f'
5187  ;;
5188
5189darwin* | rhapsody*)
5190  lt_cv_deplibs_check_method=pass_all
5191  ;;
5192
5193freebsd* | kfreebsd*-gnu | dragonfly*)
5194  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5195    case $host_cpu in
5196    i*86 )
5197      # Not sure whether the presence of OpenBSD here was a mistake.
5198      # Let's accept both of them until this is cleared up.
5199      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5200      lt_cv_file_magic_cmd=/usr/bin/file
5201      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5202      ;;
5203    esac
5204  else
5205    lt_cv_deplibs_check_method=pass_all
5206  fi
5207  ;;
5208
5209gnu*)
5210  lt_cv_deplibs_check_method=pass_all
5211  ;;
5212
5213hpux10.20* | hpux11*)
5214  lt_cv_file_magic_cmd=/usr/bin/file
5215  case $host_cpu in
5216  ia64*)
5217    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5218    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5219    ;;
5220  hppa*64*)
5221    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]'
5222    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5223    ;;
5224  *)
5225    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5226    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5227    ;;
5228  esac
5229  ;;
5230
5231interix3*)
5232  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5233  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5234  ;;
5235
5236irix5* | irix6* | nonstopux*)
5237  case $LD in
5238  *-32|*"-32 ") libmagic=32-bit;;
5239  *-n32|*"-n32 ") libmagic=N32;;
5240  *-64|*"-64 ") libmagic=64-bit;;
5241  *) libmagic=never-match;;
5242  esac
5243  lt_cv_deplibs_check_method=pass_all
5244  ;;
5245
5246# This must be Linux ELF.
5247linux*)
5248  lt_cv_deplibs_check_method=pass_all
5249  ;;
5250
5251netbsd*)
5252  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5253    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5254  else
5255    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5256  fi
5257  ;;
5258
5259newos6*)
5260  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5261  lt_cv_file_magic_cmd=/usr/bin/file
5262  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5263  ;;
5264
5265nto-qnx*)
5266  lt_cv_deplibs_check_method=unknown
5267  ;;
5268
5269openbsd*)
5270  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5271    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5272  else
5273    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5274  fi
5275  ;;
5276
5277osf3* | osf4* | osf5*)
5278  lt_cv_deplibs_check_method=pass_all
5279  ;;
5280
5281solaris*)
5282  lt_cv_deplibs_check_method=pass_all
5283  ;;
5284
5285sysv4 | sysv4.3*)
5286  case $host_vendor in
5287  motorola)
5288    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]'
5289    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5290    ;;
5291  ncr)
5292    lt_cv_deplibs_check_method=pass_all
5293    ;;
5294  sequent)
5295    lt_cv_file_magic_cmd='/bin/file'
5296    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5297    ;;
5298  sni)
5299    lt_cv_file_magic_cmd='/bin/file'
5300    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5301    lt_cv_file_magic_test_file=/lib/libc.so
5302    ;;
5303  siemens)
5304    lt_cv_deplibs_check_method=pass_all
5305    ;;
5306  pc)
5307    lt_cv_deplibs_check_method=pass_all
5308    ;;
5309  esac
5310  ;;
5311
5312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5313  lt_cv_deplibs_check_method=pass_all
5314  ;;
5315esac
5316
5317fi
5318echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5319echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5320file_magic_cmd=$lt_cv_file_magic_cmd
5321deplibs_check_method=$lt_cv_deplibs_check_method
5322test -z "$deplibs_check_method" && deplibs_check_method=unknown
5323
5324
5325
5326
5327# If no C compiler was specified, use CC.
5328LTCC=${LTCC-"$CC"}
5329
5330# If no C compiler flags were specified, use CFLAGS.
5331LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5332
5333# Allow CC to be a program name with arguments.
5334compiler=$CC
5335
5336# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5337if test "${enable_libtool_lock+set}" = set; then
5338  enableval="$enable_libtool_lock"
5339
5340fi;
5341test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5342
5343# Some flags need to be propagated to the compiler or linker for good
5344# libtool support.
5345case $host in
5346ia64-*-hpux*)
5347  # Find out which ABI we are using.
5348  echo 'int i;' > conftest.$ac_ext
5349  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5350  (eval $ac_compile) 2>&5
5351  ac_status=$?
5352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353  (exit $ac_status); }; then
5354    case `/usr/bin/file conftest.$ac_objext` in
5355    *ELF-32*)
5356      HPUX_IA64_MODE="32"
5357      ;;
5358    *ELF-64*)
5359      HPUX_IA64_MODE="64"
5360      ;;
5361    esac
5362  fi
5363  rm -rf conftest*
5364  ;;
5365*-*-irix6*)
5366  # Find out which ABI we are using.
5367  echo '#line 5367 "configure"' > conftest.$ac_ext
5368  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369  (eval $ac_compile) 2>&5
5370  ac_status=$?
5371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372  (exit $ac_status); }; then
5373   if test "$lt_cv_prog_gnu_ld" = yes; then
5374    case `/usr/bin/file conftest.$ac_objext` in
5375    *32-bit*)
5376      LD="${LD-ld} -melf32bsmip"
5377      ;;
5378    *N32*)
5379      LD="${LD-ld} -melf32bmipn32"
5380      ;;
5381    *64-bit*)
5382      LD="${LD-ld} -melf64bmip"
5383      ;;
5384    esac
5385   else
5386    case `/usr/bin/file conftest.$ac_objext` in
5387    *32-bit*)
5388      LD="${LD-ld} -32"
5389      ;;
5390    *N32*)
5391      LD="${LD-ld} -n32"
5392      ;;
5393    *64-bit*)
5394      LD="${LD-ld} -64"
5395      ;;
5396    esac
5397   fi
5398  fi
5399  rm -rf conftest*
5400  ;;
5401
5402x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5403  # Find out which ABI we are using.
5404  echo 'int i;' > conftest.$ac_ext
5405  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5406  (eval $ac_compile) 2>&5
5407  ac_status=$?
5408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409  (exit $ac_status); }; then
5410    case `/usr/bin/file conftest.o` in
5411    *32-bit*)
5412      case $host in
5413        x86_64-*linux*)
5414          LD="${LD-ld} -m elf_i386"
5415          ;;
5416        ppc64-*linux*|powerpc64-*linux*)
5417          LD="${LD-ld} -m elf32ppclinux"
5418          ;;
5419        s390x-*linux*)
5420          LD="${LD-ld} -m elf_s390"
5421          ;;
5422        sparc64-*linux*)
5423          LD="${LD-ld} -m elf32_sparc"
5424          ;;
5425      esac
5426      ;;
5427    *64-bit*)
5428      case $host in
5429        x86_64-*linux*)
5430          LD="${LD-ld} -m elf_x86_64"
5431          ;;
5432        ppc*-*linux*|powerpc*-*linux*)
5433          LD="${LD-ld} -m elf64ppc"
5434          ;;
5435        s390*-*linux*)
5436          LD="${LD-ld} -m elf64_s390"
5437          ;;
5438        sparc*-*linux*)
5439          LD="${LD-ld} -m elf64_sparc"
5440          ;;
5441      esac
5442      ;;
5443    esac
5444  fi
5445  rm -rf conftest*
5446  ;;
5447
5448*-*-sco3.2v5*)
5449  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5450  SAVE_CFLAGS="$CFLAGS"
5451  CFLAGS="$CFLAGS -belf"
5452  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5453echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5454if test "${lt_cv_cc_needs_belf+set}" = set; then
5455  echo $ECHO_N "(cached) $ECHO_C" >&6
5456else
5457  ac_ext=c
5458ac_cpp='$CPP $CPPFLAGS'
5459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461ac_compiler_gnu=$ac_cv_c_compiler_gnu
5462
5463     cat >conftest.$ac_ext <<_ACEOF
5464/* confdefs.h.  */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h.  */
5469
5470int
5471main ()
5472{
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478rm -f conftest.$ac_objext conftest$ac_exeext
5479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5480  (eval $ac_link) 2>conftest.er1
5481  ac_status=$?
5482  grep -v '^ *+' conftest.er1 >conftest.err
5483  rm -f conftest.er1
5484  cat conftest.err >&5
5485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486  (exit $ac_status); } &&
5487         { ac_try='test -z "$ac_c_werror_flag"
5488                         || test ! -s conftest.err'
5489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490  (eval $ac_try) 2>&5
5491  ac_status=$?
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); }; } &&
5494         { ac_try='test -s conftest$ac_exeext'
5495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496  (eval $ac_try) 2>&5
5497  ac_status=$?
5498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499  (exit $ac_status); }; }; then
5500  lt_cv_cc_needs_belf=yes
5501else
5502  echo "$as_me: failed program was:" >&5
5503sed 's/^/| /' conftest.$ac_ext >&5
5504
5505lt_cv_cc_needs_belf=no
5506fi
5507rm -f conftest.err conftest.$ac_objext \
5508      conftest$ac_exeext conftest.$ac_ext
5509     ac_ext=c
5510ac_cpp='$CPP $CPPFLAGS'
5511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513ac_compiler_gnu=$ac_cv_c_compiler_gnu
5514
5515fi
5516echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5517echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5518  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5519    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5520    CFLAGS="$SAVE_CFLAGS"
5521  fi
5522  ;;
5523sparc*-*solaris*)
5524  # Find out which ABI we are using.
5525  echo 'int i;' > conftest.$ac_ext
5526  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5527  (eval $ac_compile) 2>&5
5528  ac_status=$?
5529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); }; then
5531    case `/usr/bin/file conftest.o` in
5532    *64-bit*)
5533      case $lt_cv_prog_gnu_ld in
5534      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5535      *)    LD="${LD-ld} -64" ;;
5536      esac
5537      ;;
5538    esac
5539  fi
5540  rm -rf conftest*
5541  ;;
5542
5543
5544esac
5545
5546need_locks="$enable_libtool_lock"
5547
5548
5549ac_ext=c
5550ac_cpp='$CPP $CPPFLAGS'
5551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553ac_compiler_gnu=$ac_cv_c_compiler_gnu
5554echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5555echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5556# On Suns, sometimes $CPP names a directory.
5557if test -n "$CPP" && test -d "$CPP"; then
5558  CPP=
5559fi
5560if test -z "$CPP"; then
5561  if test "${ac_cv_prog_CPP+set}" = set; then
5562  echo $ECHO_N "(cached) $ECHO_C" >&6
5563else
5564      # Double quotes because CPP needs to be expanded
5565    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5566    do
5567      ac_preproc_ok=false
5568for ac_c_preproc_warn_flag in '' yes
5569do
5570  # Use a header file that comes with gcc, so configuring glibc
5571  # with a fresh cross-compiler works.
5572  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5573  # <limits.h> exists even on freestanding compilers.
5574  # On the NeXT, cc -E runs the code through the compiler's parser,
5575  # not just through cpp. "Syntax error" is here to catch this case.
5576  cat >conftest.$ac_ext <<_ACEOF
5577/* confdefs.h.  */
5578_ACEOF
5579cat confdefs.h >>conftest.$ac_ext
5580cat >>conftest.$ac_ext <<_ACEOF
5581/* end confdefs.h.  */
5582#ifdef __STDC__
5583# include <limits.h>
5584#else
5585# include <assert.h>
5586#endif
5587                     Syntax error
5588_ACEOF
5589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5590  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5591  ac_status=$?
5592  grep -v '^ *+' conftest.er1 >conftest.err
5593  rm -f conftest.er1
5594  cat conftest.err >&5
5595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596  (exit $ac_status); } >/dev/null; then
5597  if test -s conftest.err; then
5598    ac_cpp_err=$ac_c_preproc_warn_flag
5599    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5600  else
5601    ac_cpp_err=
5602  fi
5603else
5604  ac_cpp_err=yes
5605fi
5606if test -z "$ac_cpp_err"; then
5607  :
5608else
5609  echo "$as_me: failed program was:" >&5
5610sed 's/^/| /' conftest.$ac_ext >&5
5611
5612  # Broken: fails on valid input.
5613continue
5614fi
5615rm -f conftest.err conftest.$ac_ext
5616
5617  # OK, works on sane cases.  Now check whether non-existent headers
5618  # can be detected and how.
5619  cat >conftest.$ac_ext <<_ACEOF
5620/* confdefs.h.  */
5621_ACEOF
5622cat confdefs.h >>conftest.$ac_ext
5623cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h.  */
5625#include <ac_nonexistent.h>
5626_ACEOF
5627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5628  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5629  ac_status=$?
5630  grep -v '^ *+' conftest.er1 >conftest.err
5631  rm -f conftest.er1
5632  cat conftest.err >&5
5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); } >/dev/null; then
5635  if test -s conftest.err; then
5636    ac_cpp_err=$ac_c_preproc_warn_flag
5637    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5638  else
5639    ac_cpp_err=
5640  fi
5641else
5642  ac_cpp_err=yes
5643fi
5644if test -z "$ac_cpp_err"; then
5645  # Broken: success on invalid input.
5646continue
5647else
5648  echo "$as_me: failed program was:" >&5
5649sed 's/^/| /' conftest.$ac_ext >&5
5650
5651  # Passes both tests.
5652ac_preproc_ok=:
5653break
5654fi
5655rm -f conftest.err conftest.$ac_ext
5656
5657done
5658# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659rm -f conftest.err conftest.$ac_ext
5660if $ac_preproc_ok; then
5661  break
5662fi
5663
5664    done
5665    ac_cv_prog_CPP=$CPP
5666
5667fi
5668  CPP=$ac_cv_prog_CPP
5669else
5670  ac_cv_prog_CPP=$CPP
5671fi
5672echo "$as_me:$LINENO: result: $CPP" >&5
5673echo "${ECHO_T}$CPP" >&6
5674ac_preproc_ok=false
5675for ac_c_preproc_warn_flag in '' yes
5676do
5677  # Use a header file that comes with gcc, so configuring glibc
5678  # with a fresh cross-compiler works.
5679  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5680  # <limits.h> exists even on freestanding compilers.
5681  # On the NeXT, cc -E runs the code through the compiler's parser,
5682  # not just through cpp. "Syntax error" is here to catch this case.
5683  cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h.  */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h.  */
5689#ifdef __STDC__
5690# include <limits.h>
5691#else
5692# include <assert.h>
5693#endif
5694                     Syntax error
5695_ACEOF
5696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5697  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5698  ac_status=$?
5699  grep -v '^ *+' conftest.er1 >conftest.err
5700  rm -f conftest.er1
5701  cat conftest.err >&5
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); } >/dev/null; then
5704  if test -s conftest.err; then
5705    ac_cpp_err=$ac_c_preproc_warn_flag
5706    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5707  else
5708    ac_cpp_err=
5709  fi
5710else
5711  ac_cpp_err=yes
5712fi
5713if test -z "$ac_cpp_err"; then
5714  :
5715else
5716  echo "$as_me: failed program was:" >&5
5717sed 's/^/| /' conftest.$ac_ext >&5
5718
5719  # Broken: fails on valid input.
5720continue
5721fi
5722rm -f conftest.err conftest.$ac_ext
5723
5724  # OK, works on sane cases.  Now check whether non-existent headers
5725  # can be detected and how.
5726  cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h.  */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h.  */
5732#include <ac_nonexistent.h>
5733_ACEOF
5734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5735  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5736  ac_status=$?
5737  grep -v '^ *+' conftest.er1 >conftest.err
5738  rm -f conftest.er1
5739  cat conftest.err >&5
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); } >/dev/null; then
5742  if test -s conftest.err; then
5743    ac_cpp_err=$ac_c_preproc_warn_flag
5744    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5745  else
5746    ac_cpp_err=
5747  fi
5748else
5749  ac_cpp_err=yes
5750fi
5751if test -z "$ac_cpp_err"; then
5752  # Broken: success on invalid input.
5753continue
5754else
5755  echo "$as_me: failed program was:" >&5
5756sed 's/^/| /' conftest.$ac_ext >&5
5757
5758  # Passes both tests.
5759ac_preproc_ok=:
5760break
5761fi
5762rm -f conftest.err conftest.$ac_ext
5763
5764done
5765# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5766rm -f conftest.err conftest.$ac_ext
5767if $ac_preproc_ok; then
5768  :
5769else
5770  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5771See \`config.log' for more details." >&5
5772echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5773See \`config.log' for more details." >&2;}
5774   { (exit 1); exit 1; }; }
5775fi
5776
5777ac_ext=c
5778ac_cpp='$CPP $CPPFLAGS'
5779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781ac_compiler_gnu=$ac_cv_c_compiler_gnu
5782
5783
5784echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5785echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5786if test "${ac_cv_header_stdc+set}" = set; then
5787  echo $ECHO_N "(cached) $ECHO_C" >&6
5788else
5789  cat >conftest.$ac_ext <<_ACEOF
5790/* confdefs.h.  */
5791_ACEOF
5792cat confdefs.h >>conftest.$ac_ext
5793cat >>conftest.$ac_ext <<_ACEOF
5794/* end confdefs.h.  */
5795#include <stdlib.h>
5796#include <stdarg.h>
5797#include <string.h>
5798#include <float.h>
5799
5800int
5801main ()
5802{
5803
5804  ;
5805  return 0;
5806}
5807_ACEOF
5808rm -f conftest.$ac_objext
5809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810  (eval $ac_compile) 2>conftest.er1
5811  ac_status=$?
5812  grep -v '^ *+' conftest.er1 >conftest.err
5813  rm -f conftest.er1
5814  cat conftest.err >&5
5815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816  (exit $ac_status); } &&
5817         { ac_try='test -z "$ac_c_werror_flag"
5818                         || test ! -s conftest.err'
5819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820  (eval $ac_try) 2>&5
5821  ac_status=$?
5822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823  (exit $ac_status); }; } &&
5824         { ac_try='test -s conftest.$ac_objext'
5825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826  (eval $ac_try) 2>&5
5827  ac_status=$?
5828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829  (exit $ac_status); }; }; then
5830  ac_cv_header_stdc=yes
5831else
5832  echo "$as_me: failed program was:" >&5
5833sed 's/^/| /' conftest.$ac_ext >&5
5834
5835ac_cv_header_stdc=no
5836fi
5837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838
5839if test $ac_cv_header_stdc = yes; then
5840  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5841  cat >conftest.$ac_ext <<_ACEOF
5842/* confdefs.h.  */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h.  */
5847#include <string.h>
5848
5849_ACEOF
5850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5851  $EGREP "memchr" >/dev/null 2>&1; then
5852  :
5853else
5854  ac_cv_header_stdc=no
5855fi
5856rm -f conftest*
5857
5858fi
5859
5860if test $ac_cv_header_stdc = yes; then
5861  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5862  cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h.  */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
5867/* end confdefs.h.  */
5868#include <stdlib.h>
5869
5870_ACEOF
5871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5872  $EGREP "free" >/dev/null 2>&1; then
5873  :
5874else
5875  ac_cv_header_stdc=no
5876fi
5877rm -f conftest*
5878
5879fi
5880
5881if test $ac_cv_header_stdc = yes; then
5882  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5883  if test "$cross_compiling" = yes; then
5884  :
5885else
5886  cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h.  */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h.  */
5892#include <ctype.h>
5893#if ((' ' & 0x0FF) == 0x020)
5894# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5895# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5896#else
5897# define ISLOWER(c) \
5898                   (('a' <= (c) && (c) <= 'i') \
5899                     || ('j' <= (c) && (c) <= 'r') \
5900                     || ('s' <= (c) && (c) <= 'z'))
5901# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5902#endif
5903
5904#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5905int
5906main ()
5907{
5908  int i;
5909  for (i = 0; i < 256; i++)
5910    if (XOR (islower (i), ISLOWER (i))
5911        || toupper (i) != TOUPPER (i))
5912      exit(2);
5913  exit (0);
5914}
5915_ACEOF
5916rm -f conftest$ac_exeext
5917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918  (eval $ac_link) 2>&5
5919  ac_status=$?
5920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923  (eval $ac_try) 2>&5
5924  ac_status=$?
5925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926  (exit $ac_status); }; }; then
5927  :
5928else
5929  echo "$as_me: program exited with status $ac_status" >&5
5930echo "$as_me: failed program was:" >&5
5931sed 's/^/| /' conftest.$ac_ext >&5
5932
5933( exit $ac_status )
5934ac_cv_header_stdc=no
5935fi
5936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5937fi
5938fi
5939fi
5940echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5941echo "${ECHO_T}$ac_cv_header_stdc" >&6
5942if test $ac_cv_header_stdc = yes; then
5943
5944cat >>confdefs.h <<\_ACEOF
5945#define STDC_HEADERS 1
5946_ACEOF
5947
5948fi
5949
5950# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5961                  inttypes.h stdint.h unistd.h
5962do
5963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5964echo "$as_me:$LINENO: checking for $ac_header" >&5
5965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5966if eval "test \"\${$as_ac_Header+set}\" = set"; then
5967  echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969  cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h.  */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h.  */
5975$ac_includes_default
5976
5977#include <$ac_header>
5978_ACEOF
5979rm -f conftest.$ac_objext
5980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5981  (eval $ac_compile) 2>conftest.er1
5982  ac_status=$?
5983  grep -v '^ *+' conftest.er1 >conftest.err
5984  rm -f conftest.er1
5985  cat conftest.err >&5
5986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987  (exit $ac_status); } &&
5988         { ac_try='test -z "$ac_c_werror_flag"
5989                         || test ! -s conftest.err'
5990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991  (eval $ac_try) 2>&5
5992  ac_status=$?
5993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994  (exit $ac_status); }; } &&
5995         { ac_try='test -s conftest.$ac_objext'
5996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997  (eval $ac_try) 2>&5
5998  ac_status=$?
5999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000  (exit $ac_status); }; }; then
6001  eval "$as_ac_Header=yes"
6002else
6003  echo "$as_me: failed program was:" >&5
6004sed 's/^/| /' conftest.$ac_ext >&5
6005
6006eval "$as_ac_Header=no"
6007fi
6008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6009fi
6010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6012if test `eval echo '${'$as_ac_Header'}'` = yes; then
6013  cat >>confdefs.h <<_ACEOF
6014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6015_ACEOF
6016
6017fi
6018
6019done
6020
6021
6022
6023for ac_header in dlfcn.h
6024do
6025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6026if eval "test \"\${$as_ac_Header+set}\" = set"; then
6027  echo "$as_me:$LINENO: checking for $ac_header" >&5
6028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6029if eval "test \"\${$as_ac_Header+set}\" = set"; then
6030  echo $ECHO_N "(cached) $ECHO_C" >&6
6031fi
6032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6034else
6035  # Is the header compilable?
6036echo "$as_me:$LINENO: checking $ac_header usability" >&5
6037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6038cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h.  */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h.  */
6044$ac_includes_default
6045#include <$ac_header>
6046_ACEOF
6047rm -f conftest.$ac_objext
6048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049  (eval $ac_compile) 2>conftest.er1
6050  ac_status=$?
6051  grep -v '^ *+' conftest.er1 >conftest.err
6052  rm -f conftest.er1
6053  cat conftest.err >&5
6054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055  (exit $ac_status); } &&
6056         { ac_try='test -z "$ac_c_werror_flag"
6057                         || test ! -s conftest.err'
6058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059  (eval $ac_try) 2>&5
6060  ac_status=$?
6061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062  (exit $ac_status); }; } &&
6063         { ac_try='test -s conftest.$ac_objext'
6064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065  (eval $ac_try) 2>&5
6066  ac_status=$?
6067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); }; }; then
6069  ac_header_compiler=yes
6070else
6071  echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074ac_header_compiler=no
6075fi
6076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6077echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6078echo "${ECHO_T}$ac_header_compiler" >&6
6079
6080# Is the header present?
6081echo "$as_me:$LINENO: checking $ac_header presence" >&5
6082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6083cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h.  */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h.  */
6089#include <$ac_header>
6090_ACEOF
6091if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6092  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6093  ac_status=$?
6094  grep -v '^ *+' conftest.er1 >conftest.err
6095  rm -f conftest.er1
6096  cat conftest.err >&5
6097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098  (exit $ac_status); } >/dev/null; then
6099  if test -s conftest.err; then
6100    ac_cpp_err=$ac_c_preproc_warn_flag
6101    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6102  else
6103    ac_cpp_err=
6104  fi
6105else
6106  ac_cpp_err=yes
6107fi
6108if test -z "$ac_cpp_err"; then
6109  ac_header_preproc=yes
6110else
6111  echo "$as_me: failed program was:" >&5
6112sed 's/^/| /' conftest.$ac_ext >&5
6113
6114  ac_header_preproc=no
6115fi
6116rm -f conftest.err conftest.$ac_ext
6117echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6118echo "${ECHO_T}$ac_header_preproc" >&6
6119
6120# So?  What about this header?
6121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6122  yes:no: )
6123    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6124echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6125    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6126echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6127    ac_header_preproc=yes
6128    ;;
6129  no:yes:* )
6130    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6131echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6132    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6133echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6134    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6135echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6136    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6137echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6138    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6139echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6140    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6141echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6142    (
6143      cat <<\_ASBOX
6144## --------------------------------------------------------------- ##
6145## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6146## --------------------------------------------------------------- ##
6147_ASBOX
6148    ) |
6149      sed "s/^/$as_me: WARNING:     /" >&2
6150    ;;
6151esac
6152echo "$as_me:$LINENO: checking for $ac_header" >&5
6153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6154if eval "test \"\${$as_ac_Header+set}\" = set"; then
6155  echo $ECHO_N "(cached) $ECHO_C" >&6
6156else
6157  eval "$as_ac_Header=\$ac_header_preproc"
6158fi
6159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6161
6162fi
6163if test `eval echo '${'$as_ac_Header'}'` = yes; then
6164  cat >>confdefs.h <<_ACEOF
6165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6166_ACEOF
6167
6168fi
6169
6170done
6171
6172ac_ext=cc
6173ac_cpp='$CXXCPP $CPPFLAGS'
6174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6177if test -n "$ac_tool_prefix"; then
6178  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6179  do
6180    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6182echo "$as_me:$LINENO: checking for $ac_word" >&5
6183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6184if test "${ac_cv_prog_CXX+set}" = set; then
6185  echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187  if test -n "$CXX"; then
6188  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6189else
6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193  IFS=$as_save_IFS
6194  test -z "$as_dir" && as_dir=.
6195  for ac_exec_ext in '' $ac_executable_extensions; do
6196  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6197    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6198    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199    break 2
6200  fi
6201done
6202done
6203
6204fi
6205fi
6206CXX=$ac_cv_prog_CXX
6207if test -n "$CXX"; then
6208  echo "$as_me:$LINENO: result: $CXX" >&5
6209echo "${ECHO_T}$CXX" >&6
6210else
6211  echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6
6213fi
6214
6215    test -n "$CXX" && break
6216  done
6217fi
6218if test -z "$CXX"; then
6219  ac_ct_CXX=$CXX
6220  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6221do
6222  # Extract the first word of "$ac_prog", so it can be a program name with args.
6223set dummy $ac_prog; ac_word=$2
6224echo "$as_me:$LINENO: checking for $ac_word" >&5
6225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6226if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6227  echo $ECHO_N "(cached) $ECHO_C" >&6
6228else
6229  if test -n "$ac_ct_CXX"; then
6230  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235  IFS=$as_save_IFS
6236  test -z "$as_dir" && as_dir=.
6237  for ac_exec_ext in '' $ac_executable_extensions; do
6238  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239    ac_cv_prog_ac_ct_CXX="$ac_prog"
6240    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241    break 2
6242  fi
6243done
6244done
6245
6246fi
6247fi
6248ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6249if test -n "$ac_ct_CXX"; then
6250  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6251echo "${ECHO_T}$ac_ct_CXX" >&6
6252else
6253  echo "$as_me:$LINENO: result: no" >&5
6254echo "${ECHO_T}no" >&6
6255fi
6256
6257  test -n "$ac_ct_CXX" && break
6258done
6259test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6260
6261  CXX=$ac_ct_CXX
6262fi
6263
6264
6265# Provide some information about the compiler.
6266echo "$as_me:$LINENO:" \
6267     "checking for C++ compiler version" >&5
6268ac_compiler=`set X $ac_compile; echo $2`
6269{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6270  (eval $ac_compiler --version </dev/null >&5) 2>&5
6271  ac_status=$?
6272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273  (exit $ac_status); }
6274{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6275  (eval $ac_compiler -v </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
6285echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6286echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6287if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6288  echo $ECHO_N "(cached) $ECHO_C" >&6
6289else
6290  cat >conftest.$ac_ext <<_ACEOF
6291/* confdefs.h.  */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h.  */
6296
6297int
6298main ()
6299{
6300#ifndef __GNUC__
6301       choke me
6302#endif
6303
6304  ;
6305  return 0;
6306}
6307_ACEOF
6308rm -f conftest.$ac_objext
6309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310  (eval $ac_compile) 2>conftest.er1
6311  ac_status=$?
6312  grep -v '^ *+' conftest.er1 >conftest.err
6313  rm -f conftest.er1
6314  cat conftest.err >&5
6315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); } &&
6317         { ac_try='test -z "$ac_cxx_werror_flag"
6318                         || test ! -s conftest.err'
6319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320  (eval $ac_try) 2>&5
6321  ac_status=$?
6322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323  (exit $ac_status); }; } &&
6324         { ac_try='test -s conftest.$ac_objext'
6325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326  (eval $ac_try) 2>&5
6327  ac_status=$?
6328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329  (exit $ac_status); }; }; then
6330  ac_compiler_gnu=yes
6331else
6332  echo "$as_me: failed program was:" >&5
6333sed 's/^/| /' conftest.$ac_ext >&5
6334
6335ac_compiler_gnu=no
6336fi
6337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6338ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6339
6340fi
6341echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6342echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6343GXX=`test $ac_compiler_gnu = yes && echo yes`
6344ac_test_CXXFLAGS=${CXXFLAGS+set}
6345ac_save_CXXFLAGS=$CXXFLAGS
6346CXXFLAGS="-g"
6347echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6348echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6349if test "${ac_cv_prog_cxx_g+set}" = set; then
6350  echo $ECHO_N "(cached) $ECHO_C" >&6
6351else
6352  cat >conftest.$ac_ext <<_ACEOF
6353/* confdefs.h.  */
6354_ACEOF
6355cat confdefs.h >>conftest.$ac_ext
6356cat >>conftest.$ac_ext <<_ACEOF
6357/* end confdefs.h.  */
6358
6359int
6360main ()
6361{
6362
6363  ;
6364  return 0;
6365}
6366_ACEOF
6367rm -f conftest.$ac_objext
6368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6369  (eval $ac_compile) 2>conftest.er1
6370  ac_status=$?
6371  grep -v '^ *+' conftest.er1 >conftest.err
6372  rm -f conftest.er1
6373  cat conftest.err >&5
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); } &&
6376         { ac_try='test -z "$ac_cxx_werror_flag"
6377                         || test ! -s conftest.err'
6378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379  (eval $ac_try) 2>&5
6380  ac_status=$?
6381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382  (exit $ac_status); }; } &&
6383         { ac_try='test -s conftest.$ac_objext'
6384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385  (eval $ac_try) 2>&5
6386  ac_status=$?
6387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388  (exit $ac_status); }; }; then
6389  ac_cv_prog_cxx_g=yes
6390else
6391  echo "$as_me: failed program was:" >&5
6392sed 's/^/| /' conftest.$ac_ext >&5
6393
6394ac_cv_prog_cxx_g=no
6395fi
6396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6397fi
6398echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6399echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6400if test "$ac_test_CXXFLAGS" = set; then
6401  CXXFLAGS=$ac_save_CXXFLAGS
6402elif test $ac_cv_prog_cxx_g = yes; then
6403  if test "$GXX" = yes; then
6404    CXXFLAGS="-g -O2"
6405  else
6406    CXXFLAGS="-g"
6407  fi
6408else
6409  if test "$GXX" = yes; then
6410    CXXFLAGS="-O2"
6411  else
6412    CXXFLAGS=
6413  fi
6414fi
6415for ac_declaration in \
6416   '' \
6417   'extern "C" void std::exit (int) throw (); using std::exit;' \
6418   'extern "C" void std::exit (int); using std::exit;' \
6419   'extern "C" void exit (int) throw ();' \
6420   'extern "C" void exit (int);' \
6421   'void exit (int);'
6422do
6423  cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h.  */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h.  */
6429$ac_declaration
6430#include <stdlib.h>
6431int
6432main ()
6433{
6434exit (42);
6435  ;
6436  return 0;
6437}
6438_ACEOF
6439rm -f conftest.$ac_objext
6440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441  (eval $ac_compile) 2>conftest.er1
6442  ac_status=$?
6443  grep -v '^ *+' conftest.er1 >conftest.err
6444  rm -f conftest.er1
6445  cat conftest.err >&5
6446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447  (exit $ac_status); } &&
6448         { ac_try='test -z "$ac_cxx_werror_flag"
6449                         || test ! -s conftest.err'
6450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451  (eval $ac_try) 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); }; } &&
6455         { ac_try='test -s conftest.$ac_objext'
6456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457  (eval $ac_try) 2>&5
6458  ac_status=$?
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); }; }; then
6461  :
6462else
6463  echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466continue
6467fi
6468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6469  cat >conftest.$ac_ext <<_ACEOF
6470/* confdefs.h.  */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h.  */
6475$ac_declaration
6476int
6477main ()
6478{
6479exit (42);
6480  ;
6481  return 0;
6482}
6483_ACEOF
6484rm -f conftest.$ac_objext
6485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486  (eval $ac_compile) 2>conftest.er1
6487  ac_status=$?
6488  grep -v '^ *+' conftest.er1 >conftest.err
6489  rm -f conftest.er1
6490  cat conftest.err >&5
6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492  (exit $ac_status); } &&
6493         { ac_try='test -z "$ac_cxx_werror_flag"
6494                         || test ! -s conftest.err'
6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496  (eval $ac_try) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; } &&
6500         { ac_try='test -s conftest.$ac_objext'
6501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502  (eval $ac_try) 2>&5
6503  ac_status=$?
6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505  (exit $ac_status); }; }; then
6506  break
6507else
6508  echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511fi
6512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6513done
6514rm -f conftest*
6515if test -n "$ac_declaration"; then
6516  echo '#ifdef __cplusplus' >>confdefs.h
6517  echo $ac_declaration      >>confdefs.h
6518  echo '#endif'             >>confdefs.h
6519fi
6520
6521ac_ext=cc
6522ac_cpp='$CXXCPP $CPPFLAGS'
6523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6526
6527depcc="$CXX"  am_compiler_list=
6528
6529echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6530echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6531if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6532  echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6535  # We make a subdir and do the tests there.  Otherwise we can end up
6536  # making bogus files that we don't know about and never remove.  For
6537  # instance it was reported that on HP-UX the gcc test will end up
6538  # making a dummy file named `D' -- because `-MD' means `put the output
6539  # in D'.
6540  mkdir conftest.dir
6541  # Copy depcomp to subdir because otherwise we won't find it if we're
6542  # using a relative directory.
6543  cp "$am_depcomp" conftest.dir
6544  cd conftest.dir
6545  # We will build objects and dependencies in a subdirectory because
6546  # it helps to detect inapplicable dependency modes.  For instance
6547  # both Tru64's cc and ICC support -MD to output dependencies as a
6548  # side effect of compilation, but ICC will put the dependencies in
6549  # the current directory while Tru64 will put them in the object
6550  # directory.
6551  mkdir sub
6552
6553  am_cv_CXX_dependencies_compiler_type=none
6554  if test "$am_compiler_list" = ""; then
6555     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6556  fi
6557  for depmode in $am_compiler_list; do
6558    # Setup a source with many dependencies, because some compilers
6559    # like to wrap large dependency lists on column 80 (with \), and
6560    # we should not choose a depcomp mode which is confused by this.
6561    #
6562    # We need to recreate these files for each test, as the compiler may
6563    # overwrite some of them when testing with obscure command lines.
6564    # This happens at least with the AIX C compiler.
6565    : > sub/conftest.c
6566    for i in 1 2 3 4 5 6; do
6567      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6568      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6569      # Solaris 8's {/usr,}/bin/sh.
6570      touch sub/conftst$i.h
6571    done
6572    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6573
6574    case $depmode in
6575    nosideeffect)
6576      # after this tag, mechanisms are not by side-effect, so they'll
6577      # only be used when explicitly requested
6578      if test "x$enable_dependency_tracking" = xyes; then
6579        continue
6580      else
6581        break
6582      fi
6583      ;;
6584    none) break ;;
6585    esac
6586    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6587    # mode.  It turns out that the SunPro C++ compiler does not properly
6588    # handle `-M -o', and we need to detect this.
6589    if depmode=$depmode \
6590       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6591       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6592       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6593         >/dev/null 2>conftest.err &&
6594       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6595       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6596       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6597      # icc doesn't choke on unknown options, it will just issue warnings
6598      # or remarks (even with -Werror).  So we grep stderr for any message
6599      # that says an option was ignored or not supported.
6600      # When given -MP, icc 7.0 and 7.1 complain thusly:
6601      #   icc: Command line warning: ignoring option '-M'; no argument required
6602      # The diagnosis changed in icc 8.0:
6603      #   icc: Command line remark: option '-MP' not supported
6604      if (grep 'ignoring option' conftest.err ||
6605          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6606        am_cv_CXX_dependencies_compiler_type=$depmode
6607        break
6608      fi
6609    fi
6610  done
6611
6612  cd ..
6613  rm -rf conftest.dir
6614else
6615  am_cv_CXX_dependencies_compiler_type=none
6616fi
6617
6618fi
6619echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6620echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6621CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6622
6623
6624
6625if
6626  test "x$enable_dependency_tracking" != xno \
6627  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6628  am__fastdepCXX_TRUE=
6629  am__fastdepCXX_FALSE='#'
6630else
6631  am__fastdepCXX_TRUE='#'
6632  am__fastdepCXX_FALSE=
6633fi
6634
6635
6636
6637
6638if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6639    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6640    (test "X$CXX" != "Xg++"))) ; then
6641  ac_ext=cc
6642ac_cpp='$CXXCPP $CPPFLAGS'
6643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6646echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6647echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6648if test -z "$CXXCPP"; then
6649  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6650  echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652      # Double quotes because CXXCPP needs to be expanded
6653    for CXXCPP in "$CXX -E" "/lib/cpp"
6654    do
6655      ac_preproc_ok=false
6656for ac_cxx_preproc_warn_flag in '' yes
6657do
6658  # Use a header file that comes with gcc, so configuring glibc
6659  # with a fresh cross-compiler works.
6660  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6661  # <limits.h> exists even on freestanding compilers.
6662  # On the NeXT, cc -E runs the code through the compiler's parser,
6663  # not just through cpp. "Syntax error" is here to catch this case.
6664  cat >conftest.$ac_ext <<_ACEOF
6665/* confdefs.h.  */
6666_ACEOF
6667cat confdefs.h >>conftest.$ac_ext
6668cat >>conftest.$ac_ext <<_ACEOF
6669/* end confdefs.h.  */
6670#ifdef __STDC__
6671# include <limits.h>
6672#else
6673# include <assert.h>
6674#endif
6675                     Syntax error
6676_ACEOF
6677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6678  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6679  ac_status=$?
6680  grep -v '^ *+' conftest.er1 >conftest.err
6681  rm -f conftest.er1
6682  cat conftest.err >&5
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); } >/dev/null; then
6685  if test -s conftest.err; then
6686    ac_cpp_err=$ac_cxx_preproc_warn_flag
6687    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6688  else
6689    ac_cpp_err=
6690  fi
6691else
6692  ac_cpp_err=yes
6693fi
6694if test -z "$ac_cpp_err"; then
6695  :
6696else
6697  echo "$as_me: failed program was:" >&5
6698sed 's/^/| /' conftest.$ac_ext >&5
6699
6700  # Broken: fails on valid input.
6701continue
6702fi
6703rm -f conftest.err conftest.$ac_ext
6704
6705  # OK, works on sane cases.  Now check whether non-existent headers
6706  # can be detected and how.
6707  cat >conftest.$ac_ext <<_ACEOF
6708/* confdefs.h.  */
6709_ACEOF
6710cat confdefs.h >>conftest.$ac_ext
6711cat >>conftest.$ac_ext <<_ACEOF
6712/* end confdefs.h.  */
6713#include <ac_nonexistent.h>
6714_ACEOF
6715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6716  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6717  ac_status=$?
6718  grep -v '^ *+' conftest.er1 >conftest.err
6719  rm -f conftest.er1
6720  cat conftest.err >&5
6721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722  (exit $ac_status); } >/dev/null; then
6723  if test -s conftest.err; then
6724    ac_cpp_err=$ac_cxx_preproc_warn_flag
6725    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6726  else
6727    ac_cpp_err=
6728  fi
6729else
6730  ac_cpp_err=yes
6731fi
6732if test -z "$ac_cpp_err"; then
6733  # Broken: success on invalid input.
6734continue
6735else
6736  echo "$as_me: failed program was:" >&5
6737sed 's/^/| /' conftest.$ac_ext >&5
6738
6739  # Passes both tests.
6740ac_preproc_ok=:
6741break
6742fi
6743rm -f conftest.err conftest.$ac_ext
6744
6745done
6746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6747rm -f conftest.err conftest.$ac_ext
6748if $ac_preproc_ok; then
6749  break
6750fi
6751
6752    done
6753    ac_cv_prog_CXXCPP=$CXXCPP
6754
6755fi
6756  CXXCPP=$ac_cv_prog_CXXCPP
6757else
6758  ac_cv_prog_CXXCPP=$CXXCPP
6759fi
6760echo "$as_me:$LINENO: result: $CXXCPP" >&5
6761echo "${ECHO_T}$CXXCPP" >&6
6762ac_preproc_ok=false
6763for ac_cxx_preproc_warn_flag in '' yes
6764do
6765  # Use a header file that comes with gcc, so configuring glibc
6766  # with a fresh cross-compiler works.
6767  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6768  # <limits.h> exists even on freestanding compilers.
6769  # On the NeXT, cc -E runs the code through the compiler's parser,
6770  # not just through cpp. "Syntax error" is here to catch this case.
6771  cat >conftest.$ac_ext <<_ACEOF
6772/* confdefs.h.  */
6773_ACEOF
6774cat confdefs.h >>conftest.$ac_ext
6775cat >>conftest.$ac_ext <<_ACEOF
6776/* end confdefs.h.  */
6777#ifdef __STDC__
6778# include <limits.h>
6779#else
6780# include <assert.h>
6781#endif
6782                     Syntax error
6783_ACEOF
6784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6785  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6786  ac_status=$?
6787  grep -v '^ *+' conftest.er1 >conftest.err
6788  rm -f conftest.er1
6789  cat conftest.err >&5
6790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791  (exit $ac_status); } >/dev/null; then
6792  if test -s conftest.err; then
6793    ac_cpp_err=$ac_cxx_preproc_warn_flag
6794    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6795  else
6796    ac_cpp_err=
6797  fi
6798else
6799  ac_cpp_err=yes
6800fi
6801if test -z "$ac_cpp_err"; then
6802  :
6803else
6804  echo "$as_me: failed program was:" >&5
6805sed 's/^/| /' conftest.$ac_ext >&5
6806
6807  # Broken: fails on valid input.
6808continue
6809fi
6810rm -f conftest.err conftest.$ac_ext
6811
6812  # OK, works on sane cases.  Now check whether non-existent headers
6813  # can be detected and how.
6814  cat >conftest.$ac_ext <<_ACEOF
6815/* confdefs.h.  */
6816_ACEOF
6817cat confdefs.h >>conftest.$ac_ext
6818cat >>conftest.$ac_ext <<_ACEOF
6819/* end confdefs.h.  */
6820#include <ac_nonexistent.h>
6821_ACEOF
6822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6823  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6824  ac_status=$?
6825  grep -v '^ *+' conftest.er1 >conftest.err
6826  rm -f conftest.er1
6827  cat conftest.err >&5
6828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829  (exit $ac_status); } >/dev/null; then
6830  if test -s conftest.err; then
6831    ac_cpp_err=$ac_cxx_preproc_warn_flag
6832    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6833  else
6834    ac_cpp_err=
6835  fi
6836else
6837  ac_cpp_err=yes
6838fi
6839if test -z "$ac_cpp_err"; then
6840  # Broken: success on invalid input.
6841continue
6842else
6843  echo "$as_me: failed program was:" >&5
6844sed 's/^/| /' conftest.$ac_ext >&5
6845
6846  # Passes both tests.
6847ac_preproc_ok=:
6848break
6849fi
6850rm -f conftest.err conftest.$ac_ext
6851
6852done
6853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6854rm -f conftest.err conftest.$ac_ext
6855if $ac_preproc_ok; then
6856  :
6857else
6858  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6859See \`config.log' for more details." >&5
6860echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6861See \`config.log' for more details." >&2;}
6862   { (exit 1); exit 1; }; }
6863fi
6864
6865ac_ext=cc
6866ac_cpp='$CXXCPP $CPPFLAGS'
6867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6870
6871fi
6872
6873
6874
6875# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6876
6877# find the maximum length of command line arguments
6878echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6879echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6880if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6881  echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
6883    i=0
6884  teststring="ABCD"
6885
6886  case $build_os in
6887  msdosdjgpp*)
6888    # On DJGPP, this test can blow up pretty badly due to problems in libc
6889    # (any single argument exceeding 2000 bytes causes a buffer overrun
6890    # during glob expansion).  Even if it were fixed, the result of this
6891    # check would be larger than it should be.
6892    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6893    ;;
6894
6895  gnu*)
6896    # Under GNU Hurd, this test is not required because there is
6897    # no limit to the length of command line arguments.
6898    # Libtool will interpret -1 as no limit whatsoever
6899    lt_cv_sys_max_cmd_len=-1;
6900    ;;
6901
6902  cygwin* | mingw*)
6903    # On Win9x/ME, this test blows up -- it succeeds, but takes
6904    # about 5 minutes as the teststring grows exponentially.
6905    # Worse, since 9x/ME are not pre-emptively multitasking,
6906    # you end up with a "frozen" computer, even though with patience
6907    # the test eventually succeeds (with a max line length of 256k).
6908    # Instead, let's just punt: use the minimum linelength reported by
6909    # all of the supported platforms: 8192 (on NT/2K/XP).
6910    lt_cv_sys_max_cmd_len=8192;
6911    ;;
6912
6913  amigaos*)
6914    # On AmigaOS with pdksh, this test takes hours, literally.
6915    # So we just punt and use a minimum line length of 8192.
6916    lt_cv_sys_max_cmd_len=8192;
6917    ;;
6918
6919  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6920    # This has been around since 386BSD, at least.  Likely further.
6921    if test -x /sbin/sysctl; then
6922      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6923    elif test -x /usr/sbin/sysctl; then
6924      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6925    else
6926      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6927    fi
6928    # And add a safety zone
6929    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6930    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6931    ;;
6932
6933  interix*)
6934    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6935    lt_cv_sys_max_cmd_len=196608
6936    ;;
6937
6938  osf*)
6939    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6940    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6941    # nice to cause kernel panics so lets avoid the loop below.
6942    # First set a reasonable default.
6943    lt_cv_sys_max_cmd_len=16384
6944    #
6945    if test -x /sbin/sysconfig; then
6946      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6947        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6948      esac
6949    fi
6950    ;;
6951  sco3.2v5*)
6952    lt_cv_sys_max_cmd_len=102400
6953    ;;
6954  sysv5* | sco5v6* | sysv4.2uw2*)
6955    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6956    if test -n "$kargmax"; then
6957      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6958    else
6959      lt_cv_sys_max_cmd_len=32768
6960    fi
6961    ;;
6962  *)
6963    # If test is not a shell built-in, we'll probably end up computing a
6964    # maximum length that is only half of the actual maximum length, but
6965    # we can't tell.
6966    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6967    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6968               = "XX$teststring") >/dev/null 2>&1 &&
6969            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6970            lt_cv_sys_max_cmd_len=$new_result &&
6971            test $i != 17 # 1/2 MB should be enough
6972    do
6973      i=`expr $i + 1`
6974      teststring=$teststring$teststring
6975    done
6976    teststring=
6977    # Add a significant safety factor because C++ compilers can tack on massive
6978    # amounts of additional arguments before passing them to the linker.
6979    # It appears as though 1/2 is a usable value.
6980    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6981    ;;
6982  esac
6983
6984fi
6985
6986if test -n $lt_cv_sys_max_cmd_len ; then
6987  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6988echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6989else
6990  echo "$as_me:$LINENO: result: none" >&5
6991echo "${ECHO_T}none" >&6
6992fi
6993
6994
6995
6996
6997# Check for command to grab the raw symbol name followed by C symbol from nm.
6998echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6999echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7000if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7001  echo $ECHO_N "(cached) $ECHO_C" >&6
7002else
7003
7004# These are sane defaults that work on at least a few old systems.
7005# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7006
7007# Character class describing NM global symbol codes.
7008symcode='[BCDEGRST]'
7009
7010# Regexp to match symbols that can be accessed directly from C.
7011sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7012
7013# Transform an extracted symbol line into a proper C declaration
7014lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7015
7016# Transform an extracted symbol line into symbol name and symbol address
7017lt_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'"
7018
7019# Define system-specific variables.
7020case $host_os in
7021aix*)
7022  symcode='[BCDT]'
7023  ;;
7024cygwin* | mingw* | pw32*)
7025  symcode='[ABCDGISTW]'
7026  ;;
7027hpux*) # Its linker distinguishes data from code symbols
7028  if test "$host_cpu" = ia64; then
7029    symcode='[ABCDEGRST]'
7030  fi
7031  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7032  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'"
7033  ;;
7034linux*)
7035  if test "$host_cpu" = ia64; then
7036    symcode='[ABCDGIRSTW]'
7037    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7038    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'"
7039  fi
7040  ;;
7041irix* | nonstopux*)
7042  symcode='[BCDEGRST]'
7043  ;;
7044osf*)
7045  symcode='[BCDEGQRST]'
7046  ;;
7047solaris*)
7048  symcode='[BDRT]'
7049  ;;
7050sco3.2v5*)
7051  symcode='[DT]'
7052  ;;
7053sysv4.2uw2*)
7054  symcode='[DT]'
7055  ;;
7056sysv5* | sco5v6* | unixware* | OpenUNIX*)
7057  symcode='[ABDT]'
7058  ;;
7059sysv4)
7060  symcode='[DFNSTU]'
7061  ;;
7062esac
7063
7064# Handle CRLF in mingw tool chain
7065opt_cr=
7066case $build_os in
7067mingw*)
7068  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7069  ;;
7070esac
7071
7072# If we're using GNU nm, then use its standard symbol codes.
7073case `$NM -V 2>&1` in
7074*GNU* | *'with BFD'*)
7075  symcode='[ABCDGIRSTW]' ;;
7076esac
7077
7078# Try without a prefix undercore, then with it.
7079for ac_symprfx in "" "_"; do
7080
7081  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7082  symxfrm="\\1 $ac_symprfx\\2 \\2"
7083
7084  # Write the raw and C identifiers.
7085  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7086
7087  # Check to see that the pipe works correctly.
7088  pipe_works=no
7089
7090  rm -f conftest*
7091  cat > conftest.$ac_ext <<EOF
7092#ifdef __cplusplus
7093extern "C" {
7094#endif
7095char nm_test_var;
7096void nm_test_func(){}
7097#ifdef __cplusplus
7098}
7099#endif
7100int main(){nm_test_var='a';nm_test_func();return(0);}
7101EOF
7102
7103  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7104  (eval $ac_compile) 2>&5
7105  ac_status=$?
7106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107  (exit $ac_status); }; then
7108    # Now try to grab the symbols.
7109    nlist=conftest.nm
7110    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7111  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7112  ac_status=$?
7113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114  (exit $ac_status); } && test -s "$nlist"; then
7115      # Try sorting and uniquifying the output.
7116      if sort "$nlist" | uniq > "$nlist"T; then
7117        mv -f "$nlist"T "$nlist"
7118      else
7119        rm -f "$nlist"T
7120      fi
7121
7122      # Make sure that we snagged all the symbols we need.
7123      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7124        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7125          cat <<EOF > conftest.$ac_ext
7126#ifdef __cplusplus
7127extern "C" {
7128#endif
7129
7130EOF
7131          # Now generate the symbol file.
7132          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7133
7134          cat <<EOF >> conftest.$ac_ext
7135#if defined (__STDC__) && __STDC__
7136# define lt_ptr_t void *
7137#else
7138# define lt_ptr_t char *
7139# define const
7140#endif
7141
7142/* The mapping between symbol names and symbols. */
7143const struct {
7144  const char *name;
7145  lt_ptr_t address;
7146}
7147lt_preloaded_symbols[] =
7148{
7149EOF
7150          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7151          cat <<\EOF >> conftest.$ac_ext
7152  {0, (lt_ptr_t) 0}
7153};
7154
7155#ifdef __cplusplus
7156}
7157#endif
7158EOF
7159          # Now try linking the two files.
7160          mv conftest.$ac_objext conftstm.$ac_objext
7161          lt_save_LIBS="$LIBS"
7162          lt_save_CFLAGS="$CFLAGS"
7163          LIBS="conftstm.$ac_objext"
7164          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7165          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7166  (eval $ac_link) 2>&5
7167  ac_status=$?
7168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7170            pipe_works=yes
7171          fi
7172          LIBS="$lt_save_LIBS"
7173          CFLAGS="$lt_save_CFLAGS"
7174        else
7175          echo "cannot find nm_test_func in $nlist" >&5
7176        fi
7177      else
7178        echo "cannot find nm_test_var in $nlist" >&5
7179      fi
7180    else
7181      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7182    fi
7183  else
7184    echo "$progname: failed program was:" >&5
7185    cat conftest.$ac_ext >&5
7186  fi
7187  rm -f conftest* conftst*
7188
7189  # Do not use the global_symbol_pipe unless it works.
7190  if test "$pipe_works" = yes; then
7191    break
7192  else
7193    lt_cv_sys_global_symbol_pipe=
7194  fi
7195done
7196
7197fi
7198
7199if test -z "$lt_cv_sys_global_symbol_pipe"; then
7200  lt_cv_sys_global_symbol_to_cdecl=
7201fi
7202if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7203  echo "$as_me:$LINENO: result: failed" >&5
7204echo "${ECHO_T}failed" >&6
7205else
7206  echo "$as_me:$LINENO: result: ok" >&5
7207echo "${ECHO_T}ok" >&6
7208fi
7209
7210echo "$as_me:$LINENO: checking for objdir" >&5
7211echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7212if test "${lt_cv_objdir+set}" = set; then
7213  echo $ECHO_N "(cached) $ECHO_C" >&6
7214else
7215  rm -f .libs 2>/dev/null
7216mkdir .libs 2>/dev/null
7217if test -d .libs; then
7218  lt_cv_objdir=.libs
7219else
7220  # MS-DOS does not allow filenames that begin with a dot.
7221  lt_cv_objdir=_libs
7222fi
7223rmdir .libs 2>/dev/null
7224fi
7225echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7226echo "${ECHO_T}$lt_cv_objdir" >&6
7227objdir=$lt_cv_objdir
7228
7229
7230
7231
7232
7233case $host_os in
7234aix3*)
7235  # AIX sometimes has problems with the GCC collect2 program.  For some
7236  # reason, if we set the COLLECT_NAMES environment variable, the problems
7237  # vanish in a puff of smoke.
7238  if test "X${COLLECT_NAMES+set}" != Xset; then
7239    COLLECT_NAMES=
7240    export COLLECT_NAMES
7241  fi
7242  ;;
7243esac
7244
7245# Sed substitution that helps us do robust quoting.  It backslashifies
7246# metacharacters that are still active within double-quoted strings.
7247Xsed='sed -e 1s/^X//'
7248sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7249
7250# Same as above, but do not quote variable references.
7251double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7252
7253# Sed substitution to delay expansion of an escaped shell variable in a
7254# double_quote_subst'ed string.
7255delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7256
7257# Sed substitution to avoid accidental globbing in evaled expressions
7258no_glob_subst='s/\*/\\\*/g'
7259
7260# Constants:
7261rm="rm -f"
7262
7263# Global variables:
7264default_ofile=libtool
7265can_build_shared=yes
7266
7267# All known linkers require a `.a' archive for static linking (except MSVC,
7268# which needs '.lib').
7269libext=a
7270ltmain="$ac_aux_dir/ltmain.sh"
7271ofile="$default_ofile"
7272with_gnu_ld="$lt_cv_prog_gnu_ld"
7273
7274if test -n "$ac_tool_prefix"; then
7275  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7276set dummy ${ac_tool_prefix}ar; ac_word=$2
7277echo "$as_me:$LINENO: checking for $ac_word" >&5
7278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7279if test "${ac_cv_prog_AR+set}" = set; then
7280  echo $ECHO_N "(cached) $ECHO_C" >&6
7281else
7282  if test -n "$AR"; then
7283  ac_cv_prog_AR="$AR" # Let the user override the test.
7284else
7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288  IFS=$as_save_IFS
7289  test -z "$as_dir" && as_dir=.
7290  for ac_exec_ext in '' $ac_executable_extensions; do
7291  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292    ac_cv_prog_AR="${ac_tool_prefix}ar"
7293    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7294    break 2
7295  fi
7296done
7297done
7298
7299fi
7300fi
7301AR=$ac_cv_prog_AR
7302if test -n "$AR"; then
7303  echo "$as_me:$LINENO: result: $AR" >&5
7304echo "${ECHO_T}$AR" >&6
7305else
7306  echo "$as_me:$LINENO: result: no" >&5
7307echo "${ECHO_T}no" >&6
7308fi
7309
7310fi
7311if test -z "$ac_cv_prog_AR"; then
7312  ac_ct_AR=$AR
7313  # Extract the first word of "ar", so it can be a program name with args.
7314set dummy ar; ac_word=$2
7315echo "$as_me:$LINENO: checking for $ac_word" >&5
7316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7317if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7318  echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320  if test -n "$ac_ct_AR"; then
7321  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7322else
7323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326  IFS=$as_save_IFS
7327  test -z "$as_dir" && as_dir=.
7328  for ac_exec_ext in '' $ac_executable_extensions; do
7329  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330    ac_cv_prog_ac_ct_AR="ar"
7331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332    break 2
7333  fi
7334done
7335done
7336
7337  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7338fi
7339fi
7340ac_ct_AR=$ac_cv_prog_ac_ct_AR
7341if test -n "$ac_ct_AR"; then
7342  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7343echo "${ECHO_T}$ac_ct_AR" >&6
7344else
7345  echo "$as_me:$LINENO: result: no" >&5
7346echo "${ECHO_T}no" >&6
7347fi
7348
7349  AR=$ac_ct_AR
7350else
7351  AR="$ac_cv_prog_AR"
7352fi
7353
7354if test -n "$ac_tool_prefix"; then
7355  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7356set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7357echo "$as_me:$LINENO: checking for $ac_word" >&5
7358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7359if test "${ac_cv_prog_RANLIB+set}" = set; then
7360  echo $ECHO_N "(cached) $ECHO_C" >&6
7361else
7362  if test -n "$RANLIB"; then
7363  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7364else
7365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366for as_dir in $PATH
7367do
7368  IFS=$as_save_IFS
7369  test -z "$as_dir" && as_dir=.
7370  for ac_exec_ext in '' $ac_executable_extensions; do
7371  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7373    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374    break 2
7375  fi
7376done
7377done
7378
7379fi
7380fi
7381RANLIB=$ac_cv_prog_RANLIB
7382if test -n "$RANLIB"; then
7383  echo "$as_me:$LINENO: result: $RANLIB" >&5
7384echo "${ECHO_T}$RANLIB" >&6
7385else
7386  echo "$as_me:$LINENO: result: no" >&5
7387echo "${ECHO_T}no" >&6
7388fi
7389
7390fi
7391if test -z "$ac_cv_prog_RANLIB"; then
7392  ac_ct_RANLIB=$RANLIB
7393  # Extract the first word of "ranlib", so it can be a program name with args.
7394set dummy ranlib; ac_word=$2
7395echo "$as_me:$LINENO: checking for $ac_word" >&5
7396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7397if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7398  echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400  if test -n "$ac_ct_RANLIB"; then
7401  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7402else
7403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH
7405do
7406  IFS=$as_save_IFS
7407  test -z "$as_dir" && as_dir=.
7408  for ac_exec_ext in '' $ac_executable_extensions; do
7409  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410    ac_cv_prog_ac_ct_RANLIB="ranlib"
7411    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412    break 2
7413  fi
7414done
7415done
7416
7417  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7418fi
7419fi
7420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7421if test -n "$ac_ct_RANLIB"; then
7422  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7423echo "${ECHO_T}$ac_ct_RANLIB" >&6
7424else
7425  echo "$as_me:$LINENO: result: no" >&5
7426echo "${ECHO_T}no" >&6
7427fi
7428
7429  RANLIB=$ac_ct_RANLIB
7430else
7431  RANLIB="$ac_cv_prog_RANLIB"
7432fi
7433
7434if test -n "$ac_tool_prefix"; then
7435  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7436set dummy ${ac_tool_prefix}strip; ac_word=$2
7437echo "$as_me:$LINENO: checking for $ac_word" >&5
7438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7439if test "${ac_cv_prog_STRIP+set}" = set; then
7440  echo $ECHO_N "(cached) $ECHO_C" >&6
7441else
7442  if test -n "$STRIP"; then
7443  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7444else
7445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448  IFS=$as_save_IFS
7449  test -z "$as_dir" && as_dir=.
7450  for ac_exec_ext in '' $ac_executable_extensions; do
7451  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7452    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7453    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454    break 2
7455  fi
7456done
7457done
7458
7459fi
7460fi
7461STRIP=$ac_cv_prog_STRIP
7462if test -n "$STRIP"; then
7463  echo "$as_me:$LINENO: result: $STRIP" >&5
7464echo "${ECHO_T}$STRIP" >&6
7465else
7466  echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
7468fi
7469
7470fi
7471if test -z "$ac_cv_prog_STRIP"; then
7472  ac_ct_STRIP=$STRIP
7473  # Extract the first word of "strip", so it can be a program name with args.
7474set dummy strip; ac_word=$2
7475echo "$as_me:$LINENO: checking for $ac_word" >&5
7476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7477if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7478  echo $ECHO_N "(cached) $ECHO_C" >&6
7479else
7480  if test -n "$ac_ct_STRIP"; then
7481  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7482else
7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486  IFS=$as_save_IFS
7487  test -z "$as_dir" && as_dir=.
7488  for ac_exec_ext in '' $ac_executable_extensions; do
7489  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490    ac_cv_prog_ac_ct_STRIP="strip"
7491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492    break 2
7493  fi
7494done
7495done
7496
7497  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7498fi
7499fi
7500ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7501if test -n "$ac_ct_STRIP"; then
7502  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7503echo "${ECHO_T}$ac_ct_STRIP" >&6
7504else
7505  echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6
7507fi
7508
7509  STRIP=$ac_ct_STRIP
7510else
7511  STRIP="$ac_cv_prog_STRIP"
7512fi
7513
7514
7515old_CC="$CC"
7516old_CFLAGS="$CFLAGS"
7517
7518# Set sane defaults for various variables
7519test -z "$AR" && AR=ar
7520test -z "$AR_FLAGS" && AR_FLAGS=cru
7521test -z "$AS" && AS=as
7522test -z "$CC" && CC=cc
7523test -z "$LTCC" && LTCC=$CC
7524test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7525test -z "$DLLTOOL" && DLLTOOL=dlltool
7526test -z "$LD" && LD=ld
7527test -z "$LN_S" && LN_S="ln -s"
7528test -z "$MAGIC_CMD" && MAGIC_CMD=file
7529test -z "$NM" && NM=nm
7530test -z "$SED" && SED=sed
7531test -z "$OBJDUMP" && OBJDUMP=objdump
7532test -z "$RANLIB" && RANLIB=:
7533test -z "$STRIP" && STRIP=:
7534test -z "$ac_objext" && ac_objext=o
7535
7536# Determine commands to create old-style static archives.
7537old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7538old_postinstall_cmds='chmod 644 $oldlib'
7539old_postuninstall_cmds=
7540
7541if test -n "$RANLIB"; then
7542  case $host_os in
7543  openbsd*)
7544    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7545    ;;
7546  *)
7547    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7548    ;;
7549  esac
7550  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7551fi
7552
7553for cc_temp in $compiler""; do
7554  case $cc_temp in
7555    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7556    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7557    \-*) ;;
7558    *) break;;
7559  esac
7560done
7561cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7562
7563
7564# Only perform the check for file, if the check method requires it
7565case $deplibs_check_method in
7566file_magic*)
7567  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7568    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7569echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7570if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7571  echo $ECHO_N "(cached) $ECHO_C" >&6
7572else
7573  case $MAGIC_CMD in
7574[\\/*] |  ?:[\\/]*)
7575  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7576  ;;
7577*)
7578  lt_save_MAGIC_CMD="$MAGIC_CMD"
7579  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7580  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7581  for ac_dir in $ac_dummy; do
7582    IFS="$lt_save_ifs"
7583    test -z "$ac_dir" && ac_dir=.
7584    if test -f $ac_dir/${ac_tool_prefix}file; then
7585      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7586      if test -n "$file_magic_test_file"; then
7587        case $deplibs_check_method in
7588        "file_magic "*)
7589          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7590          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7591          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7592            $EGREP "$file_magic_regex" > /dev/null; then
7593            :
7594          else
7595            cat <<EOF 1>&2
7596
7597*** Warning: the command libtool uses to detect shared libraries,
7598*** $file_magic_cmd, produces output that libtool cannot recognize.
7599*** The result is that libtool may fail to recognize shared libraries
7600*** as such.  This will affect the creation of libtool libraries that
7601*** depend on shared libraries, but programs linked with such libtool
7602*** libraries will work regardless of this problem.  Nevertheless, you
7603*** may want to report the problem to your system manager and/or to
7604*** bug-libtool@gnu.org
7605
7606EOF
7607          fi ;;
7608        esac
7609      fi
7610      break
7611    fi
7612  done
7613  IFS="$lt_save_ifs"
7614  MAGIC_CMD="$lt_save_MAGIC_CMD"
7615  ;;
7616esac
7617fi
7618
7619MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7620if test -n "$MAGIC_CMD"; then
7621  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7622echo "${ECHO_T}$MAGIC_CMD" >&6
7623else
7624  echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
7626fi
7627
7628if test -z "$lt_cv_path_MAGIC_CMD"; then
7629  if test -n "$ac_tool_prefix"; then
7630    echo "$as_me:$LINENO: checking for file" >&5
7631echo $ECHO_N "checking for file... $ECHO_C" >&6
7632if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7633  echo $ECHO_N "(cached) $ECHO_C" >&6
7634else
7635  case $MAGIC_CMD in
7636[\\/*] |  ?:[\\/]*)
7637  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7638  ;;
7639*)
7640  lt_save_MAGIC_CMD="$MAGIC_CMD"
7641  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7642  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7643  for ac_dir in $ac_dummy; do
7644    IFS="$lt_save_ifs"
7645    test -z "$ac_dir" && ac_dir=.
7646    if test -f $ac_dir/file; then
7647      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7648      if test -n "$file_magic_test_file"; then
7649        case $deplibs_check_method in
7650        "file_magic "*)
7651          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7652          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7653          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7654            $EGREP "$file_magic_regex" > /dev/null; then
7655            :
7656          else
7657            cat <<EOF 1>&2
7658
7659*** Warning: the command libtool uses to detect shared libraries,
7660*** $file_magic_cmd, produces output that libtool cannot recognize.
7661*** The result is that libtool may fail to recognize shared libraries
7662*** as such.  This will affect the creation of libtool libraries that
7663*** depend on shared libraries, but programs linked with such libtool
7664*** libraries will work regardless of this problem.  Nevertheless, you
7665*** may want to report the problem to your system manager and/or to
7666*** bug-libtool@gnu.org
7667
7668EOF
7669          fi ;;
7670        esac
7671      fi
7672      break
7673    fi
7674  done
7675  IFS="$lt_save_ifs"
7676  MAGIC_CMD="$lt_save_MAGIC_CMD"
7677  ;;
7678esac
7679fi
7680
7681MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7682if test -n "$MAGIC_CMD"; then
7683  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7684echo "${ECHO_T}$MAGIC_CMD" >&6
7685else
7686  echo "$as_me:$LINENO: result: no" >&5
7687echo "${ECHO_T}no" >&6
7688fi
7689
7690  else
7691    MAGIC_CMD=:
7692  fi
7693fi
7694
7695  fi
7696  ;;
7697esac
7698
7699enable_dlopen=no
7700enable_win32_dll=no
7701
7702# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7703if test "${enable_libtool_lock+set}" = set; then
7704  enableval="$enable_libtool_lock"
7705
7706fi;
7707test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7708
7709
7710# Check whether --with-pic or --without-pic was given.
7711if test "${with_pic+set}" = set; then
7712  withval="$with_pic"
7713  pic_mode="$withval"
7714else
7715  pic_mode=default
7716fi;
7717test -z "$pic_mode" && pic_mode=default
7718
7719# Use C for the default configuration in the libtool script
7720tagname=
7721lt_save_CC="$CC"
7722ac_ext=c
7723ac_cpp='$CPP $CPPFLAGS'
7724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726ac_compiler_gnu=$ac_cv_c_compiler_gnu
7727
7728
7729# Source file extension for C test sources.
7730ac_ext=c
7731
7732# Object file extension for compiled C test sources.
7733objext=o
7734objext=$objext
7735
7736# Code to be used in simple compile tests
7737lt_simple_compile_test_code="int some_variable = 0;\n"
7738
7739# Code to be used in simple link tests
7740lt_simple_link_test_code='int main(){return(0);}\n'
7741
7742
7743# If no C compiler was specified, use CC.
7744LTCC=${LTCC-"$CC"}
7745
7746# If no C compiler flags were specified, use CFLAGS.
7747LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7748
7749# Allow CC to be a program name with arguments.
7750compiler=$CC
7751
7752
7753# save warnings/boilerplate of simple test code
7754ac_outfile=conftest.$ac_objext
7755printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7756eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7757_lt_compiler_boilerplate=`cat conftest.err`
7758$rm conftest*
7759
7760ac_outfile=conftest.$ac_objext
7761printf "$lt_simple_link_test_code" >conftest.$ac_ext
7762eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7763_lt_linker_boilerplate=`cat conftest.err`
7764$rm conftest*
7765
7766
7767## CAVEAT EMPTOR:
7768## There is no encapsulation within the following macros, do not change
7769## the running order or otherwise move them around unless you know exactly
7770## what you are doing...
7771
7772lt_prog_compiler_no_builtin_flag=
7773
7774if test "$GCC" = yes; then
7775  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7776
7777
7778echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7779echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7780if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7781  echo $ECHO_N "(cached) $ECHO_C" >&6
7782else
7783  lt_cv_prog_compiler_rtti_exceptions=no
7784  ac_outfile=conftest.$ac_objext
7785   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7786   lt_compiler_flag="-fno-rtti -fno-exceptions"
7787   # Insert the option either (1) after the last *FLAGS variable, or
7788   # (2) before a word containing "conftest.", or (3) at the end.
7789   # Note that $ac_compile itself does not contain backslashes and begins
7790   # with a dollar sign (not a hyphen), so the echo should work correctly.
7791   # The option is referenced via a variable to avoid confusing sed.
7792   lt_compile=`echo "$ac_compile" | $SED \
7793   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7794   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7795   -e 's:$: $lt_compiler_flag:'`
7796   (eval echo "\"\$as_me:7796: $lt_compile\"" >&5)
7797   (eval "$lt_compile" 2>conftest.err)
7798   ac_status=$?
7799   cat conftest.err >&5
7800   echo "$as_me:7800: \$? = $ac_status" >&5
7801   if (exit $ac_status) && test -s "$ac_outfile"; then
7802     # The compiler can only warn and ignore the option if not recognized
7803     # So say no if there are warnings other than the usual output.
7804     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7805     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7806     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7807       lt_cv_prog_compiler_rtti_exceptions=yes
7808     fi
7809   fi
7810   $rm conftest*
7811
7812fi
7813echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7814echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7815
7816if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7817    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7818else
7819    :
7820fi
7821
7822fi
7823
7824lt_prog_compiler_wl=
7825lt_prog_compiler_pic=
7826lt_prog_compiler_static=
7827
7828echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7829echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7830
7831  if test "$GCC" = yes; then
7832    lt_prog_compiler_wl='-Wl,'
7833    lt_prog_compiler_static='-static'
7834
7835    case $host_os in
7836      aix*)
7837      # All AIX code is PIC.
7838      if test "$host_cpu" = ia64; then
7839        # AIX 5 now supports IA64 processor
7840        lt_prog_compiler_static='-Bstatic'
7841      fi
7842      ;;
7843
7844    amigaos*)
7845      # FIXME: we need at least 68020 code to build shared libraries, but
7846      # adding the `-m68020' flag to GCC prevents building anything better,
7847      # like `-m68040'.
7848      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7849      ;;
7850
7851    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7852      # PIC is the default for these OSes.
7853      ;;
7854
7855    mingw* | pw32* | os2*)
7856      # This hack is so that the source file can tell whether it is being
7857      # built for inclusion in a dll (and should export symbols for example).
7858      lt_prog_compiler_pic='-DDLL_EXPORT'
7859      ;;
7860
7861    darwin* | rhapsody*)
7862      # PIC is the default on this platform
7863      # Common symbols not allowed in MH_DYLIB files
7864      lt_prog_compiler_pic='-fno-common'
7865      ;;
7866
7867    interix3*)
7868      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7869      # Instead, we relocate shared libraries at runtime.
7870      ;;
7871
7872    msdosdjgpp*)
7873      # Just because we use GCC doesn't mean we suddenly get shared libraries
7874      # on systems that don't support them.
7875      lt_prog_compiler_can_build_shared=no
7876      enable_shared=no
7877      ;;
7878
7879    sysv4*MP*)
7880      if test -d /usr/nec; then
7881        lt_prog_compiler_pic=-Kconform_pic
7882      fi
7883      ;;
7884
7885    hpux*)
7886      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7887      # not for PA HP-UX.
7888      case $host_cpu in
7889      hppa*64*|ia64*)
7890        # +Z the default
7891        ;;
7892      *)
7893        lt_prog_compiler_pic='-fPIC'
7894        ;;
7895      esac
7896      ;;
7897
7898    *)
7899      lt_prog_compiler_pic='-fPIC'
7900      ;;
7901    esac
7902  else
7903    # PORTME Check for flag to pass linker flags through the system compiler.
7904    case $host_os in
7905    aix*)
7906      lt_prog_compiler_wl='-Wl,'
7907      if test "$host_cpu" = ia64; then
7908        # AIX 5 now supports IA64 processor
7909        lt_prog_compiler_static='-Bstatic'
7910      else
7911        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7912      fi
7913      ;;
7914      darwin*)
7915        # PIC is the default on this platform
7916        # Common symbols not allowed in MH_DYLIB files
7917       case $cc_basename in
7918         xlc*)
7919         lt_prog_compiler_pic='-qnocommon'
7920         lt_prog_compiler_wl='-Wl,'
7921         ;;
7922       esac
7923       ;;
7924
7925    mingw* | pw32* | os2*)
7926      # This hack is so that the source file can tell whether it is being
7927      # built for inclusion in a dll (and should export symbols for example).
7928      lt_prog_compiler_pic='-DDLL_EXPORT'
7929      ;;
7930
7931    hpux9* | hpux10* | hpux11*)
7932      lt_prog_compiler_wl='-Wl,'
7933      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7934      # not for PA HP-UX.
7935      case $host_cpu in
7936      hppa*64*|ia64*)
7937        # +Z the default
7938        ;;
7939      *)
7940        lt_prog_compiler_pic='+Z'
7941        ;;
7942      esac
7943      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7944      lt_prog_compiler_static='${wl}-a ${wl}archive'
7945      ;;
7946
7947    irix5* | irix6* | nonstopux*)
7948      lt_prog_compiler_wl='-Wl,'
7949      # PIC (with -KPIC) is the default.
7950      lt_prog_compiler_static='-non_shared'
7951      ;;
7952
7953    newsos6)
7954      lt_prog_compiler_pic='-KPIC'
7955      lt_prog_compiler_static='-Bstatic'
7956      ;;
7957
7958    linux*)
7959      case $cc_basename in
7960      icc* | ecc*)
7961        lt_prog_compiler_wl='-Wl,'
7962        lt_prog_compiler_pic='-KPIC'
7963        lt_prog_compiler_static='-static'
7964        ;;
7965      pgcc* | pgf77* | pgf90* | pgf95*)
7966        # Portland Group compilers (*not* the Pentium gcc compiler,
7967        # which looks to be a dead project)
7968        lt_prog_compiler_wl='-Wl,'
7969        lt_prog_compiler_pic='-fpic'
7970        lt_prog_compiler_static='-Bstatic'
7971        ;;
7972      ccc*)
7973        lt_prog_compiler_wl='-Wl,'
7974        # All Alpha code is PIC.
7975        lt_prog_compiler_static='-non_shared'
7976        ;;
7977      esac
7978      ;;
7979
7980    osf3* | osf4* | osf5*)
7981      lt_prog_compiler_wl='-Wl,'
7982      # All OSF/1 code is PIC.
7983      lt_prog_compiler_static='-non_shared'
7984      ;;
7985
7986    solaris*)
7987      lt_prog_compiler_pic='-KPIC'
7988      lt_prog_compiler_static='-Bstatic'
7989      case $cc_basename in
7990      f77* | f90* | f95*)
7991        lt_prog_compiler_wl='-Qoption ld ';;
7992      *)
7993        lt_prog_compiler_wl='-Wl,';;
7994      esac
7995      ;;
7996
7997    sunos4*)
7998      lt_prog_compiler_wl='-Qoption ld '
7999      lt_prog_compiler_pic='-PIC'
8000      lt_prog_compiler_static='-Bstatic'
8001      ;;
8002
8003    sysv4 | sysv4.2uw2* | sysv4.3*)
8004      lt_prog_compiler_wl='-Wl,'
8005      lt_prog_compiler_pic='-KPIC'
8006      lt_prog_compiler_static='-Bstatic'
8007      ;;
8008
8009    sysv4*MP*)
8010      if test -d /usr/nec ;then
8011        lt_prog_compiler_pic='-Kconform_pic'
8012        lt_prog_compiler_static='-Bstatic'
8013      fi
8014      ;;
8015
8016    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8017      lt_prog_compiler_wl='-Wl,'
8018      lt_prog_compiler_pic='-KPIC'
8019      lt_prog_compiler_static='-Bstatic'
8020      ;;
8021
8022    unicos*)
8023      lt_prog_compiler_wl='-Wl,'
8024      lt_prog_compiler_can_build_shared=no
8025      ;;
8026
8027    uts4*)
8028      lt_prog_compiler_pic='-pic'
8029      lt_prog_compiler_static='-Bstatic'
8030      ;;
8031
8032    *)
8033      lt_prog_compiler_can_build_shared=no
8034      ;;
8035    esac
8036  fi
8037
8038echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8039echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8040
8041#
8042# Check to make sure the PIC flag actually works.
8043#
8044if test -n "$lt_prog_compiler_pic"; then
8045
8046echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8047echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8048if test "${lt_prog_compiler_pic_works+set}" = set; then
8049  echo $ECHO_N "(cached) $ECHO_C" >&6
8050else
8051  lt_prog_compiler_pic_works=no
8052  ac_outfile=conftest.$ac_objext
8053   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8054   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8055   # Insert the option either (1) after the last *FLAGS variable, or
8056   # (2) before a word containing "conftest.", or (3) at the end.
8057   # Note that $ac_compile itself does not contain backslashes and begins
8058   # with a dollar sign (not a hyphen), so the echo should work correctly.
8059   # The option is referenced via a variable to avoid confusing sed.
8060   lt_compile=`echo "$ac_compile" | $SED \
8061   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8062   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8063   -e 's:$: $lt_compiler_flag:'`
8064   (eval echo "\"\$as_me:8064: $lt_compile\"" >&5)
8065   (eval "$lt_compile" 2>conftest.err)
8066   ac_status=$?
8067   cat conftest.err >&5
8068   echo "$as_me:8068: \$? = $ac_status" >&5
8069   if (exit $ac_status) && test -s "$ac_outfile"; then
8070     # The compiler can only warn and ignore the option if not recognized
8071     # So say no if there are warnings other than the usual output.
8072     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8073     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8074     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8075       lt_prog_compiler_pic_works=yes
8076     fi
8077   fi
8078   $rm conftest*
8079
8080fi
8081echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8082echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8083
8084if test x"$lt_prog_compiler_pic_works" = xyes; then
8085    case $lt_prog_compiler_pic in
8086     "" | " "*) ;;
8087     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8088     esac
8089else
8090    lt_prog_compiler_pic=
8091     lt_prog_compiler_can_build_shared=no
8092fi
8093
8094fi
8095case $host_os in
8096  # For platforms which do not support PIC, -DPIC is meaningless:
8097  *djgpp*)
8098    lt_prog_compiler_pic=
8099    ;;
8100  *)
8101    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8102    ;;
8103esac
8104
8105#
8106# Check to make sure the static flag actually works.
8107#
8108wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8109echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8110echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8111if test "${lt_prog_compiler_static_works+set}" = set; then
8112  echo $ECHO_N "(cached) $ECHO_C" >&6
8113else
8114  lt_prog_compiler_static_works=no
8115   save_LDFLAGS="$LDFLAGS"
8116   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8117   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8118   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8119     # The linker can only warn and ignore the option if not recognized
8120     # So say no if there are warnings
8121     if test -s conftest.err; then
8122       # Append any errors to the config.log.
8123       cat conftest.err 1>&5
8124       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8125       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8126       if diff conftest.exp conftest.er2 >/dev/null; then
8127         lt_prog_compiler_static_works=yes
8128       fi
8129     else
8130       lt_prog_compiler_static_works=yes
8131     fi
8132   fi
8133   $rm conftest*
8134   LDFLAGS="$save_LDFLAGS"
8135
8136fi
8137echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8138echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8139
8140if test x"$lt_prog_compiler_static_works" = xyes; then
8141    :
8142else
8143    lt_prog_compiler_static=
8144fi
8145
8146
8147echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8148echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8149if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8150  echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152  lt_cv_prog_compiler_c_o=no
8153   $rm -r conftest 2>/dev/null
8154   mkdir conftest
8155   cd conftest
8156   mkdir out
8157   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8158
8159   lt_compiler_flag="-o out/conftest2.$ac_objext"
8160   # Insert the option either (1) after the last *FLAGS variable, or
8161   # (2) before a word containing "conftest.", or (3) at the end.
8162   # Note that $ac_compile itself does not contain backslashes and begins
8163   # with a dollar sign (not a hyphen), so the echo should work correctly.
8164   lt_compile=`echo "$ac_compile" | $SED \
8165   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8166   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8167   -e 's:$: $lt_compiler_flag:'`
8168   (eval echo "\"\$as_me:8168: $lt_compile\"" >&5)
8169   (eval "$lt_compile" 2>out/conftest.err)
8170   ac_status=$?
8171   cat out/conftest.err >&5
8172   echo "$as_me:8172: \$? = $ac_status" >&5
8173   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8174   then
8175     # The compiler can only warn and ignore the option if not recognized
8176     # So say no if there are warnings
8177     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8178     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8179     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8180       lt_cv_prog_compiler_c_o=yes
8181     fi
8182   fi
8183   chmod u+w . 2>&5
8184   $rm conftest*
8185   # SGI C++ compiler will create directory out/ii_files/ for
8186   # template instantiation
8187   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8188   $rm out/* && rmdir out
8189   cd ..
8190   rmdir conftest
8191   $rm conftest*
8192
8193fi
8194echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8195echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8196
8197
8198hard_links="nottested"
8199if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8200  # do not overwrite the value of need_locks provided by the user
8201  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8202echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8203  hard_links=yes
8204  $rm conftest*
8205  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8206  touch conftest.a
8207  ln conftest.a conftest.b 2>&5 || hard_links=no
8208  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8209  echo "$as_me:$LINENO: result: $hard_links" >&5
8210echo "${ECHO_T}$hard_links" >&6
8211  if test "$hard_links" = no; then
8212    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8213echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8214    need_locks=warn
8215  fi
8216else
8217  need_locks=no
8218fi
8219
8220echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8221echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8222
8223  runpath_var=
8224  allow_undefined_flag=
8225  enable_shared_with_static_runtimes=no
8226  archive_cmds=
8227  archive_expsym_cmds=
8228  old_archive_From_new_cmds=
8229  old_archive_from_expsyms_cmds=
8230  export_dynamic_flag_spec=
8231  whole_archive_flag_spec=
8232  thread_safe_flag_spec=
8233  hardcode_libdir_flag_spec=
8234  hardcode_libdir_flag_spec_ld=
8235  hardcode_libdir_separator=
8236  hardcode_direct=no
8237  hardcode_minus_L=no
8238  hardcode_shlibpath_var=unsupported
8239  link_all_deplibs=unknown
8240  hardcode_automatic=no
8241  module_cmds=
8242  module_expsym_cmds=
8243  always_export_symbols=no
8244  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8245  # include_expsyms should be a list of space-separated symbols to be *always*
8246  # included in the symbol list
8247  include_expsyms=
8248  # exclude_expsyms can be an extended regexp of symbols to exclude
8249  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8250  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8251  # as well as any symbol that contains `d'.
8252  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8253  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8254  # platforms (ab)use it in PIC code, but their linkers get confused if
8255  # the symbol is explicitly referenced.  Since portable code cannot
8256  # rely on this symbol name, it's probably fine to never include it in
8257  # preloaded symbol tables.
8258  extract_expsyms_cmds=
8259  # Just being paranoid about ensuring that cc_basename is set.
8260  for cc_temp in $compiler""; do
8261  case $cc_temp in
8262    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8263    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8264    \-*) ;;
8265    *) break;;
8266  esac
8267done
8268cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8269
8270  case $host_os in
8271  cygwin* | mingw* | pw32*)
8272    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8273    # When not using gcc, we currently assume that we are using
8274    # Microsoft Visual C++.
8275    if test "$GCC" != yes; then
8276      with_gnu_ld=no
8277    fi
8278    ;;
8279  interix*)
8280    # we just hope/assume this is gcc and not c89 (= MSVC++)
8281    with_gnu_ld=yes
8282    ;;
8283  openbsd*)
8284    with_gnu_ld=no
8285    ;;
8286  esac
8287
8288  ld_shlibs=yes
8289  if test "$with_gnu_ld" = yes; then
8290    # If archive_cmds runs LD, not CC, wlarc should be empty
8291    wlarc='${wl}'
8292
8293    # Set some defaults for GNU ld with shared library support. These
8294    # are reset later if shared libraries are not supported. Putting them
8295    # here allows them to be overridden if necessary.
8296    runpath_var=LD_RUN_PATH
8297    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8298    export_dynamic_flag_spec='${wl}--export-dynamic'
8299    # ancient GNU ld didn't support --whole-archive et. al.
8300    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8301        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8302      else
8303        whole_archive_flag_spec=
8304    fi
8305    supports_anon_versioning=no
8306    case `$LD -v 2>/dev/null` in
8307      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8308      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8309      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8310      *\ 2.11.*) ;; # other 2.11 versions
8311      *) supports_anon_versioning=yes ;;
8312    esac
8313
8314    # See if GNU ld supports shared libraries.
8315    case $host_os in
8316    aix3* | aix4* | aix5*)
8317      # On AIX/PPC, the GNU linker is very broken
8318      if test "$host_cpu" != ia64; then
8319        ld_shlibs=no
8320        cat <<EOF 1>&2
8321
8322*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8323*** to be unable to reliably create shared libraries on AIX.
8324*** Therefore, libtool is disabling shared libraries support.  If you
8325*** really care for shared libraries, you may want to modify your PATH
8326*** so that a non-GNU linker is found, and then restart.
8327
8328EOF
8329      fi
8330      ;;
8331
8332    amigaos*)
8333      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)'
8334      hardcode_libdir_flag_spec='-L$libdir'
8335      hardcode_minus_L=yes
8336
8337      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8338      # that the semantics of dynamic libraries on AmigaOS, at least up
8339      # to version 4, is to share data among multiple programs linked
8340      # with the same dynamic library.  Since this doesn't match the
8341      # behavior of shared libraries on other platforms, we can't use
8342      # them.
8343      ld_shlibs=no
8344      ;;
8345
8346    beos*)
8347      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8348        allow_undefined_flag=unsupported
8349        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8350        # support --undefined.  This deserves some investigation.  FIXME
8351        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352      else
8353        ld_shlibs=no
8354      fi
8355      ;;
8356
8357    cygwin* | mingw* | pw32*)
8358      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8359      # as there is no search path for DLLs.
8360      hardcode_libdir_flag_spec='-L$libdir'
8361      allow_undefined_flag=unsupported
8362      always_export_symbols=no
8363      enable_shared_with_static_runtimes=yes
8364      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8365
8366      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8367        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8368        # If the export-symbols file already is a .def file (1st line
8369        # is EXPORTS), use it as is; otherwise, prepend...
8370        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8371          cp $export_symbols $output_objdir/$soname.def;
8372        else
8373          echo EXPORTS > $output_objdir/$soname.def;
8374          cat $export_symbols >> $output_objdir/$soname.def;
8375        fi~
8376        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8377      else
8378        ld_shlibs=no
8379      fi
8380      ;;
8381
8382    interix3*)
8383      hardcode_direct=no
8384      hardcode_shlibpath_var=no
8385      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8386      export_dynamic_flag_spec='${wl}-E'
8387      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8388      # Instead, shared libraries are loaded at an image base (0x10000000 by
8389      # default) and relocated if they conflict, which is a slow very memory
8390      # consuming and fragmenting process.  To avoid this, we pick a random,
8391      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8392      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8393      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8394      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'
8395      ;;
8396
8397    linux*)
8398      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8399        tmp_addflag=
8400        case $cc_basename,$host_cpu in
8401        pgcc*)                          # Portland Group C compiler
8402          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'
8403          tmp_addflag=' $pic_flag'
8404          ;;
8405        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8406          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'
8407          tmp_addflag=' $pic_flag -Mnomain' ;;
8408        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8409          tmp_addflag=' -i_dynamic' ;;
8410        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8411          tmp_addflag=' -i_dynamic -nofor_main' ;;
8412        ifc* | ifort*)                  # Intel Fortran compiler
8413          tmp_addflag=' -nofor_main' ;;
8414        esac
8415        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8416
8417        if test $supports_anon_versioning = yes; then
8418          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8419  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8420  $echo "local: *; };" >> $output_objdir/$libname.ver~
8421          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8422        fi
8423      else
8424        ld_shlibs=no
8425      fi
8426      ;;
8427
8428    netbsd*)
8429      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8430        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8431        wlarc=
8432      else
8433        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8434        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8435      fi
8436      ;;
8437
8438    solaris*)
8439      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8440        ld_shlibs=no
8441        cat <<EOF 1>&2
8442
8443*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8444*** create shared libraries on Solaris systems.  Therefore, libtool
8445*** is disabling shared libraries support.  We urge you to upgrade GNU
8446*** binutils to release 2.9.1 or newer.  Another option is to modify
8447*** your PATH or compiler configuration so that the native linker is
8448*** used, and then restart.
8449
8450EOF
8451      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8452        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8453        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8454      else
8455        ld_shlibs=no
8456      fi
8457      ;;
8458
8459    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8460      case `$LD -v 2>&1` in
8461        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8462        ld_shlibs=no
8463        cat <<_LT_EOF 1>&2
8464
8465*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8466*** reliably create shared libraries on SCO systems.  Therefore, libtool
8467*** is disabling shared libraries support.  We urge you to upgrade GNU
8468*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8469*** your PATH or compiler configuration so that the native linker is
8470*** used, and then restart.
8471
8472_LT_EOF
8473        ;;
8474        *)
8475          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8476            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8477            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8478            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8479          else
8480            ld_shlibs=no
8481          fi
8482        ;;
8483      esac
8484      ;;
8485
8486    sunos4*)
8487      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8488      wlarc=
8489      hardcode_direct=yes
8490      hardcode_shlibpath_var=no
8491      ;;
8492
8493    *)
8494      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8495        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8496        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8497      else
8498        ld_shlibs=no
8499      fi
8500      ;;
8501    esac
8502
8503    if test "$ld_shlibs" = no; then
8504      runpath_var=
8505      hardcode_libdir_flag_spec=
8506      export_dynamic_flag_spec=
8507      whole_archive_flag_spec=
8508    fi
8509  else
8510    # PORTME fill in a description of your system's linker (not GNU ld)
8511    case $host_os in
8512    aix3*)
8513      allow_undefined_flag=unsupported
8514      always_export_symbols=yes
8515      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'
8516      # Note: this linker hardcodes the directories in LIBPATH if there
8517      # are no directories specified by -L.
8518      hardcode_minus_L=yes
8519      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8520        # Neither direct hardcoding nor static linking is supported with a
8521        # broken collect2.
8522        hardcode_direct=unsupported
8523      fi
8524      ;;
8525
8526    aix4* | aix5*)
8527      if test "$host_cpu" = ia64; then
8528        # On IA64, the linker does run time linking by default, so we don't
8529        # have to do anything special.
8530        aix_use_runtimelinking=no
8531        exp_sym_flag='-Bexport'
8532        no_entry_flag=""
8533      else
8534        # If we're using GNU nm, then we don't want the "-C" option.
8535        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8536        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8537          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'
8538        else
8539          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'
8540        fi
8541        aix_use_runtimelinking=no
8542
8543        # Test if we are trying to use run time linking or normal
8544        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8545        # need to do runtime linking.
8546        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8547          for ld_flag in $LDFLAGS; do
8548          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8549            aix_use_runtimelinking=yes
8550            break
8551          fi
8552          done
8553          ;;
8554        esac
8555
8556        exp_sym_flag='-bexport'
8557        no_entry_flag='-bnoentry'
8558      fi
8559
8560      # When large executables or shared objects are built, AIX ld can
8561      # have problems creating the table of contents.  If linking a library
8562      # or program results in "error TOC overflow" add -mminimal-toc to
8563      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8564      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8565
8566      archive_cmds=''
8567      hardcode_direct=yes
8568      hardcode_libdir_separator=':'
8569      link_all_deplibs=yes
8570
8571      if test "$GCC" = yes; then
8572        case $host_os in aix4.[012]|aix4.[012].*)
8573        # We only want to do this on AIX 4.2 and lower, the check
8574        # below for broken collect2 doesn't work under 4.3+
8575          collect2name=`${CC} -print-prog-name=collect2`
8576          if test -f "$collect2name" && \
8577           strings "$collect2name" | grep resolve_lib_name >/dev/null
8578          then
8579          # We have reworked collect2
8580          hardcode_direct=yes
8581          else
8582          # We have old collect2
8583          hardcode_direct=unsupported
8584          # It fails to find uninstalled libraries when the uninstalled
8585          # path is not listed in the libpath.  Setting hardcode_minus_L
8586          # to unsupported forces relinking
8587          hardcode_minus_L=yes
8588          hardcode_libdir_flag_spec='-L$libdir'
8589          hardcode_libdir_separator=
8590          fi
8591          ;;
8592        esac
8593        shared_flag='-shared'
8594        if test "$aix_use_runtimelinking" = yes; then
8595          shared_flag="$shared_flag "'${wl}-G'
8596        fi
8597      else
8598        # not using gcc
8599        if test "$host_cpu" = ia64; then
8600        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8601        # chokes on -Wl,-G. The following line is correct:
8602          shared_flag='-G'
8603        else
8604          if test "$aix_use_runtimelinking" = yes; then
8605            shared_flag='${wl}-G'
8606          else
8607            shared_flag='${wl}-bM:SRE'
8608          fi
8609        fi
8610      fi
8611
8612      # It seems that -bexpall does not export symbols beginning with
8613      # underscore (_), so it is better to generate a list of symbols to export.
8614      always_export_symbols=yes
8615      if test "$aix_use_runtimelinking" = yes; then
8616        # Warning - without using the other runtime loading flags (-brtl),
8617        # -berok will link without error, but may produce a broken library.
8618        allow_undefined_flag='-berok'
8619       # Determine the default libpath from the value encoded in an empty executable.
8620       cat >conftest.$ac_ext <<_ACEOF
8621/* confdefs.h.  */
8622_ACEOF
8623cat confdefs.h >>conftest.$ac_ext
8624cat >>conftest.$ac_ext <<_ACEOF
8625/* end confdefs.h.  */
8626
8627int
8628main ()
8629{
8630
8631  ;
8632  return 0;
8633}
8634_ACEOF
8635rm -f conftest.$ac_objext conftest$ac_exeext
8636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8637  (eval $ac_link) 2>conftest.er1
8638  ac_status=$?
8639  grep -v '^ *+' conftest.er1 >conftest.err
8640  rm -f conftest.er1
8641  cat conftest.err >&5
8642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643  (exit $ac_status); } &&
8644         { ac_try='test -z "$ac_c_werror_flag"
8645                         || test ! -s conftest.err'
8646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647  (eval $ac_try) 2>&5
8648  ac_status=$?
8649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650  (exit $ac_status); }; } &&
8651         { ac_try='test -s conftest$ac_exeext'
8652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653  (eval $ac_try) 2>&5
8654  ac_status=$?
8655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656  (exit $ac_status); }; }; then
8657
8658aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8659}'`
8660# Check for a 64-bit object if we didn't find anything.
8661if 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; }
8662}'`; fi
8663else
8664  echo "$as_me: failed program was:" >&5
8665sed 's/^/| /' conftest.$ac_ext >&5
8666
8667fi
8668rm -f conftest.err conftest.$ac_objext \
8669      conftest$ac_exeext conftest.$ac_ext
8670if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8671
8672       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8673        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"
8674       else
8675        if test "$host_cpu" = ia64; then
8676          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8677          allow_undefined_flag="-z nodefs"
8678          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"
8679        else
8680         # Determine the default libpath from the value encoded in an empty executable.
8681         cat >conftest.$ac_ext <<_ACEOF
8682/* confdefs.h.  */
8683_ACEOF
8684cat confdefs.h >>conftest.$ac_ext
8685cat >>conftest.$ac_ext <<_ACEOF
8686/* end confdefs.h.  */
8687
8688int
8689main ()
8690{
8691
8692  ;
8693  return 0;
8694}
8695_ACEOF
8696rm -f conftest.$ac_objext conftest$ac_exeext
8697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698  (eval $ac_link) 2>conftest.er1
8699  ac_status=$?
8700  grep -v '^ *+' conftest.er1 >conftest.err
8701  rm -f conftest.er1
8702  cat conftest.err >&5
8703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704  (exit $ac_status); } &&
8705         { ac_try='test -z "$ac_c_werror_flag"
8706                         || test ! -s conftest.err'
8707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708  (eval $ac_try) 2>&5
8709  ac_status=$?
8710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711  (exit $ac_status); }; } &&
8712         { ac_try='test -s conftest$ac_exeext'
8713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714  (eval $ac_try) 2>&5
8715  ac_status=$?
8716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717  (exit $ac_status); }; }; then
8718
8719aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8720}'`
8721# Check for a 64-bit object if we didn't find anything.
8722if 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; }
8723}'`; fi
8724else
8725  echo "$as_me: failed program was:" >&5
8726sed 's/^/| /' conftest.$ac_ext >&5
8727
8728fi
8729rm -f conftest.err conftest.$ac_objext \
8730      conftest$ac_exeext conftest.$ac_ext
8731if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8732
8733         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8734          # Warning - without using the other run time loading flags,
8735          # -berok will link without error, but may produce a broken library.
8736          no_undefined_flag=' ${wl}-bernotok'
8737          allow_undefined_flag=' ${wl}-berok'
8738          # Exported symbols can be pulled into shared objects from archives
8739          whole_archive_flag_spec='$convenience'
8740          archive_cmds_need_lc=yes
8741          # This is similar to how AIX traditionally builds its shared libraries.
8742          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'
8743        fi
8744      fi
8745      ;;
8746
8747    amigaos*)
8748      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)'
8749      hardcode_libdir_flag_spec='-L$libdir'
8750      hardcode_minus_L=yes
8751      # see comment about different semantics on the GNU ld section
8752      ld_shlibs=no
8753      ;;
8754
8755    bsdi[45]*)
8756      export_dynamic_flag_spec=-rdynamic
8757      ;;
8758
8759    cygwin* | mingw* | pw32*)
8760      # When not using gcc, we currently assume that we are using
8761      # Microsoft Visual C++.
8762      # hardcode_libdir_flag_spec is actually meaningless, as there is
8763      # no search path for DLLs.
8764      hardcode_libdir_flag_spec=' '
8765      allow_undefined_flag=unsupported
8766      # Tell ltmain to make .lib files, not .a files.
8767      libext=lib
8768      # Tell ltmain to make .dll files, not .so files.
8769      shrext_cmds=".dll"
8770      # FIXME: Setting linknames here is a bad hack.
8771      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8772      # The linker will automatically build a .lib file if we build a DLL.
8773      old_archive_From_new_cmds='true'
8774      # FIXME: Should let the user specify the lib program.
8775      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8776      fix_srcfile_path='`cygpath -w "$srcfile"`'
8777      enable_shared_with_static_runtimes=yes
8778      ;;
8779
8780    darwin* | rhapsody*)
8781      case $host_os in
8782        rhapsody* | darwin1.[012])
8783         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8784         ;;
8785       *) # Darwin 1.3 on
8786         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8787           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8788         else
8789           case ${MACOSX_DEPLOYMENT_TARGET} in
8790             10.[012])
8791               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8792               ;;
8793             10.*)
8794               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8795               ;;
8796           esac
8797         fi
8798         ;;
8799      esac
8800      archive_cmds_need_lc=no
8801      hardcode_direct=no
8802      hardcode_automatic=yes
8803      hardcode_shlibpath_var=unsupported
8804      whole_archive_flag_spec=''
8805      link_all_deplibs=yes
8806    if test "$GCC" = yes ; then
8807        output_verbose_link_cmd='echo'
8808        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8809      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8810      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8811      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8812      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8813    else
8814      case $cc_basename in
8815        xlc*)
8816         output_verbose_link_cmd='echo'
8817         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8818         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8819          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8820         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}'
8821          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}'
8822          ;;
8823       *)
8824         ld_shlibs=no
8825          ;;
8826      esac
8827    fi
8828      ;;
8829
8830    dgux*)
8831      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8832      hardcode_libdir_flag_spec='-L$libdir'
8833      hardcode_shlibpath_var=no
8834      ;;
8835
8836    freebsd1*)
8837      ld_shlibs=no
8838      ;;
8839
8840    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8841    # support.  Future versions do this automatically, but an explicit c++rt0.o
8842    # does not break anything, and helps significantly (at the cost of a little
8843    # extra space).
8844    freebsd2.2*)
8845      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8846      hardcode_libdir_flag_spec='-R$libdir'
8847      hardcode_direct=yes
8848      hardcode_shlibpath_var=no
8849      ;;
8850
8851    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8852    freebsd2*)
8853      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8854      hardcode_direct=yes
8855      hardcode_minus_L=yes
8856      hardcode_shlibpath_var=no
8857      ;;
8858
8859    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8860    freebsd* | kfreebsd*-gnu | dragonfly*)
8861      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8862      hardcode_libdir_flag_spec='-R$libdir'
8863      hardcode_direct=yes
8864      hardcode_shlibpath_var=no
8865      ;;
8866
8867    hpux9*)
8868      if test "$GCC" = yes; then
8869        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'
8870      else
8871        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'
8872      fi
8873      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8874      hardcode_libdir_separator=:
8875      hardcode_direct=yes
8876
8877      # hardcode_minus_L: Not really in the search PATH,
8878      # but as the default location of the library.
8879      hardcode_minus_L=yes
8880      export_dynamic_flag_spec='${wl}-E'
8881      ;;
8882
8883    hpux10*)
8884      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8885        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8886      else
8887        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8888      fi
8889      if test "$with_gnu_ld" = no; then
8890        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8891        hardcode_libdir_separator=:
8892
8893        hardcode_direct=yes
8894        export_dynamic_flag_spec='${wl}-E'
8895
8896        # hardcode_minus_L: Not really in the search PATH,
8897        # but as the default location of the library.
8898        hardcode_minus_L=yes
8899      fi
8900      ;;
8901
8902    hpux11*)
8903      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8904        case $host_cpu in
8905        hppa*64*)
8906          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8907          ;;
8908        ia64*)
8909          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8910          ;;
8911        *)
8912          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8913          ;;
8914        esac
8915      else
8916        case $host_cpu in
8917        hppa*64*)
8918          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8919          ;;
8920        ia64*)
8921          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8922          ;;
8923        *)
8924          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8925          ;;
8926        esac
8927      fi
8928      if test "$with_gnu_ld" = no; then
8929        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8930        hardcode_libdir_separator=:
8931
8932        case $host_cpu in
8933        hppa*64*|ia64*)
8934          hardcode_libdir_flag_spec_ld='+b $libdir'
8935          hardcode_direct=no
8936          hardcode_shlibpath_var=no
8937          ;;
8938        *)
8939          hardcode_direct=yes
8940          export_dynamic_flag_spec='${wl}-E'
8941
8942          # hardcode_minus_L: Not really in the search PATH,
8943          # but as the default location of the library.
8944          hardcode_minus_L=yes
8945          ;;
8946        esac
8947      fi
8948      ;;
8949
8950    irix5* | irix6* | nonstopux*)
8951      if test "$GCC" = yes; then
8952        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'
8953      else
8954        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'
8955        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8956      fi
8957      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8958      hardcode_libdir_separator=:
8959      link_all_deplibs=yes
8960      ;;
8961
8962    netbsd*)
8963      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8964        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8965      else
8966        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8967      fi
8968      hardcode_libdir_flag_spec='-R$libdir'
8969      hardcode_direct=yes
8970      hardcode_shlibpath_var=no
8971      ;;
8972
8973    newsos6)
8974      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8975      hardcode_direct=yes
8976      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8977      hardcode_libdir_separator=:
8978      hardcode_shlibpath_var=no
8979      ;;
8980
8981    openbsd*)
8982      hardcode_direct=yes
8983      hardcode_shlibpath_var=no
8984      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8985        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8986        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8987        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8988        export_dynamic_flag_spec='${wl}-E'
8989      else
8990       case $host_os in
8991         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8992           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8993           hardcode_libdir_flag_spec='-R$libdir'
8994           ;;
8995         *)
8996           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8997           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8998           ;;
8999       esac
9000      fi
9001      ;;
9002
9003    os2*)
9004      hardcode_libdir_flag_spec='-L$libdir'
9005      hardcode_minus_L=yes
9006      allow_undefined_flag=unsupported
9007      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'
9008      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9009      ;;
9010
9011    osf3*)
9012      if test "$GCC" = yes; then
9013        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9014        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'
9015      else
9016        allow_undefined_flag=' -expect_unresolved \*'
9017        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'
9018      fi
9019      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9020      hardcode_libdir_separator=:
9021      ;;
9022
9023    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9024      if test "$GCC" = yes; then
9025        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9026        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'
9027        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9028      else
9029        allow_undefined_flag=' -expect_unresolved \*'
9030        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'
9031        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9032        $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'
9033
9034        # Both c and cxx compiler support -rpath directly
9035        hardcode_libdir_flag_spec='-rpath $libdir'
9036      fi
9037      hardcode_libdir_separator=:
9038      ;;
9039
9040    solaris*)
9041      no_undefined_flag=' -z text'
9042      if test "$GCC" = yes; then
9043        wlarc='${wl}'
9044        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9045        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9046          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9047      else
9048        wlarc=''
9049        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9050        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9051        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9052      fi
9053      hardcode_libdir_flag_spec='-R$libdir'
9054      hardcode_shlibpath_var=no
9055      case $host_os in
9056      solaris2.[0-5] | solaris2.[0-5].*) ;;
9057      *)
9058        # The compiler driver will combine linker options so we
9059        # cannot just pass the convience library names through
9060        # without $wl, iff we do not link with $LD.
9061        # Luckily, gcc supports the same syntax we need for Sun Studio.
9062        # Supported since Solaris 2.6 (maybe 2.5.1?)
9063        case $wlarc in
9064        '')
9065          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9066        *)
9067          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' ;;
9068        esac ;;
9069      esac
9070      link_all_deplibs=yes
9071      ;;
9072
9073    sunos4*)
9074      if test "x$host_vendor" = xsequent; then
9075        # Use $CC to link under sequent, because it throws in some extra .o
9076        # files that make .init and .fini sections work.
9077        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9078      else
9079        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9080      fi
9081      hardcode_libdir_flag_spec='-L$libdir'
9082      hardcode_direct=yes
9083      hardcode_minus_L=yes
9084      hardcode_shlibpath_var=no
9085      ;;
9086
9087    sysv4)
9088      case $host_vendor in
9089        sni)
9090          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091          hardcode_direct=yes # is this really true???
9092        ;;
9093        siemens)
9094          ## LD is ld it makes a PLAMLIB
9095          ## CC just makes a GrossModule.
9096          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9097          reload_cmds='$CC -r -o $output$reload_objs'
9098          hardcode_direct=no
9099        ;;
9100        motorola)
9101          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9102          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9103        ;;
9104      esac
9105      runpath_var='LD_RUN_PATH'
9106      hardcode_shlibpath_var=no
9107      ;;
9108
9109    sysv4.3*)
9110      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111      hardcode_shlibpath_var=no
9112      export_dynamic_flag_spec='-Bexport'
9113      ;;
9114
9115    sysv4*MP*)
9116      if test -d /usr/nec; then
9117        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118        hardcode_shlibpath_var=no
9119        runpath_var=LD_RUN_PATH
9120        hardcode_runpath_var=yes
9121        ld_shlibs=yes
9122      fi
9123      ;;
9124
9125    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9126      no_undefined_flag='${wl}-z,text'
9127      archive_cmds_need_lc=no
9128      hardcode_shlibpath_var=no
9129      runpath_var='LD_RUN_PATH'
9130
9131      if test "$GCC" = yes; then
9132        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9134      else
9135        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9136        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9137      fi
9138      ;;
9139
9140    sysv5* | sco3.2v5* | sco5v6*)
9141      # Note: We can NOT use -z defs as we might desire, because we do not
9142      # link with -lc, and that would cause any symbols used from libc to
9143      # always be unresolved, which means just about no library would
9144      # ever link correctly.  If we're not using GNU ld we use -z text
9145      # though, which does catch some bad symbols but isn't as heavy-handed
9146      # as -z defs.
9147      no_undefined_flag='${wl}-z,text'
9148      allow_undefined_flag='${wl}-z,nodefs'
9149      archive_cmds_need_lc=no
9150      hardcode_shlibpath_var=no
9151      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9152      hardcode_libdir_separator=':'
9153      link_all_deplibs=yes
9154      export_dynamic_flag_spec='${wl}-Bexport'
9155      runpath_var='LD_RUN_PATH'
9156
9157      if test "$GCC" = yes; then
9158        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9159        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9160      else
9161        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9162        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9163      fi
9164      ;;
9165
9166    uts4*)
9167      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9168      hardcode_libdir_flag_spec='-L$libdir'
9169      hardcode_shlibpath_var=no
9170      ;;
9171
9172    *)
9173      ld_shlibs=no
9174      ;;
9175    esac
9176  fi
9177
9178echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9179echo "${ECHO_T}$ld_shlibs" >&6
9180test "$ld_shlibs" = no && can_build_shared=no
9181
9182#
9183# Do we need to explicitly link libc?
9184#
9185case "x$archive_cmds_need_lc" in
9186x|xyes)
9187  # Assume -lc should be added
9188  archive_cmds_need_lc=yes
9189
9190  if test "$enable_shared" = yes && test "$GCC" = yes; then
9191    case $archive_cmds in
9192    *'~'*)
9193      # FIXME: we may have to deal with multi-command sequences.
9194      ;;
9195    '$CC '*)
9196      # Test whether the compiler implicitly links with -lc since on some
9197      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9198      # to ld, don't add -lc before -lgcc.
9199      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9200echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9201      $rm conftest*
9202      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9203
9204      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9205  (eval $ac_compile) 2>&5
9206  ac_status=$?
9207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208  (exit $ac_status); } 2>conftest.err; then
9209        soname=conftest
9210        lib=conftest
9211        libobjs=conftest.$ac_objext
9212        deplibs=
9213        wl=$lt_prog_compiler_wl
9214        pic_flag=$lt_prog_compiler_pic
9215        compiler_flags=-v
9216        linker_flags=-v
9217        verstring=
9218        output_objdir=.
9219        libname=conftest
9220        lt_save_allow_undefined_flag=$allow_undefined_flag
9221        allow_undefined_flag=
9222        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9223  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9224  ac_status=$?
9225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226  (exit $ac_status); }
9227        then
9228          archive_cmds_need_lc=no
9229        else
9230          archive_cmds_need_lc=yes
9231        fi
9232        allow_undefined_flag=$lt_save_allow_undefined_flag
9233      else
9234        cat conftest.err 1>&5
9235      fi
9236      $rm conftest*
9237      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9238echo "${ECHO_T}$archive_cmds_need_lc" >&6
9239      ;;
9240    esac
9241  fi
9242  ;;
9243esac
9244
9245echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9246echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9247library_names_spec=
9248libname_spec='lib$name'
9249soname_spec=
9250shrext_cmds=".so"
9251postinstall_cmds=
9252postuninstall_cmds=
9253finish_cmds=
9254finish_eval=
9255shlibpath_var=
9256shlibpath_overrides_runpath=unknown
9257version_type=none
9258dynamic_linker="$host_os ld.so"
9259sys_lib_dlsearch_path_spec="/lib /usr/lib"
9260if test "$GCC" = yes; then
9261  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9262  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9263    # if the path contains ";" then we assume it to be the separator
9264    # otherwise default to the standard path separator (i.e. ":") - it is
9265    # assumed that no part of a normal pathname contains ";" but that should
9266    # okay in the real world where ";" in dirpaths is itself problematic.
9267    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9268  else
9269    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9270  fi
9271else
9272  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9273fi
9274need_lib_prefix=unknown
9275hardcode_into_libs=no
9276
9277# when you set need_version to no, make sure it does not cause -set_version
9278# flags to be left without arguments
9279need_version=unknown
9280
9281case $host_os in
9282aix3*)
9283  version_type=linux
9284  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9285  shlibpath_var=LIBPATH
9286
9287  # AIX 3 has no versioning support, so we append a major version to the name.
9288  soname_spec='${libname}${release}${shared_ext}$major'
9289  ;;
9290
9291aix4* | aix5*)
9292  version_type=linux
9293  need_lib_prefix=no
9294  need_version=no
9295  hardcode_into_libs=yes
9296  if test "$host_cpu" = ia64; then
9297    # AIX 5 supports IA64
9298    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9299    shlibpath_var=LD_LIBRARY_PATH
9300  else
9301    # With GCC up to 2.95.x, collect2 would create an import file
9302    # for dependence libraries.  The import file would start with
9303    # the line `#! .'.  This would cause the generated library to
9304    # depend on `.', always an invalid library.  This was fixed in
9305    # development snapshots of GCC prior to 3.0.
9306    case $host_os in
9307      aix4 | aix4.[01] | aix4.[01].*)
9308      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9309           echo ' yes '
9310           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9311        :
9312      else
9313        can_build_shared=no
9314      fi
9315      ;;
9316    esac
9317    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9318    # soname into executable. Probably we can add versioning support to
9319    # collect2, so additional links can be useful in future.
9320    if test "$aix_use_runtimelinking" = yes; then
9321      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9322      # instead of lib<name>.a to let people know that these are not
9323      # typical AIX shared libraries.
9324      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325    else
9326      # We preserve .a as extension for shared libraries through AIX4.2
9327      # and later when we are not doing run time linking.
9328      library_names_spec='${libname}${release}.a $libname.a'
9329      soname_spec='${libname}${release}${shared_ext}$major'
9330    fi
9331    shlibpath_var=LIBPATH
9332  fi
9333  ;;
9334
9335amigaos*)
9336  library_names_spec='$libname.ixlibrary $libname.a'
9337  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9338  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'
9339  ;;
9340
9341beos*)
9342  library_names_spec='${libname}${shared_ext}'
9343  dynamic_linker="$host_os ld.so"
9344  shlibpath_var=LIBRARY_PATH
9345  ;;
9346
9347bsdi[45]*)
9348  version_type=linux
9349  need_version=no
9350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351  soname_spec='${libname}${release}${shared_ext}$major'
9352  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9353  shlibpath_var=LD_LIBRARY_PATH
9354  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9355  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9356  # the default ld.so.conf also contains /usr/contrib/lib and
9357  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9358  # libtool to hard-code these into programs
9359  ;;
9360
9361cygwin* | mingw* | pw32*)
9362  version_type=windows
9363  shrext_cmds=".dll"
9364  need_version=no
9365  need_lib_prefix=no
9366
9367  case $GCC,$host_os in
9368  yes,cygwin* | yes,mingw* | yes,pw32*)
9369    library_names_spec='$libname.dll.a'
9370    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9371    postinstall_cmds='base_file=`basename \${file}`~
9372      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9373      dldir=$destdir/`dirname \$dlpath`~
9374      test -d \$dldir || mkdir -p \$dldir~
9375      $install_prog $dir/$dlname \$dldir/$dlname~
9376      chmod a+x \$dldir/$dlname'
9377    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9378      dlpath=$dir/\$dldll~
9379       $rm \$dlpath'
9380    shlibpath_overrides_runpath=yes
9381
9382    case $host_os in
9383    cygwin*)
9384      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9385      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9386      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9387      ;;
9388    mingw*)
9389      # MinGW DLLs use traditional 'lib' prefix
9390      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9391      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9392      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9393        # It is most probably a Windows format PATH printed by
9394        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9395        # path with ; separators, and with drive letters. We can handle the
9396        # drive letters (cygwin fileutils understands them), so leave them,
9397        # especially as we might pass files found there to a mingw objdump,
9398        # which wouldn't understand a cygwinified path. Ahh.
9399        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9400      else
9401        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9402      fi
9403      ;;
9404    pw32*)
9405      # pw32 DLLs use 'pw' prefix rather than 'lib'
9406      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9407      ;;
9408    esac
9409    ;;
9410
9411  *)
9412    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9413    ;;
9414  esac
9415  dynamic_linker='Win32 ld.exe'
9416  # FIXME: first we should search . and the directory the executable is in
9417  shlibpath_var=PATH
9418  ;;
9419
9420darwin* | rhapsody*)
9421  dynamic_linker="$host_os dyld"
9422  version_type=darwin
9423  need_lib_prefix=no
9424  need_version=no
9425  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9426  soname_spec='${libname}${release}${major}$shared_ext'
9427  shlibpath_overrides_runpath=yes
9428  shlibpath_var=DYLD_LIBRARY_PATH
9429  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9430  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9431  if test "$GCC" = yes; then
9432    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"`
9433  else
9434    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9435  fi
9436  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9437  ;;
9438
9439dgux*)
9440  version_type=linux
9441  need_lib_prefix=no
9442  need_version=no
9443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9444  soname_spec='${libname}${release}${shared_ext}$major'
9445  shlibpath_var=LD_LIBRARY_PATH
9446  ;;
9447
9448freebsd1*)
9449  dynamic_linker=no
9450  ;;
9451
9452kfreebsd*-gnu)
9453  version_type=linux
9454  need_lib_prefix=no
9455  need_version=no
9456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9457  soname_spec='${libname}${release}${shared_ext}$major'
9458  shlibpath_var=LD_LIBRARY_PATH
9459  shlibpath_overrides_runpath=no
9460  hardcode_into_libs=yes
9461  dynamic_linker='GNU ld.so'
9462  ;;
9463
9464freebsd* | dragonfly*)
9465  # DragonFly does not have aout.  When/if they implement a new
9466  # versioning mechanism, adjust this.
9467  if test -x /usr/bin/objformat; then
9468    objformat=`/usr/bin/objformat`
9469  else
9470    case $host_os in
9471    freebsd[123]*) objformat=aout ;;
9472    *) objformat=elf ;;
9473    esac
9474  fi
9475  version_type=freebsd-$objformat
9476  case $version_type in
9477    freebsd-elf*)
9478      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9479      need_version=no
9480      need_lib_prefix=no
9481      ;;
9482    freebsd-*)
9483      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9484      need_version=yes
9485      ;;
9486  esac
9487  shlibpath_var=LD_LIBRARY_PATH
9488  case $host_os in
9489  freebsd2*)
9490    shlibpath_overrides_runpath=yes
9491    ;;
9492  freebsd3.[01]* | freebsdelf3.[01]*)
9493    shlibpath_overrides_runpath=yes
9494    hardcode_into_libs=yes
9495    ;;
9496  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9497  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9498    shlibpath_overrides_runpath=no
9499    hardcode_into_libs=yes
9500    ;;
9501  freebsd*) # from 4.6 on
9502    shlibpath_overrides_runpath=yes
9503    hardcode_into_libs=yes
9504    ;;
9505  esac
9506  ;;
9507
9508gnu*)
9509  version_type=linux
9510  need_lib_prefix=no
9511  need_version=no
9512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9513  soname_spec='${libname}${release}${shared_ext}$major'
9514  shlibpath_var=LD_LIBRARY_PATH
9515  hardcode_into_libs=yes
9516  ;;
9517
9518hpux9* | hpux10* | hpux11*)
9519  # Give a soname corresponding to the major version so that dld.sl refuses to
9520  # link against other versions.
9521  version_type=sunos
9522  need_lib_prefix=no
9523  need_version=no
9524  case $host_cpu in
9525  ia64*)
9526    shrext_cmds='.so'
9527    hardcode_into_libs=yes
9528    dynamic_linker="$host_os dld.so"
9529    shlibpath_var=LD_LIBRARY_PATH
9530    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9531    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9532    soname_spec='${libname}${release}${shared_ext}$major'
9533    if test "X$HPUX_IA64_MODE" = X32; then
9534      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9535    else
9536      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9537    fi
9538    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9539    ;;
9540   hppa*64*)
9541     shrext_cmds='.sl'
9542     hardcode_into_libs=yes
9543     dynamic_linker="$host_os dld.sl"
9544     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9545     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9547     soname_spec='${libname}${release}${shared_ext}$major'
9548     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9549     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9550     ;;
9551   *)
9552    shrext_cmds='.sl'
9553    dynamic_linker="$host_os dld.sl"
9554    shlibpath_var=SHLIB_PATH
9555    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9556    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557    soname_spec='${libname}${release}${shared_ext}$major'
9558    ;;
9559  esac
9560  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9561  postinstall_cmds='chmod 555 $lib'
9562  ;;
9563
9564interix3*)
9565  version_type=linux
9566  need_lib_prefix=no
9567  need_version=no
9568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9569  soname_spec='${libname}${release}${shared_ext}$major'
9570  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9571  shlibpath_var=LD_LIBRARY_PATH
9572  shlibpath_overrides_runpath=no
9573  hardcode_into_libs=yes
9574  ;;
9575
9576irix5* | irix6* | nonstopux*)
9577  case $host_os in
9578    nonstopux*) version_type=nonstopux ;;
9579    *)
9580        if test "$lt_cv_prog_gnu_ld" = yes; then
9581                version_type=linux
9582        else
9583                version_type=irix
9584        fi ;;
9585  esac
9586  need_lib_prefix=no
9587  need_version=no
9588  soname_spec='${libname}${release}${shared_ext}$major'
9589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9590  case $host_os in
9591  irix5* | nonstopux*)
9592    libsuff= shlibsuff=
9593    ;;
9594  *)
9595    case $LD in # libtool.m4 will add one of these switches to LD
9596    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9597      libsuff= shlibsuff= libmagic=32-bit;;
9598    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9599      libsuff=32 shlibsuff=N32 libmagic=N32;;
9600    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9601      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9602    *) libsuff= shlibsuff= libmagic=never-match;;
9603    esac
9604    ;;
9605  esac
9606  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9607  shlibpath_overrides_runpath=no
9608  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9609  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9610  hardcode_into_libs=yes
9611  ;;
9612
9613# No shared lib support for Linux oldld, aout, or coff.
9614linux*oldld* | linux*aout* | linux*coff*)
9615  dynamic_linker=no
9616  ;;
9617
9618# This must be Linux ELF.
9619linux*)
9620  version_type=linux
9621  need_lib_prefix=no
9622  need_version=no
9623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9624  soname_spec='${libname}${release}${shared_ext}$major'
9625  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9626  shlibpath_var=LD_LIBRARY_PATH
9627  shlibpath_overrides_runpath=no
9628  # This implies no fast_install, which is unacceptable.
9629  # Some rework will be needed to allow for fast_install
9630  # before this can be enabled.
9631  hardcode_into_libs=yes
9632
9633  # Append ld.so.conf contents to the search path
9634  if test -f /etc/ld.so.conf; then
9635    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' ' '`
9636    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9637  fi
9638
9639  # We used to test for /lib/ld.so.1 and disable shared libraries on
9640  # powerpc, because MkLinux only supported shared libraries with the
9641  # GNU dynamic linker.  Since this was broken with cross compilers,
9642  # most powerpc-linux boxes support dynamic linking these days and
9643  # people can always --disable-shared, the test was removed, and we
9644  # assume the GNU/Linux dynamic linker is in use.
9645  dynamic_linker='GNU/Linux ld.so'
9646  ;;
9647
9648knetbsd*-gnu)
9649  version_type=linux
9650  need_lib_prefix=no
9651  need_version=no
9652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9653  soname_spec='${libname}${release}${shared_ext}$major'
9654  shlibpath_var=LD_LIBRARY_PATH
9655  shlibpath_overrides_runpath=no
9656  hardcode_into_libs=yes
9657  dynamic_linker='GNU ld.so'
9658  ;;
9659
9660netbsd*)
9661  version_type=sunos
9662  need_lib_prefix=no
9663  need_version=no
9664  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9665    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9666    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9667    dynamic_linker='NetBSD (a.out) ld.so'
9668  else
9669    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9670    soname_spec='${libname}${release}${shared_ext}$major'
9671    dynamic_linker='NetBSD ld.elf_so'
9672  fi
9673  shlibpath_var=LD_LIBRARY_PATH
9674  shlibpath_overrides_runpath=yes
9675  hardcode_into_libs=yes
9676  ;;
9677
9678newsos6)
9679  version_type=linux
9680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9681  shlibpath_var=LD_LIBRARY_PATH
9682  shlibpath_overrides_runpath=yes
9683  ;;
9684
9685nto-qnx*)
9686  version_type=linux
9687  need_lib_prefix=no
9688  need_version=no
9689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690  soname_spec='${libname}${release}${shared_ext}$major'
9691  shlibpath_var=LD_LIBRARY_PATH
9692  shlibpath_overrides_runpath=yes
9693  ;;
9694
9695openbsd*)
9696  version_type=sunos
9697  sys_lib_dlsearch_path_spec="/usr/lib"
9698  need_lib_prefix=no
9699  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9700  case $host_os in
9701    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9702    *)                         need_version=no  ;;
9703  esac
9704  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9705  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9706  shlibpath_var=LD_LIBRARY_PATH
9707  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9708    case $host_os in
9709      openbsd2.[89] | openbsd2.[89].*)
9710        shlibpath_overrides_runpath=no
9711        ;;
9712      *)
9713        shlibpath_overrides_runpath=yes
9714        ;;
9715      esac
9716  else
9717    shlibpath_overrides_runpath=yes
9718  fi
9719  ;;
9720
9721os2*)
9722  libname_spec='$name'
9723  shrext_cmds=".dll"
9724  need_lib_prefix=no
9725  library_names_spec='$libname${shared_ext} $libname.a'
9726  dynamic_linker='OS/2 ld.exe'
9727  shlibpath_var=LIBPATH
9728  ;;
9729
9730osf3* | osf4* | osf5*)
9731  version_type=osf
9732  need_lib_prefix=no
9733  need_version=no
9734  soname_spec='${libname}${release}${shared_ext}$major'
9735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9736  shlibpath_var=LD_LIBRARY_PATH
9737  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9738  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9739  ;;
9740
9741solaris*)
9742  version_type=linux
9743  need_lib_prefix=no
9744  need_version=no
9745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746  soname_spec='${libname}${release}${shared_ext}$major'
9747  shlibpath_var=LD_LIBRARY_PATH
9748  shlibpath_overrides_runpath=yes
9749  hardcode_into_libs=yes
9750  # ldd complains unless libraries are executable
9751  postinstall_cmds='chmod +x $lib'
9752  ;;
9753
9754sunos4*)
9755  version_type=sunos
9756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9757  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9758  shlibpath_var=LD_LIBRARY_PATH
9759  shlibpath_overrides_runpath=yes
9760  if test "$with_gnu_ld" = yes; then
9761    need_lib_prefix=no
9762  fi
9763  need_version=yes
9764  ;;
9765
9766sysv4 | sysv4.3*)
9767  version_type=linux
9768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9769  soname_spec='${libname}${release}${shared_ext}$major'
9770  shlibpath_var=LD_LIBRARY_PATH
9771  case $host_vendor in
9772    sni)
9773      shlibpath_overrides_runpath=no
9774      need_lib_prefix=no
9775      export_dynamic_flag_spec='${wl}-Blargedynsym'
9776      runpath_var=LD_RUN_PATH
9777      ;;
9778    siemens)
9779      need_lib_prefix=no
9780      ;;
9781    motorola)
9782      need_lib_prefix=no
9783      need_version=no
9784      shlibpath_overrides_runpath=no
9785      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9786      ;;
9787  esac
9788  ;;
9789
9790sysv4*MP*)
9791  if test -d /usr/nec ;then
9792    version_type=linux
9793    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9794    soname_spec='$libname${shared_ext}.$major'
9795    shlibpath_var=LD_LIBRARY_PATH
9796  fi
9797  ;;
9798
9799sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9800  version_type=freebsd-elf
9801  need_lib_prefix=no
9802  need_version=no
9803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9804  soname_spec='${libname}${release}${shared_ext}$major'
9805  shlibpath_var=LD_LIBRARY_PATH
9806  hardcode_into_libs=yes
9807  if test "$with_gnu_ld" = yes; then
9808    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9809    shlibpath_overrides_runpath=no
9810  else
9811    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9812    shlibpath_overrides_runpath=yes
9813    case $host_os in
9814      sco3.2v5*)
9815        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9816        ;;
9817    esac
9818  fi
9819  sys_lib_dlsearch_path_spec='/usr/lib'
9820  ;;
9821
9822uts4*)
9823  version_type=linux
9824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825  soname_spec='${libname}${release}${shared_ext}$major'
9826  shlibpath_var=LD_LIBRARY_PATH
9827  ;;
9828
9829*)
9830  dynamic_linker=no
9831  ;;
9832esac
9833echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9834echo "${ECHO_T}$dynamic_linker" >&6
9835test "$dynamic_linker" = no && can_build_shared=no
9836
9837variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9838if test "$GCC" = yes; then
9839  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9840fi
9841
9842echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9843echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9844hardcode_action=
9845if test -n "$hardcode_libdir_flag_spec" || \
9846   test -n "$runpath_var" || \
9847   test "X$hardcode_automatic" = "Xyes" ; then
9848
9849  # We can hardcode non-existant directories.
9850  if test "$hardcode_direct" != no &&
9851     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9852     # have to relink, otherwise we might link with an installed library
9853     # when we should be linking with a yet-to-be-installed one
9854     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9855     test "$hardcode_minus_L" != no; then
9856    # Linking always hardcodes the temporary library directory.
9857    hardcode_action=relink
9858  else
9859    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9860    hardcode_action=immediate
9861  fi
9862else
9863  # We cannot hardcode anything, or else we can only hardcode existing
9864  # directories.
9865  hardcode_action=unsupported
9866fi
9867echo "$as_me:$LINENO: result: $hardcode_action" >&5
9868echo "${ECHO_T}$hardcode_action" >&6
9869
9870if test "$hardcode_action" = relink; then
9871  # Fast installation is not supported
9872  enable_fast_install=no
9873elif test "$shlibpath_overrides_runpath" = yes ||
9874     test "$enable_shared" = no; then
9875  # Fast installation is not necessary
9876  enable_fast_install=needless
9877fi
9878
9879striplib=
9880old_striplib=
9881echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9882echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9883if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9884  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9885  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9886  echo "$as_me:$LINENO: result: yes" >&5
9887echo "${ECHO_T}yes" >&6
9888else
9889# FIXME - insert some real tests, host_os isn't really good enough
9890  case $host_os in
9891   darwin*)
9892       if test -n "$STRIP" ; then
9893         striplib="$STRIP -x"
9894         echo "$as_me:$LINENO: result: yes" >&5
9895echo "${ECHO_T}yes" >&6
9896       else
9897  echo "$as_me:$LINENO: result: no" >&5
9898echo "${ECHO_T}no" >&6
9899fi
9900       ;;
9901   *)
9902  echo "$as_me:$LINENO: result: no" >&5
9903echo "${ECHO_T}no" >&6
9904    ;;
9905  esac
9906fi
9907
9908if test "x$enable_dlopen" != xyes; then
9909  enable_dlopen=unknown
9910  enable_dlopen_self=unknown
9911  enable_dlopen_self_static=unknown
9912else
9913  lt_cv_dlopen=no
9914  lt_cv_dlopen_libs=
9915
9916  case $host_os in
9917  beos*)
9918    lt_cv_dlopen="load_add_on"
9919    lt_cv_dlopen_libs=
9920    lt_cv_dlopen_self=yes
9921    ;;
9922
9923  mingw* | pw32*)
9924    lt_cv_dlopen="LoadLibrary"
9925    lt_cv_dlopen_libs=
9926   ;;
9927
9928  cygwin*)
9929    lt_cv_dlopen="dlopen"
9930    lt_cv_dlopen_libs=
9931   ;;
9932
9933  darwin*)
9934  # if libdl is installed we need to link against it
9935    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9936echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9937if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9938  echo $ECHO_N "(cached) $ECHO_C" >&6
9939else
9940  ac_check_lib_save_LIBS=$LIBS
9941LIBS="-ldl  $LIBS"
9942cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h.  */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h.  */
9948
9949/* Override any gcc2 internal prototype to avoid an error.  */
9950#ifdef __cplusplus
9951extern "C"
9952#endif
9953/* We use char because int might match the return type of a gcc2
9954   builtin and then its argument prototype would still apply.  */
9955char dlopen ();
9956int
9957main ()
9958{
9959dlopen ();
9960  ;
9961  return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext conftest$ac_exeext
9965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9966  (eval $ac_link) 2>conftest.er1
9967  ac_status=$?
9968  grep -v '^ *+' conftest.er1 >conftest.err
9969  rm -f conftest.er1
9970  cat conftest.err >&5
9971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972  (exit $ac_status); } &&
9973         { ac_try='test -z "$ac_c_werror_flag"
9974                         || test ! -s conftest.err'
9975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976  (eval $ac_try) 2>&5
9977  ac_status=$?
9978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979  (exit $ac_status); }; } &&
9980         { ac_try='test -s conftest$ac_exeext'
9981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982  (eval $ac_try) 2>&5
9983  ac_status=$?
9984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985  (exit $ac_status); }; }; then
9986  ac_cv_lib_dl_dlopen=yes
9987else
9988  echo "$as_me: failed program was:" >&5
9989sed 's/^/| /' conftest.$ac_ext >&5
9990
9991ac_cv_lib_dl_dlopen=no
9992fi
9993rm -f conftest.err conftest.$ac_objext \
9994      conftest$ac_exeext conftest.$ac_ext
9995LIBS=$ac_check_lib_save_LIBS
9996fi
9997echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9998echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9999if test $ac_cv_lib_dl_dlopen = yes; then
10000  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10001else
10002
10003    lt_cv_dlopen="dyld"
10004    lt_cv_dlopen_libs=
10005    lt_cv_dlopen_self=yes
10006
10007fi
10008
10009   ;;
10010
10011  *)
10012    echo "$as_me:$LINENO: checking for shl_load" >&5
10013echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10014if test "${ac_cv_func_shl_load+set}" = set; then
10015  echo $ECHO_N "(cached) $ECHO_C" >&6
10016else
10017  cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h.  */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h.  */
10023/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10024   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10025#define shl_load innocuous_shl_load
10026
10027/* System header to define __stub macros and hopefully few prototypes,
10028    which can conflict with char shl_load (); below.
10029    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10030    <limits.h> exists even on freestanding compilers.  */
10031
10032#ifdef __STDC__
10033# include <limits.h>
10034#else
10035# include <assert.h>
10036#endif
10037
10038#undef shl_load
10039
10040/* Override any gcc2 internal prototype to avoid an error.  */
10041#ifdef __cplusplus
10042extern "C"
10043{
10044#endif
10045/* We use char because int might match the return type of a gcc2
10046   builtin and then its argument prototype would still apply.  */
10047char shl_load ();
10048/* The GNU C library defines this for functions which it implements
10049    to always fail with ENOSYS.  Some functions are actually named
10050    something starting with __ and the normal name is an alias.  */
10051#if defined (__stub_shl_load) || defined (__stub___shl_load)
10052choke me
10053#else
10054char (*f) () = shl_load;
10055#endif
10056#ifdef __cplusplus
10057}
10058#endif
10059
10060int
10061main ()
10062{
10063return f != shl_load;
10064  ;
10065  return 0;
10066}
10067_ACEOF
10068rm -f conftest.$ac_objext conftest$ac_exeext
10069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070  (eval $ac_link) 2>conftest.er1
10071  ac_status=$?
10072  grep -v '^ *+' conftest.er1 >conftest.err
10073  rm -f conftest.er1
10074  cat conftest.err >&5
10075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076  (exit $ac_status); } &&
10077         { ac_try='test -z "$ac_c_werror_flag"
10078                         || test ! -s conftest.err'
10079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080  (eval $ac_try) 2>&5
10081  ac_status=$?
10082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083  (exit $ac_status); }; } &&
10084         { ac_try='test -s conftest$ac_exeext'
10085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10086  (eval $ac_try) 2>&5
10087  ac_status=$?
10088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089  (exit $ac_status); }; }; then
10090  ac_cv_func_shl_load=yes
10091else
10092  echo "$as_me: failed program was:" >&5
10093sed 's/^/| /' conftest.$ac_ext >&5
10094
10095ac_cv_func_shl_load=no
10096fi
10097rm -f conftest.err conftest.$ac_objext \
10098      conftest$ac_exeext conftest.$ac_ext
10099fi
10100echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10101echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10102if test $ac_cv_func_shl_load = yes; then
10103  lt_cv_dlopen="shl_load"
10104else
10105  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10106echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10107if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10108  echo $ECHO_N "(cached) $ECHO_C" >&6
10109else
10110  ac_check_lib_save_LIBS=$LIBS
10111LIBS="-ldld  $LIBS"
10112cat >conftest.$ac_ext <<_ACEOF
10113/* confdefs.h.  */
10114_ACEOF
10115cat confdefs.h >>conftest.$ac_ext
10116cat >>conftest.$ac_ext <<_ACEOF
10117/* end confdefs.h.  */
10118
10119/* Override any gcc2 internal prototype to avoid an error.  */
10120#ifdef __cplusplus
10121extern "C"
10122#endif
10123/* We use char because int might match the return type of a gcc2
10124   builtin and then its argument prototype would still apply.  */
10125char shl_load ();
10126int
10127main ()
10128{
10129shl_load ();
10130  ;
10131  return 0;
10132}
10133_ACEOF
10134rm -f conftest.$ac_objext conftest$ac_exeext
10135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136  (eval $ac_link) 2>conftest.er1
10137  ac_status=$?
10138  grep -v '^ *+' conftest.er1 >conftest.err
10139  rm -f conftest.er1
10140  cat conftest.err >&5
10141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142  (exit $ac_status); } &&
10143         { ac_try='test -z "$ac_c_werror_flag"
10144                         || test ! -s conftest.err'
10145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146  (eval $ac_try) 2>&5
10147  ac_status=$?
10148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149  (exit $ac_status); }; } &&
10150         { ac_try='test -s conftest$ac_exeext'
10151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152  (eval $ac_try) 2>&5
10153  ac_status=$?
10154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155  (exit $ac_status); }; }; then
10156  ac_cv_lib_dld_shl_load=yes
10157else
10158  echo "$as_me: failed program was:" >&5
10159sed 's/^/| /' conftest.$ac_ext >&5
10160
10161ac_cv_lib_dld_shl_load=no
10162fi
10163rm -f conftest.err conftest.$ac_objext \
10164      conftest$ac_exeext conftest.$ac_ext
10165LIBS=$ac_check_lib_save_LIBS
10166fi
10167echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10168echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10169if test $ac_cv_lib_dld_shl_load = yes; then
10170  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10171else
10172  echo "$as_me:$LINENO: checking for dlopen" >&5
10173echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10174if test "${ac_cv_func_dlopen+set}" = set; then
10175  echo $ECHO_N "(cached) $ECHO_C" >&6
10176else
10177  cat >conftest.$ac_ext <<_ACEOF
10178/* confdefs.h.  */
10179_ACEOF
10180cat confdefs.h >>conftest.$ac_ext
10181cat >>conftest.$ac_ext <<_ACEOF
10182/* end confdefs.h.  */
10183/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10184   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10185#define dlopen innocuous_dlopen
10186
10187/* System header to define __stub macros and hopefully few prototypes,
10188    which can conflict with char dlopen (); below.
10189    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10190    <limits.h> exists even on freestanding compilers.  */
10191
10192#ifdef __STDC__
10193# include <limits.h>
10194#else
10195# include <assert.h>
10196#endif
10197
10198#undef dlopen
10199
10200/* Override any gcc2 internal prototype to avoid an error.  */
10201#ifdef __cplusplus
10202extern "C"
10203{
10204#endif
10205/* We use char because int might match the return type of a gcc2
10206   builtin and then its argument prototype would still apply.  */
10207char dlopen ();
10208/* The GNU C library defines this for functions which it implements
10209    to always fail with ENOSYS.  Some functions are actually named
10210    something starting with __ and the normal name is an alias.  */
10211#if defined (__stub_dlopen) || defined (__stub___dlopen)
10212choke me
10213#else
10214char (*f) () = dlopen;
10215#endif
10216#ifdef __cplusplus
10217}
10218#endif
10219
10220int
10221main ()
10222{
10223return f != dlopen;
10224  ;
10225  return 0;
10226}
10227_ACEOF
10228rm -f conftest.$ac_objext conftest$ac_exeext
10229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230  (eval $ac_link) 2>conftest.er1
10231  ac_status=$?
10232  grep -v '^ *+' conftest.er1 >conftest.err
10233  rm -f conftest.er1
10234  cat conftest.err >&5
10235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236  (exit $ac_status); } &&
10237         { ac_try='test -z "$ac_c_werror_flag"
10238                         || test ! -s conftest.err'
10239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240  (eval $ac_try) 2>&5
10241  ac_status=$?
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); }; } &&
10244         { ac_try='test -s conftest$ac_exeext'
10245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246  (eval $ac_try) 2>&5
10247  ac_status=$?
10248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249  (exit $ac_status); }; }; then
10250  ac_cv_func_dlopen=yes
10251else
10252  echo "$as_me: failed program was:" >&5
10253sed 's/^/| /' conftest.$ac_ext >&5
10254
10255ac_cv_func_dlopen=no
10256fi
10257rm -f conftest.err conftest.$ac_objext \
10258      conftest$ac_exeext conftest.$ac_ext
10259fi
10260echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10261echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10262if test $ac_cv_func_dlopen = yes; then
10263  lt_cv_dlopen="dlopen"
10264else
10265  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10266echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10267if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10268  echo $ECHO_N "(cached) $ECHO_C" >&6
10269else
10270  ac_check_lib_save_LIBS=$LIBS
10271LIBS="-ldl  $LIBS"
10272cat >conftest.$ac_ext <<_ACEOF
10273/* confdefs.h.  */
10274_ACEOF
10275cat confdefs.h >>conftest.$ac_ext
10276cat >>conftest.$ac_ext <<_ACEOF
10277/* end confdefs.h.  */
10278
10279/* Override any gcc2 internal prototype to avoid an error.  */
10280#ifdef __cplusplus
10281extern "C"
10282#endif
10283/* We use char because int might match the return type of a gcc2
10284   builtin and then its argument prototype would still apply.  */
10285char dlopen ();
10286int
10287main ()
10288{
10289dlopen ();
10290  ;
10291  return 0;
10292}
10293_ACEOF
10294rm -f conftest.$ac_objext conftest$ac_exeext
10295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10296  (eval $ac_link) 2>conftest.er1
10297  ac_status=$?
10298  grep -v '^ *+' conftest.er1 >conftest.err
10299  rm -f conftest.er1
10300  cat conftest.err >&5
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); } &&
10303         { ac_try='test -z "$ac_c_werror_flag"
10304                         || test ! -s conftest.err'
10305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306  (eval $ac_try) 2>&5
10307  ac_status=$?
10308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309  (exit $ac_status); }; } &&
10310         { ac_try='test -s conftest$ac_exeext'
10311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312  (eval $ac_try) 2>&5
10313  ac_status=$?
10314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315  (exit $ac_status); }; }; then
10316  ac_cv_lib_dl_dlopen=yes
10317else
10318  echo "$as_me: failed program was:" >&5
10319sed 's/^/| /' conftest.$ac_ext >&5
10320
10321ac_cv_lib_dl_dlopen=no
10322fi
10323rm -f conftest.err conftest.$ac_objext \
10324      conftest$ac_exeext conftest.$ac_ext
10325LIBS=$ac_check_lib_save_LIBS
10326fi
10327echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10328echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10329if test $ac_cv_lib_dl_dlopen = yes; then
10330  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10331else
10332  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10333echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10334if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10335  echo $ECHO_N "(cached) $ECHO_C" >&6
10336else
10337  ac_check_lib_save_LIBS=$LIBS
10338LIBS="-lsvld  $LIBS"
10339cat >conftest.$ac_ext <<_ACEOF
10340/* confdefs.h.  */
10341_ACEOF
10342cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h.  */
10345
10346/* Override any gcc2 internal prototype to avoid an error.  */
10347#ifdef __cplusplus
10348extern "C"
10349#endif
10350/* We use char because int might match the return type of a gcc2
10351   builtin and then its argument prototype would still apply.  */
10352char dlopen ();
10353int
10354main ()
10355{
10356dlopen ();
10357  ;
10358  return 0;
10359}
10360_ACEOF
10361rm -f conftest.$ac_objext conftest$ac_exeext
10362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363  (eval $ac_link) 2>conftest.er1
10364  ac_status=$?
10365  grep -v '^ *+' conftest.er1 >conftest.err
10366  rm -f conftest.er1
10367  cat conftest.err >&5
10368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369  (exit $ac_status); } &&
10370         { ac_try='test -z "$ac_c_werror_flag"
10371                         || test ! -s conftest.err'
10372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373  (eval $ac_try) 2>&5
10374  ac_status=$?
10375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376  (exit $ac_status); }; } &&
10377         { ac_try='test -s conftest$ac_exeext'
10378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379  (eval $ac_try) 2>&5
10380  ac_status=$?
10381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382  (exit $ac_status); }; }; then
10383  ac_cv_lib_svld_dlopen=yes
10384else
10385  echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
10388ac_cv_lib_svld_dlopen=no
10389fi
10390rm -f conftest.err conftest.$ac_objext \
10391      conftest$ac_exeext conftest.$ac_ext
10392LIBS=$ac_check_lib_save_LIBS
10393fi
10394echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10395echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10396if test $ac_cv_lib_svld_dlopen = yes; then
10397  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10398else
10399  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10400echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10401if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10402  echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404  ac_check_lib_save_LIBS=$LIBS
10405LIBS="-ldld  $LIBS"
10406cat >conftest.$ac_ext <<_ACEOF
10407/* confdefs.h.  */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h.  */
10412
10413/* Override any gcc2 internal prototype to avoid an error.  */
10414#ifdef __cplusplus
10415extern "C"
10416#endif
10417/* We use char because int might match the return type of a gcc2
10418   builtin and then its argument prototype would still apply.  */
10419char dld_link ();
10420int
10421main ()
10422{
10423dld_link ();
10424  ;
10425  return 0;
10426}
10427_ACEOF
10428rm -f conftest.$ac_objext conftest$ac_exeext
10429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10430  (eval $ac_link) 2>conftest.er1
10431  ac_status=$?
10432  grep -v '^ *+' conftest.er1 >conftest.err
10433  rm -f conftest.er1
10434  cat conftest.err >&5
10435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436  (exit $ac_status); } &&
10437         { ac_try='test -z "$ac_c_werror_flag"
10438                         || test ! -s conftest.err'
10439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440  (eval $ac_try) 2>&5
10441  ac_status=$?
10442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443  (exit $ac_status); }; } &&
10444         { ac_try='test -s conftest$ac_exeext'
10445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446  (eval $ac_try) 2>&5
10447  ac_status=$?
10448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449  (exit $ac_status); }; }; then
10450  ac_cv_lib_dld_dld_link=yes
10451else
10452  echo "$as_me: failed program was:" >&5
10453sed 's/^/| /' conftest.$ac_ext >&5
10454
10455ac_cv_lib_dld_dld_link=no
10456fi
10457rm -f conftest.err conftest.$ac_objext \
10458      conftest$ac_exeext conftest.$ac_ext
10459LIBS=$ac_check_lib_save_LIBS
10460fi
10461echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10462echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10463if test $ac_cv_lib_dld_dld_link = yes; then
10464  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10465fi
10466
10467
10468fi
10469
10470
10471fi
10472
10473
10474fi
10475
10476
10477fi
10478
10479
10480fi
10481
10482    ;;
10483  esac
10484
10485  if test "x$lt_cv_dlopen" != xno; then
10486    enable_dlopen=yes
10487  else
10488    enable_dlopen=no
10489  fi
10490
10491  case $lt_cv_dlopen in
10492  dlopen)
10493    save_CPPFLAGS="$CPPFLAGS"
10494    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10495
10496    save_LDFLAGS="$LDFLAGS"
10497    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10498
10499    save_LIBS="$LIBS"
10500    LIBS="$lt_cv_dlopen_libs $LIBS"
10501
10502    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10503echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10504if test "${lt_cv_dlopen_self+set}" = set; then
10505  echo $ECHO_N "(cached) $ECHO_C" >&6
10506else
10507          if test "$cross_compiling" = yes; then :
10508  lt_cv_dlopen_self=cross
10509else
10510  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10511  lt_status=$lt_dlunknown
10512  cat > conftest.$ac_ext <<EOF
10513#line 10513 "configure"
10514#include "confdefs.h"
10515
10516#if HAVE_DLFCN_H
10517#include <dlfcn.h>
10518#endif
10519
10520#include <stdio.h>
10521
10522#ifdef RTLD_GLOBAL
10523#  define LT_DLGLOBAL           RTLD_GLOBAL
10524#else
10525#  ifdef DL_GLOBAL
10526#    define LT_DLGLOBAL         DL_GLOBAL
10527#  else
10528#    define LT_DLGLOBAL         0
10529#  endif
10530#endif
10531
10532/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10533   find out it does not work in some platform. */
10534#ifndef LT_DLLAZY_OR_NOW
10535#  ifdef RTLD_LAZY
10536#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10537#  else
10538#    ifdef DL_LAZY
10539#      define LT_DLLAZY_OR_NOW          DL_LAZY
10540#    else
10541#      ifdef RTLD_NOW
10542#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10543#      else
10544#        ifdef DL_NOW
10545#          define LT_DLLAZY_OR_NOW      DL_NOW
10546#        else
10547#          define LT_DLLAZY_OR_NOW      0
10548#        endif
10549#      endif
10550#    endif
10551#  endif
10552#endif
10553
10554#ifdef __cplusplus
10555extern "C" void exit (int);
10556#endif
10557
10558void fnord() { int i=42;}
10559int main ()
10560{
10561  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10562  int status = $lt_dlunknown;
10563
10564  if (self)
10565    {
10566      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10567      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10568      /* dlclose (self); */
10569    }
10570  else
10571    puts (dlerror ());
10572
10573    exit (status);
10574}
10575EOF
10576  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10577  (eval $ac_link) 2>&5
10578  ac_status=$?
10579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10581    (./conftest; exit; ) >&5 2>/dev/null
10582    lt_status=$?
10583    case x$lt_status in
10584      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10585      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10586      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10587    esac
10588  else :
10589    # compilation failed
10590    lt_cv_dlopen_self=no
10591  fi
10592fi
10593rm -fr conftest*
10594
10595
10596fi
10597echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10598echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10599
10600    if test "x$lt_cv_dlopen_self" = xyes; then
10601      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10602      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10603echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10604if test "${lt_cv_dlopen_self_static+set}" = set; then
10605  echo $ECHO_N "(cached) $ECHO_C" >&6
10606else
10607          if test "$cross_compiling" = yes; then :
10608  lt_cv_dlopen_self_static=cross
10609else
10610  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10611  lt_status=$lt_dlunknown
10612  cat > conftest.$ac_ext <<EOF
10613#line 10613 "configure"
10614#include "confdefs.h"
10615
10616#if HAVE_DLFCN_H
10617#include <dlfcn.h>
10618#endif
10619
10620#include <stdio.h>
10621
10622#ifdef RTLD_GLOBAL
10623#  define LT_DLGLOBAL           RTLD_GLOBAL
10624#else
10625#  ifdef DL_GLOBAL
10626#    define LT_DLGLOBAL         DL_GLOBAL
10627#  else
10628#    define LT_DLGLOBAL         0
10629#  endif
10630#endif
10631
10632/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10633   find out it does not work in some platform. */
10634#ifndef LT_DLLAZY_OR_NOW
10635#  ifdef RTLD_LAZY
10636#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10637#  else
10638#    ifdef DL_LAZY
10639#      define LT_DLLAZY_OR_NOW          DL_LAZY
10640#    else
10641#      ifdef RTLD_NOW
10642#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10643#      else
10644#        ifdef DL_NOW
10645#          define LT_DLLAZY_OR_NOW      DL_NOW
10646#        else
10647#          define LT_DLLAZY_OR_NOW      0
10648#        endif
10649#      endif
10650#    endif
10651#  endif
10652#endif
10653
10654#ifdef __cplusplus
10655extern "C" void exit (int);
10656#endif
10657
10658void fnord() { int i=42;}
10659int main ()
10660{
10661  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10662  int status = $lt_dlunknown;
10663
10664  if (self)
10665    {
10666      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10667      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10668      /* dlclose (self); */
10669    }
10670  else
10671    puts (dlerror ());
10672
10673    exit (status);
10674}
10675EOF
10676  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10677  (eval $ac_link) 2>&5
10678  ac_status=$?
10679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10681    (./conftest; exit; ) >&5 2>/dev/null
10682    lt_status=$?
10683    case x$lt_status in
10684      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10685      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10686      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10687    esac
10688  else :
10689    # compilation failed
10690    lt_cv_dlopen_self_static=no
10691  fi
10692fi
10693rm -fr conftest*
10694
10695
10696fi
10697echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10698echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10699    fi
10700
10701    CPPFLAGS="$save_CPPFLAGS"
10702    LDFLAGS="$save_LDFLAGS"
10703    LIBS="$save_LIBS"
10704    ;;
10705  esac
10706
10707  case $lt_cv_dlopen_self in
10708  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10709  *) enable_dlopen_self=unknown ;;
10710  esac
10711
10712  case $lt_cv_dlopen_self_static in
10713  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10714  *) enable_dlopen_self_static=unknown ;;
10715  esac
10716fi
10717
10718
10719# Report which library types will actually be built
10720echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10721echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10722echo "$as_me:$LINENO: result: $can_build_shared" >&5
10723echo "${ECHO_T}$can_build_shared" >&6
10724
10725echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10726echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10727test "$can_build_shared" = "no" && enable_shared=no
10728
10729# On AIX, shared libraries and static libraries use the same namespace, and
10730# are all built from PIC.
10731case $host_os in
10732aix3*)
10733  test "$enable_shared" = yes && enable_static=no
10734  if test -n "$RANLIB"; then
10735    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10736    postinstall_cmds='$RANLIB $lib'
10737  fi
10738  ;;
10739
10740aix4* | aix5*)
10741  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10742    test "$enable_shared" = yes && enable_static=no
10743  fi
10744    ;;
10745esac
10746echo "$as_me:$LINENO: result: $enable_shared" >&5
10747echo "${ECHO_T}$enable_shared" >&6
10748
10749echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10750echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10751# Make sure either enable_shared or enable_static is yes.
10752test "$enable_shared" = yes || enable_static=yes
10753echo "$as_me:$LINENO: result: $enable_static" >&5
10754echo "${ECHO_T}$enable_static" >&6
10755
10756# The else clause should only fire when bootstrapping the
10757# libtool distribution, otherwise you forgot to ship ltmain.sh
10758# with your package, and you will get complaints that there are
10759# no rules to generate ltmain.sh.
10760if test -f "$ltmain"; then
10761  # See if we are running on zsh, and set the options which allow our commands through
10762  # without removal of \ escapes.
10763  if test -n "${ZSH_VERSION+set}" ; then
10764    setopt NO_GLOB_SUBST
10765  fi
10766  # Now quote all the things that may contain metacharacters while being
10767  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10768  # variables and quote the copies for generation of the libtool script.
10769  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10770    SED SHELL STRIP \
10771    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10772    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10773    deplibs_check_method reload_flag reload_cmds need_locks \
10774    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10775    lt_cv_sys_global_symbol_to_c_name_address \
10776    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10777    old_postinstall_cmds old_postuninstall_cmds \
10778    compiler \
10779    CC \
10780    LD \
10781    lt_prog_compiler_wl \
10782    lt_prog_compiler_pic \
10783    lt_prog_compiler_static \
10784    lt_prog_compiler