source: ThirdParty/Lapack/trunk/configure @ 286

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

fixing a few things for Cygwin compile with native MS/Intel compilers

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