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

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

regenerated autotools files with latest stable/0.5

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