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

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

synchronize Blas stable 1.0 with trunk rev 270

  • Property svn:executable set to *
File size: 762.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyBlas 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS FLIBS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyBlas 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyBlas 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-blas compile this project (Blas) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS. Set to mingw to use gcc/g++/ld with
1077                          -mno-cygwin. Set to msvc to use cl/link. Default
1078                          when mentioned: mingw. Default when not mentioned:
1079                          disabled.
1080  --enable-static[=PKGS]
1081                          build static libraries [default=no]
1082  --disable-dependency-tracking  speeds up one-time build
1083  --enable-dependency-tracking   do not reject slow dependency extractors
1084  --enable-maintainer-mode  enable make rules and dependencies not useful
1085                          (and sometimes confusing) to the casual installer
1086  --enable-shared[=PKGS]
1087                          build shared libraries [default=yes]
1088  --enable-fast-install[=PKGS]
1089                          optimize for fast installation [default=yes]
1090  --disable-libtool-lock  avoid locking (might break parallel builds)
1091
1092Optional Packages:
1093  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1094  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1095  --with-blas-verbosity specify the debug verbosity level for project Blas
1096  --with-blas-checklevel specify the sanity check level for project Blas
1097  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1098  --with-pic              try to use only PIC/non-PIC objects [default=use
1099                          both]
1100  --with-tags[=TAGS]
1101                          include additional configurations [automatic]
1102  --with-blas             specify BLAS library (or BUILD for compilation)
1103
1104Some influential environment variables:
1105  CDEFS       Additional -D flags to be used when compiling C code.
1106  ADD_CFLAGS  Additional C compiler options
1107  DBG_CFLAGS  Debug C compiler options
1108  OPT_CFLAGS  Optimize C compiler options
1109  CC          C compiler command
1110  CFLAGS      C compiler flags
1111  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1112              nonstandard directory <lib dir>
1113  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114              headers in a nonstandard directory <include dir>
1115  MPICC       C MPI Compiler
1116  ADD_FFLAGS  Additional Fortran compiler options
1117  DBG_FFLAGS  Debug Fortran compiler options
1118  OPT_FFLAGS  Optimize Fortran compiler options
1119  F77         Fortran 77 compiler command
1120  FFLAGS      Fortran 77 compiler flags
1121  MPIF77      Fortran MPI Compiler
1122  CPP         C preprocessor
1123  CXX         C++ compiler command
1124  CXXFLAGS    C++ compiler flags
1125  CXXCPP      C++ preprocessor
1126
1127Use these variables to override the choices made by `configure' or to help
1128it to find libraries and programs with nonstandard names/locations.
1129
1130Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1131_ACEOF
1132fi
1133
1134if test "$ac_init_help" = "recursive"; then
1135  # If there are subdirs, report their specific --help.
1136  ac_popdir=`pwd`
1137  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1138    test -d $ac_dir || continue
1139    ac_builddir=.
1140
1141if test "$ac_dir" != .; then
1142  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1143  # A "../" for each directory in $ac_dir_suffix.
1144  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1145else
1146  ac_dir_suffix= ac_top_builddir=
1147fi
1148
1149case $srcdir in
1150  .)  # No --srcdir option.  We are building in place.
1151    ac_srcdir=.
1152    if test -z "$ac_top_builddir"; then
1153       ac_top_srcdir=.
1154    else
1155       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1156    fi ;;
1157  [\\/]* | ?:[\\/]* )  # Absolute path.
1158    ac_srcdir=$srcdir$ac_dir_suffix;
1159    ac_top_srcdir=$srcdir ;;
1160  *) # Relative path.
1161    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1162    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1163esac
1164
1165# Do not use `cd foo && pwd` to compute absolute paths, because
1166# the directories may not exist.
1167case `pwd` in
1168.) ac_abs_builddir="$ac_dir";;
1169*)
1170  case "$ac_dir" in
1171  .) ac_abs_builddir=`pwd`;;
1172  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1173  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1174  esac;;
1175esac
1176case $ac_abs_builddir in
1177.) ac_abs_top_builddir=${ac_top_builddir}.;;
1178*)
1179  case ${ac_top_builddir}. in
1180  .) ac_abs_top_builddir=$ac_abs_builddir;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1182  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_srcdir=$ac_srcdir;;
1187*)
1188  case $ac_srcdir in
1189  .) ac_abs_srcdir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1191  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_top_srcdir=$ac_top_srcdir;;
1196*)
1197  case $ac_top_srcdir in
1198  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1200  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1201  esac;;
1202esac
1203
1204    cd $ac_dir
1205    # Check for guested configure; otherwise get Cygnus style configure.
1206    if test -f $ac_srcdir/configure.gnu; then
1207      echo
1208      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1209    elif test -f $ac_srcdir/configure; then
1210      echo
1211      $SHELL $ac_srcdir/configure  --help=recursive
1212    elif test -f $ac_srcdir/configure.ac ||
1213           test -f $ac_srcdir/configure.in; then
1214      echo
1215      $ac_configure --help
1216    else
1217      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1218    fi
1219    cd $ac_popdir
1220  done
1221fi
1222
1223test -n "$ac_init_help" && exit 0
1224if $ac_init_version; then
1225  cat <<\_ACEOF
1226ThirdPartyBlas configure 0.0
1227generated by GNU Autoconf 2.59
1228
1229Copyright (C) 2003 Free Software Foundation, Inc.
1230This configure script is free software; the Free Software Foundation
1231gives unlimited permission to copy, distribute and modify it.
1232
1233
1234Copyright 2006 International Business Machines and others.
1235All Rights Reserved.
1236This file is part of the open source package Coin which is distributed
1237under the Common Public License.
1238_ACEOF
1239  exit 0
1240fi
1241exec 5>config.log
1242cat >&5 <<_ACEOF
1243This file contains any messages produced by compilers while
1244running configure, to aid debugging if configure makes a mistake.
1245
1246It was created by ThirdPartyBlas $as_me 0.0, which was
1247generated by GNU Autoconf 2.59.  Invocation command line was
1248
1249  $ $0 $@
1250
1251_ACEOF
1252{
1253cat <<_ASUNAME
1254## --------- ##
1255## Platform. ##
1256## --------- ##
1257
1258hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1259uname -m = `(uname -m) 2>/dev/null || echo unknown`
1260uname -r = `(uname -r) 2>/dev/null || echo unknown`
1261uname -s = `(uname -s) 2>/dev/null || echo unknown`
1262uname -v = `(uname -v) 2>/dev/null || echo unknown`
1263
1264/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1265/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1266
1267/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1268/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1269/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1270hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1271/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1272/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1273/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1274
1275_ASUNAME
1276
1277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1278for as_dir in $PATH
1279do
1280  IFS=$as_save_IFS
1281  test -z "$as_dir" && as_dir=.
1282  echo "PATH: $as_dir"
1283done
1284
1285} >&5
1286
1287cat >&5 <<_ACEOF
1288
1289
1290## ----------- ##
1291## Core tests. ##
1292## ----------- ##
1293
1294_ACEOF
1295
1296
1297# Keep a trace of the command line.
1298# Strip out --no-create and --no-recursion so they do not pile up.
1299# Strip out --silent because we don't want to record it for future runs.
1300# Also quote any args containing shell meta-characters.
1301# Make two passes to allow for proper duplicate-argument suppression.
1302ac_configure_args=
1303ac_configure_args0=
1304ac_configure_args1=
1305ac_sep=
1306ac_must_keep_next=false
1307for ac_pass in 1 2
1308do
1309  for ac_arg
1310  do
1311    case $ac_arg in
1312    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1313    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314    | -silent | --silent | --silen | --sile | --sil)
1315      continue ;;
1316    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1317      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1318    esac
1319    case $ac_pass in
1320    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1321    2)
1322      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1323      if test $ac_must_keep_next = true; then
1324        ac_must_keep_next=false # Got value, back to normal.
1325      else
1326        case $ac_arg in
1327          *=* | --config-cache | -C | -disable-* | --disable-* \
1328          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1329          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1330          | -with-* | --with-* | -without-* | --without-* | --x)
1331            case "$ac_configure_args0 " in
1332              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1333            esac
1334            ;;
1335          -* ) ac_must_keep_next=true ;;
1336        esac
1337      fi
1338      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1339      # Get rid of the leading space.
1340      ac_sep=" "
1341      ;;
1342    esac
1343  done
1344done
1345$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1346$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1347
1348# When interrupted or exit'd, cleanup temporary files, and complete
1349# config.log.  We remove comments because anyway the quotes in there
1350# would cause problems or look ugly.
1351# WARNING: Be sure not to use single quotes in there, as some shells,
1352# such as our DU 5.0 friend, will then `close' the trap.
1353trap 'exit_status=$?
1354  # Save into config.log some information that might help in debugging.
1355  {
1356    echo
1357
1358    cat <<\_ASBOX
1359## ---------------- ##
1360## Cache variables. ##
1361## ---------------- ##
1362_ASBOX
1363    echo
1364    # The following way of writing the cache mishandles newlines in values,
1365{
1366  (set) 2>&1 |
1367    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1368    *ac_space=\ *)
1369      sed -n \
1370        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1371          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1372      ;;
1373    *)
1374      sed -n \
1375        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1376      ;;
1377    esac;
1378}
1379    echo
1380
1381    cat <<\_ASBOX
1382## ----------------- ##
1383## Output variables. ##
1384## ----------------- ##
1385_ASBOX
1386    echo
1387    for ac_var in $ac_subst_vars
1388    do
1389      eval ac_val=$`echo $ac_var`
1390      echo "$ac_var='"'"'$ac_val'"'"'"
1391    done | sort
1392    echo
1393
1394    if test -n "$ac_subst_files"; then
1395      cat <<\_ASBOX
1396## ------------- ##
1397## Output files. ##
1398## ------------- ##
1399_ASBOX
1400      echo
1401      for ac_var in $ac_subst_files
1402      do
1403        eval ac_val=$`echo $ac_var`
1404        echo "$ac_var='"'"'$ac_val'"'"'"
1405      done | sort
1406      echo
1407    fi
1408
1409    if test -s confdefs.h; then
1410      cat <<\_ASBOX
1411## ----------- ##
1412## confdefs.h. ##
1413## ----------- ##
1414_ASBOX
1415      echo
1416      sed "/^$/d" confdefs.h | sort
1417      echo
1418    fi
1419    test "$ac_signal" != 0 &&
1420      echo "$as_me: caught signal $ac_signal"
1421    echo "$as_me: exit $exit_status"
1422  } >&5
1423  rm -f core *.core &&
1424  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1425    exit $exit_status
1426     ' 0
1427for ac_signal in 1 2 13 15; do
1428  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1429done
1430ac_signal=0
1431
1432# confdefs.h avoids OS command line length limits that DEFS can exceed.
1433rm -rf conftest* confdefs.h
1434# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1435echo >confdefs.h
1436
1437# Predefined preprocessor variables.
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_NAME "$PACKAGE_NAME"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_VERSION "$PACKAGE_VERSION"
1451_ACEOF
1452
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_STRING "$PACKAGE_STRING"
1456_ACEOF
1457
1458
1459cat >>confdefs.h <<_ACEOF
1460#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1461_ACEOF
1462
1463
1464# Let the site file select an alternate cache file if it wants to.
1465# Prefer explicitly selected file to automatically selected ones.
1466if test -z "$CONFIG_SITE"; then
1467  if test "x$prefix" != xNONE; then
1468    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1469  else
1470    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1471  fi
1472fi
1473for ac_site_file in $CONFIG_SITE; do
1474  if test -r "$ac_site_file"; then
1475    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1476echo "$as_me: loading site script $ac_site_file" >&6;}
1477    sed 's/^/| /' "$ac_site_file" >&5
1478    . "$ac_site_file"
1479  fi
1480done
1481
1482if test -r "$cache_file"; then
1483  # Some versions of bash will fail to source /dev/null (special
1484  # files actually), so we avoid doing that.
1485  if test -f "$cache_file"; then
1486    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1487echo "$as_me: loading cache $cache_file" >&6;}
1488    case $cache_file in
1489      [\\/]* | ?:[\\/]* ) . $cache_file;;
1490      *)                      . ./$cache_file;;
1491    esac
1492  fi
1493else
1494  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1495echo "$as_me: creating cache $cache_file" >&6;}
1496  >$cache_file
1497fi
1498
1499# Check that the precious variables saved in the cache have kept the same
1500# value.
1501ac_cache_corrupted=false
1502for ac_var in `(set) 2>&1 |
1503               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1504  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1505  eval ac_new_set=\$ac_env_${ac_var}_set
1506  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1507  eval ac_new_val="\$ac_env_${ac_var}_value"
1508  case $ac_old_set,$ac_new_set in
1509    set,)
1510      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1511echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1512      ac_cache_corrupted=: ;;
1513    ,set)
1514      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1515echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1516      ac_cache_corrupted=: ;;
1517    ,);;
1518    *)
1519      if test "x$ac_old_val" != "x$ac_new_val"; then
1520        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1521echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1522        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1523echo "$as_me:   former value:  $ac_old_val" >&2;}
1524        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1525echo "$as_me:   current value: $ac_new_val" >&2;}
1526        ac_cache_corrupted=:
1527      fi;;
1528  esac
1529  # Pass precious variables to config.status.
1530  if test "$ac_new_set" = set; then
1531    case $ac_new_val in
1532    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1533      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1534    *) ac_arg=$ac_var=$ac_new_val ;;
1535    esac
1536    case " $ac_configure_args " in
1537      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1538      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1539    esac
1540  fi
1541done
1542if $ac_cache_corrupted; then
1543  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1544echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1545  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1546echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1547   { (exit 1); exit 1; }; }
1548fi
1549
1550ac_ext=c
1551ac_cpp='$CPP $CPPFLAGS'
1552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1554ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585# List one file in the package so that the configure script can test
1586# whether the package is actually there
1587
1588
1589# Where should everything be installed by default?  Here, we want it
1590# to be installed directly in 'bin', 'lib', 'include' subdirectories
1591# of the directory where configure is run.  The default would be
1592# /usr/local.
1593
1594
1595# Initialize the ADDLIBS variable
1596ADDLIBS="-lm $LIBS"
1597
1598
1599# Initialize the FADDLIBS variable (which is to be used with a fortran
1600# compiler and will not include FLIBS)
1601FADDLIBS="$LIBS"
1602
1603
1604# A useful makefile conditional that is always false
1605
1606
1607if false; then
1608  ALWAYS_FALSE_TRUE=
1609  ALWAYS_FALSE_FALSE='#'
1610else
1611  ALWAYS_FALSE_TRUE='#'
1612  ALWAYS_FALSE_FALSE=
1613fi
1614
1615
1616# We set the following variable so that we know later in AC_COIN_FINALIZE
1617# that we are in a project main directory
1618coin_projectdir=yes
1619
1620
1621#############################################################################
1622#                         Standard build tool stuff                         #
1623#############################################################################
1624
1625# Get the system type
1626ac_aux_dir=
1627for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1628  if test -f $ac_dir/install-sh; then
1629    ac_aux_dir=$ac_dir
1630    ac_install_sh="$ac_aux_dir/install-sh -c"
1631    break
1632  elif test -f $ac_dir/install.sh; then
1633    ac_aux_dir=$ac_dir
1634    ac_install_sh="$ac_aux_dir/install.sh -c"
1635    break
1636  elif test -f $ac_dir/shtool; then
1637    ac_aux_dir=$ac_dir
1638    ac_install_sh="$ac_aux_dir/shtool install -c"
1639    break
1640  fi
1641done
1642if test -z "$ac_aux_dir"; then
1643  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1644echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1645   { (exit 1); exit 1; }; }
1646fi
1647ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1648ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1649ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1650
1651# Make sure we can run config.sub.
1652$ac_config_sub sun4 >/dev/null 2>&1 ||
1653  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1654echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1655   { (exit 1); exit 1; }; }
1656
1657echo "$as_me:$LINENO: checking build system type" >&5
1658echo $ECHO_N "checking build system type... $ECHO_C" >&6
1659if test "${ac_cv_build+set}" = set; then
1660  echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662  ac_cv_build_alias=$build_alias
1663test -z "$ac_cv_build_alias" &&
1664  ac_cv_build_alias=`$ac_config_guess`
1665test -z "$ac_cv_build_alias" &&
1666  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1667echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1668   { (exit 1); exit 1; }; }
1669ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1670  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1671echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1672   { (exit 1); exit 1; }; }
1673
1674fi
1675echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1676echo "${ECHO_T}$ac_cv_build" >&6
1677build=$ac_cv_build
1678build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681
1682
1683
1684# Check if user wants to produce debugging code
1685
1686echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1687echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1688
1689# Check whether --enable-debug or --disable-debug was given.
1690if test "${enable_debug+set}" = set; then
1691  enableval="$enable_debug"
1692  case "${enableval}" in
1693   yes) coin_debug_compile=true
1694        enable_shared=no
1695        ;;
1696   no)  coin_debug_compile=false
1697        ;;
1698   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1699echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1700   { (exit 1); exit 1; }; }
1701        ;;
1702esac
1703else
1704  coin_debug_compile=false
1705fi;
1706
1707# Check whether --enable-debug-blas or --disable-debug-blas was given.
1708if test "${enable_debug_blas+set}" = set; then
1709  enableval="$enable_debug_blas"
1710  case "${enableval}" in
1711    yes) coin_debug_compile=true
1712         enable_shared=no
1713         ;;
1714    no)  coin_debug_compile=false
1715         ;;
1716    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1717echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1718   { (exit 1); exit 1; }; }
1719         ;;
1720 esac
1721else
1722  :
1723fi;
1724
1725 # m4_ifvaln([Blas],
1726
1727if test $coin_debug_compile = true; then
1728  echo "$as_me:$LINENO: result: yes" >&5
1729echo "${ECHO_T}yes" >&6
1730else
1731  echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
1733fi
1734
1735
1736# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1737if test "${with_blas_verbosity+set}" = set; then
1738  withval="$with_blas_verbosity"
1739  coin_blas_verbosity=$withval
1740else
1741  coin_blas_verbosity=0
1742fi;
1743
1744cat >>confdefs.h <<_ACEOF
1745#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1746_ACEOF
1747
1748
1749
1750# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1751if test "${with_blas_checklevel+set}" = set; then
1752  withval="$with_blas_checklevel"
1753  coin_blas_checklevel=$withval
1754else
1755  coin_blas_checklevel=0
1756fi;
1757
1758cat >>confdefs.h <<_ACEOF
1759#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1760_ACEOF
1761
1762
1763# We use the following variable to have a string with the upper case
1764# version of the project name
1765COIN_PRJCT=BLAS
1766
1767
1768 # m4_ifvaln([Blas],
1769
1770
1771
1772# Get the name of the Fortran compiler and appropriate compiler options
1773case $build in
1774  *-mingw*)
1775    if test "${LD+set}" = set; then :; else
1776      LD=link
1777    fi
1778    ;;
1779 esac
1780 case $enable_doscompile in
1781   msvc)
1782     if test "x${LD+set}" = xset; then :; else
1783       LD=link
1784     fi
1785     ;;
1786 esac
1787
1788
1789 # Check whether --enable-doscompile or --disable-doscompile was given.
1790if test "${enable_doscompile+set}" = set; then
1791  enableval="$enable_doscompile"
1792  if test "$enable_doscompile" != no; then
1793     case $build in
1794       *-cygwin*) ;;
1795       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1796echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1797   { (exit 1); exit 1; }; } ;;
1798     esac
1799   fi
1800else
1801  enable_doscompile=no
1802fi;
1803 case "$enable_doscompile" in
1804   msvc|mingw|no) ;;
1805   yes) enable_doscompile=mingw ;;
1806   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1807                    Try configure --help=recursive." >&5
1808echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1809                    Try configure --help=recursive." >&2;}
1810   { (exit 1); exit 1; }; }
1811      ;;
1812  esac
1813  if test "$enable_doscompile" != no ; then
1814    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1815echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1816  fi
1817
1818
1819
1820
1821ac_ext=c
1822ac_cpp='$CPP $CPPFLAGS'
1823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826
1827
1828# For consistency, we set the C compiler to the same value of the C++
1829# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1830if test x"$CXX" != x; then
1831  case "$CXX" in
1832    cl* | */cl* | CL* | */CL*)
1833      if test x"$CC" = x; then
1834        CC="$CXX"
1835        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1836echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1837      fi
1838      ;;
1839  esac
1840fi
1841
1842
1843
1844
1845
1846
1847coin_has_cc=yes
1848
1849save_cflags="$CFLAGS"
1850# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1851# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1852# is likely to be a non-functional shell. But many installations will have
1853# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1854case $build in
1855  *-cygwin* | *-mingw*)
1856             if test "$enable_doscompile" = msvc ; then
1857               comps="cl"
1858             else
1859               comps="gcc cl"
1860             fi ;;
1861  sparc-sun-solaris*)
1862             comps="cc xlc gcc pgcc icc" ;;
1863  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1864  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1865esac
1866
1867# We delete the cached value, since the test might not have been
1868# performed with our choice of compilers earlier
1869$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1870# AC_MSG_NOTICE([C compiler candidates: $comps])
1871ac_ext=c
1872ac_cpp='$CPP $CPPFLAGS'
1873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1875ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876if test -n "$ac_tool_prefix"; then
1877  for ac_prog in $comps
1878  do
1879    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1881echo "$as_me:$LINENO: checking for $ac_word" >&5
1882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883if test "${ac_cv_prog_CC+set}" = set; then
1884  echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886  if test -n "$CC"; then
1887  ac_cv_prog_CC="$CC" # Let the user override the test.
1888else
1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890for as_dir in $PATH
1891do
1892  IFS=$as_save_IFS
1893  test -z "$as_dir" && as_dir=.
1894  for ac_exec_ext in '' $ac_executable_extensions; do
1895  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898    break 2
1899  fi
1900done
1901done
1902
1903fi
1904fi
1905CC=$ac_cv_prog_CC
1906if test -n "$CC"; then
1907  echo "$as_me:$LINENO: result: $CC" >&5
1908echo "${ECHO_T}$CC" >&6
1909else
1910  echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6
1912fi
1913
1914    test -n "$CC" && break
1915  done
1916fi
1917if test -z "$CC"; then
1918  ac_ct_CC=$CC
1919  for ac_prog in $comps
1920do
1921  # Extract the first word of "$ac_prog", so it can be a program name with args.
1922set dummy $ac_prog; ac_word=$2
1923echo "$as_me:$LINENO: checking for $ac_word" >&5
1924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926  echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928  if test -n "$ac_ct_CC"; then
1929  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930else
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934  IFS=$as_save_IFS
1935  test -z "$as_dir" && as_dir=.
1936  for ac_exec_ext in '' $ac_executable_extensions; do
1937  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938    ac_cv_prog_ac_ct_CC="$ac_prog"
1939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940    break 2
1941  fi
1942done
1943done
1944
1945fi
1946fi
1947ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948if test -n "$ac_ct_CC"; then
1949  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950echo "${ECHO_T}$ac_ct_CC" >&6
1951else
1952  echo "$as_me:$LINENO: result: no" >&5
1953echo "${ECHO_T}no" >&6
1954fi
1955
1956  test -n "$ac_ct_CC" && break
1957done
1958
1959  CC=$ac_ct_CC
1960fi
1961
1962
1963test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1964See \`config.log' for more details." >&5
1965echo "$as_me: error: no acceptable C compiler found in \$PATH
1966See \`config.log' for more details." >&2;}
1967   { (exit 1); exit 1; }; }
1968
1969# Provide some information about the compiler.
1970echo "$as_me:$LINENO:" \
1971     "checking for C compiler version" >&5
1972ac_compiler=`set X $ac_compile; echo $2`
1973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1974  (eval $ac_compiler --version </dev/null >&5) 2>&5
1975  ac_status=$?
1976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977  (exit $ac_status); }
1978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1979  (eval $ac_compiler -v </dev/null >&5) 2>&5
1980  ac_status=$?
1981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982  (exit $ac_status); }
1983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1984  (eval $ac_compiler -V </dev/null >&5) 2>&5
1985  ac_status=$?
1986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987  (exit $ac_status); }
1988
1989cat >conftest.$ac_ext <<_ACEOF
1990/* confdefs.h.  */
1991_ACEOF
1992cat confdefs.h >>conftest.$ac_ext
1993cat >>conftest.$ac_ext <<_ACEOF
1994/* end confdefs.h.  */
1995
1996int
1997main ()
1998{
1999
2000  ;
2001  return 0;
2002}
2003_ACEOF
2004ac_clean_files_save=$ac_clean_files
2005ac_clean_files="$ac_clean_files a.out a.exe b.out"
2006# Try to create an executable without -o first, disregard a.out.
2007# It will help us diagnose broken compilers, and finding out an intuition
2008# of exeext.
2009echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2010echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2011ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2012if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2013  (eval $ac_link_default) 2>&5
2014  ac_status=$?
2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016  (exit $ac_status); }; then
2017  # Find the output, starting from the most likely.  This scheme is
2018# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2019# resort.
2020
2021# Be careful to initialize this variable, since it used to be cached.
2022# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2023ac_cv_exeext=
2024# b.out is created by i960 compilers.
2025for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2026do
2027  test -f "$ac_file" || continue
2028  case $ac_file in
2029    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2030        ;;
2031    conftest.$ac_ext )
2032        # This is the source file.
2033        ;;
2034    [ab].out )
2035        # We found the default executable, but exeext='' is most
2036        # certainly right.
2037        break;;
2038    *.* )
2039        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2040        # FIXME: I believe we export ac_cv_exeext for Libtool,
2041        # but it would be cool to find out if it's true.  Does anybody
2042        # maintain Libtool? --akim.
2043        export ac_cv_exeext
2044        break;;
2045    * )
2046        break;;
2047  esac
2048done
2049else
2050  echo "$as_me: failed program was:" >&5
2051sed 's/^/| /' conftest.$ac_ext >&5
2052
2053{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2054See \`config.log' for more details." >&5
2055echo "$as_me: error: C compiler cannot create executables
2056See \`config.log' for more details." >&2;}
2057   { (exit 77); exit 77; }; }
2058fi
2059
2060ac_exeext=$ac_cv_exeext
2061echo "$as_me:$LINENO: result: $ac_file" >&5
2062echo "${ECHO_T}$ac_file" >&6
2063
2064# Check the compiler produces executables we can run.  If not, either
2065# the compiler is broken, or we cross compile.
2066echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2067echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2068# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2069# If not cross compiling, check that we can run a simple program.
2070if test "$cross_compiling" != yes; then
2071  if { ac_try='./$ac_file'
2072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073  (eval $ac_try) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); }; }; then
2077    cross_compiling=no
2078  else
2079    if test "$cross_compiling" = maybe; then
2080        cross_compiling=yes
2081    else
2082        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2083If you meant to cross compile, use \`--host'.
2084See \`config.log' for more details." >&5
2085echo "$as_me: error: cannot run C compiled programs.
2086If you meant to cross compile, use \`--host'.
2087See \`config.log' for more details." >&2;}
2088   { (exit 1); exit 1; }; }
2089    fi
2090  fi
2091fi
2092echo "$as_me:$LINENO: result: yes" >&5
2093echo "${ECHO_T}yes" >&6
2094
2095rm -f a.out a.exe conftest$ac_cv_exeext b.out
2096ac_clean_files=$ac_clean_files_save
2097# Check the compiler produces executables we can run.  If not, either
2098# the compiler is broken, or we cross compile.
2099echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2100echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2101echo "$as_me:$LINENO: result: $cross_compiling" >&5
2102echo "${ECHO_T}$cross_compiling" >&6
2103
2104echo "$as_me:$LINENO: checking for suffix of executables" >&5
2105echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2107  (eval $ac_link) 2>&5
2108  ac_status=$?
2109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110  (exit $ac_status); }; then
2111  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2112# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2113# work properly (i.e., refer to `conftest.exe'), while it won't with
2114# `rm'.
2115for ac_file in conftest.exe conftest conftest.*; do
2116  test -f "$ac_file" || continue
2117  case $ac_file in
2118    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2119    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120          export ac_cv_exeext
2121          break;;
2122    * ) break;;
2123  esac
2124done
2125else
2126  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2127See \`config.log' for more details." >&5
2128echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2129See \`config.log' for more details." >&2;}
2130   { (exit 1); exit 1; }; }
2131fi
2132
2133rm -f conftest$ac_cv_exeext
2134echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2135echo "${ECHO_T}$ac_cv_exeext" >&6
2136
2137rm -f conftest.$ac_ext
2138EXEEXT=$ac_cv_exeext
2139ac_exeext=$EXEEXT
2140echo "$as_me:$LINENO: checking for suffix of object files" >&5
2141echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2142if test "${ac_cv_objext+set}" = set; then
2143  echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145  cat >conftest.$ac_ext <<_ACEOF
2146/* confdefs.h.  */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h.  */
2151
2152int
2153main ()
2154{
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160rm -f conftest.o conftest.obj
2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162  (eval $ac_compile) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; then
2166  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2167  case $ac_file in
2168    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2169    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2170       break;;
2171  esac
2172done
2173else
2174  echo "$as_me: failed program was:" >&5
2175sed 's/^/| /' conftest.$ac_ext >&5
2176
2177{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2178See \`config.log' for more details." >&5
2179echo "$as_me: error: cannot compute suffix of object files: cannot compile
2180See \`config.log' for more details." >&2;}
2181   { (exit 1); exit 1; }; }
2182fi
2183
2184rm -f conftest.$ac_cv_objext conftest.$ac_ext
2185fi
2186echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2187echo "${ECHO_T}$ac_cv_objext" >&6
2188OBJEXT=$ac_cv_objext
2189ac_objext=$OBJEXT
2190echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2191echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2192if test "${ac_cv_c_compiler_gnu+set}" = set; then
2193  echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195  cat >conftest.$ac_ext <<_ACEOF
2196/* confdefs.h.  */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h.  */
2201
2202int
2203main ()
2204{
2205#ifndef __GNUC__
2206       choke me
2207#endif
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213rm -f conftest.$ac_objext
2214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215  (eval $ac_compile) 2>conftest.er1
2216  ac_status=$?
2217  grep -v '^ *+' conftest.er1 >conftest.err
2218  rm -f conftest.er1
2219  cat conftest.err >&5
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); } &&
2222         { ac_try='test -z "$ac_c_werror_flag"
2223                         || test ! -s conftest.err'
2224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225  (eval $ac_try) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }; } &&
2229         { ac_try='test -s conftest.$ac_objext'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; }; then
2235  ac_compiler_gnu=yes
2236else
2237  echo "$as_me: failed program was:" >&5
2238sed 's/^/| /' conftest.$ac_ext >&5
2239
2240ac_compiler_gnu=no
2241fi
2242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2243ac_cv_c_compiler_gnu=$ac_compiler_gnu
2244
2245fi
2246echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2247echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2248GCC=`test $ac_compiler_gnu = yes && echo yes`
2249ac_test_CFLAGS=${CFLAGS+set}
2250ac_save_CFLAGS=$CFLAGS
2251CFLAGS="-g"
2252echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2253echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2254if test "${ac_cv_prog_cc_g+set}" = set; then
2255  echo $ECHO_N "(cached) $ECHO_C" >&6
2256else
2257  cat >conftest.$ac_ext <<_ACEOF
2258/* confdefs.h.  */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h.  */
2263
2264int
2265main ()
2266{
2267
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272rm -f conftest.$ac_objext
2273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274  (eval $ac_compile) 2>conftest.er1
2275  ac_status=$?
2276  grep -v '^ *+' conftest.er1 >conftest.err
2277  rm -f conftest.er1
2278  cat conftest.err >&5
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); } &&
2281         { ac_try='test -z "$ac_c_werror_flag"
2282                         || test ! -s conftest.err'
2283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284  (eval $ac_try) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; } &&
2288         { ac_try='test -s conftest.$ac_objext'
2289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290  (eval $ac_try) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }; }; then
2294  ac_cv_prog_cc_g=yes
2295else
2296  echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299ac_cv_prog_cc_g=no
2300fi
2301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2304echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2305if test "$ac_test_CFLAGS" = set; then
2306  CFLAGS=$ac_save_CFLAGS
2307elif test $ac_cv_prog_cc_g = yes; then
2308  if test "$GCC" = yes; then
2309    CFLAGS="-g -O2"
2310  else
2311    CFLAGS="-g"
2312  fi
2313else
2314  if test "$GCC" = yes; then
2315    CFLAGS="-O2"
2316  else
2317    CFLAGS=
2318  fi
2319fi
2320echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2321echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2322if test "${ac_cv_prog_cc_stdc+set}" = set; then
2323  echo $ECHO_N "(cached) $ECHO_C" >&6
2324else
2325  ac_cv_prog_cc_stdc=no
2326ac_save_CC=$CC
2327cat >conftest.$ac_ext <<_ACEOF
2328/* confdefs.h.  */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h.  */
2333#include <stdarg.h>
2334#include <stdio.h>
2335#include <sys/types.h>
2336#include <sys/stat.h>
2337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2338struct buf { int x; };
2339FILE * (*rcsopen) (struct buf *, struct stat *, int);
2340static char *e (p, i)
2341     char **p;
2342     int i;
2343{
2344  return p[i];
2345}
2346static char *f (char * (*g) (char **, int), char **p, ...)
2347{
2348  char *s;
2349  va_list v;
2350  va_start (v,p);
2351  s = g (p, va_arg (v,int));
2352  va_end (v);
2353  return s;
2354}
2355
2356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2357   function prototypes and stuff, but not '\xHH' hex character constants.
2358   These don't provoke an error unfortunately, instead are silently treated
2359   as 'x'.  The following induces an error, until -std1 is added to get
2360   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2361   array size at least.  It's necessary to write '\x00'==0 to get something
2362   that's true only with -std1.  */
2363int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2364
2365int test (int i, double x);
2366struct s1 {int (*f) (int a);};
2367struct s2 {int (*f) (double a);};
2368int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2369int argc;
2370char **argv;
2371int
2372main ()
2373{
2374return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2375  ;
2376  return 0;
2377}
2378_ACEOF
2379# Don't try gcc -ansi; that turns off useful extensions and
2380# breaks some systems' header files.
2381# AIX                   -qlanglvl=ansi
2382# Ultrix and OSF/1      -std1
2383# HP-UX 10.20 and later -Ae
2384# HP-UX older versions  -Aa -D_HPUX_SOURCE
2385# SVR4                  -Xc -D__EXTENSIONS__
2386for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2387do
2388  CC="$ac_save_CC $ac_arg"
2389  rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391  (eval $ac_compile) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } &&
2398         { ac_try='test -z "$ac_c_werror_flag"
2399                         || test ! -s conftest.err'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405         { ac_try='test -s conftest.$ac_objext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  ac_cv_prog_cc_stdc=$ac_arg
2412break
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417fi
2418rm -f conftest.err conftest.$ac_objext
2419done
2420rm -f conftest.$ac_ext conftest.$ac_objext
2421CC=$ac_save_CC
2422
2423fi
2424
2425case "x$ac_cv_prog_cc_stdc" in
2426  x|xno)
2427    echo "$as_me:$LINENO: result: none needed" >&5
2428echo "${ECHO_T}none needed" >&6 ;;
2429  *)
2430    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2431echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2432    CC="$CC $ac_cv_prog_cc_stdc" ;;
2433esac
2434
2435# Some people use a C++ compiler to compile C.  Since we use `exit',
2436# in C++ we need to declare it.  In case someone uses the same compiler
2437# for both compiling C and C++ we need to have the C++ compiler decide
2438# the declaration of exit, since it's the most demanding environment.
2439cat >conftest.$ac_ext <<_ACEOF
2440#ifndef __cplusplus
2441  choke me
2442#endif
2443_ACEOF
2444rm -f conftest.$ac_objext
2445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446  (eval $ac_compile) 2>conftest.er1
2447  ac_status=$?
2448  grep -v '^ *+' conftest.er1 >conftest.err
2449  rm -f conftest.er1
2450  cat conftest.err >&5
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); } &&
2453         { ac_try='test -z "$ac_c_werror_flag"
2454                         || test ! -s conftest.err'
2455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456  (eval $ac_try) 2>&5
2457  ac_status=$?
2458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459  (exit $ac_status); }; } &&
2460         { ac_try='test -s conftest.$ac_objext'
2461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462  (eval $ac_try) 2>&5
2463  ac_status=$?
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); }; }; then
2466  for ac_declaration in \
2467   '' \
2468   'extern "C" void std::exit (int) throw (); using std::exit;' \
2469   'extern "C" void std::exit (int); using std::exit;' \
2470   'extern "C" void exit (int) throw ();' \
2471   'extern "C" void exit (int);' \
2472   'void exit (int);'
2473do
2474  cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h.  */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h.  */
2480$ac_declaration
2481#include <stdlib.h>
2482int
2483main ()
2484{
2485exit (42);
2486  ;
2487  return 0;
2488}
2489_ACEOF
2490rm -f conftest.$ac_objext
2491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492  (eval $ac_compile) 2>conftest.er1
2493  ac_status=$?
2494  grep -v '^ *+' conftest.er1 >conftest.err
2495  rm -f conftest.er1
2496  cat conftest.err >&5
2497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498  (exit $ac_status); } &&
2499         { ac_try='test -z "$ac_c_werror_flag"
2500                         || test ! -s conftest.err'
2501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502  (eval $ac_try) 2>&5
2503  ac_status=$?
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); }; } &&
2506         { ac_try='test -s conftest.$ac_objext'
2507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508  (eval $ac_try) 2>&5
2509  ac_status=$?
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); }; }; then
2512  :
2513else
2514  echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517continue
2518fi
2519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520  cat >conftest.$ac_ext <<_ACEOF
2521/* confdefs.h.  */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h.  */
2526$ac_declaration
2527int
2528main ()
2529{
2530exit (42);
2531  ;
2532  return 0;
2533}
2534_ACEOF
2535rm -f conftest.$ac_objext
2536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537  (eval $ac_compile) 2>conftest.er1
2538  ac_status=$?
2539  grep -v '^ *+' conftest.er1 >conftest.err
2540  rm -f conftest.er1
2541  cat conftest.err >&5
2542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543  (exit $ac_status); } &&
2544         { ac_try='test -z "$ac_c_werror_flag"
2545                         || test ! -s conftest.err'
2546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); }; } &&
2551         { ac_try='test -s conftest.$ac_objext'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; }; then
2557  break
2558else
2559  echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562fi
2563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564done
2565rm -f conftest*
2566if test -n "$ac_declaration"; then
2567  echo '#ifdef __cplusplus' >>confdefs.h
2568  echo $ac_declaration      >>confdefs.h
2569  echo '#endif'             >>confdefs.h
2570fi
2571
2572else
2573  echo "$as_me: failed program was:" >&5
2574sed 's/^/| /' conftest.$ac_ext >&5
2575
2576fi
2577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578ac_ext=c
2579ac_cpp='$CPP $CPPFLAGS'
2580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583
2584if test -z "$CC" ; then
2585  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2586echo "$as_me: error: Failed to find a C compiler!" >&2;}
2587   { (exit 1); exit 1; }; }
2588fi
2589# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2590case "$CC" in
2591  cl* | */cl* | CL* | */CL* )
2592    if test "$ac_cv_prog_cc_g" = yes ; then
2593      ac_cv_prog_cc_g=no
2594      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2595echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2596    fi ;;
2597esac
2598CFLAGS="$save_cflags"
2599
2600# Check if a project specific CFLAGS variable has been set
2601if test x$COIN_PRJCT != x; then
2602  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2603  if test x$coin_tmp = xset; then
2604    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2605  fi
2606fi
2607
2608if test x"$CFLAGS" = x; then
2609
2610  coin_add_cflags=
2611  coin_opt_cflags=
2612  coin_dbg_cflags=
2613  coin_warn_cflags=
2614
2615  if test "$GCC" = "yes"; then
2616    case "$CC" in
2617      icc* | */icc*)
2618        ;;
2619      *)
2620        coin_opt_cflags="-O3 -fomit-frame-pointer"
2621        coin_add_cflags="-pipe"
2622        coin_dbg_cflags="-g"
2623        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2624        case $enable_doscompile in
2625          mingw)
2626            CFLAGS="-mno-cygwin"
2627            cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h.  */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h.  */
2633
2634int
2635main ()
2636{
2637int i=0; i++;
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext conftest$ac_exeext
2643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2644  (eval $ac_link) 2>conftest.er1
2645  ac_status=$?
2646  grep -v '^ *+' conftest.er1 >conftest.err
2647  rm -f conftest.er1
2648  cat conftest.err >&5
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); } &&
2651         { ac_try='test -z "$ac_c_werror_flag"
2652                         || test ! -s conftest.err'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; } &&
2658         { ac_try='test -s conftest$ac_exeext'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2665else
2666  echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669fi
2670rm -f conftest.err conftest.$ac_objext \
2671      conftest$ac_exeext conftest.$ac_ext
2672            CFLAGS=
2673          ;;
2674        esac
2675    esac
2676  fi
2677  if test -z "$coin_opt_cflags"; then
2678    case $build in
2679      *-cygwin* | *-mingw*)
2680        case "$CC" in
2681          cl* | */cl* | CL* | */CL*)
2682            coin_opt_cflags='-MT -O2'
2683            coin_add_cflags='-nologo -wd4996'
2684            coin_dbg_cflags='-MTd'
2685            ;;
2686        esac
2687        ;;
2688      *-linux-*)
2689        case "$CC" in
2690          icc* | */icc*)
2691            coin_opt_cflags="-O3 -ip"
2692            coin_add_cflags=""
2693            coin_dbg_cflags="-g"
2694            # Check if -i_dynamic is necessary (for new glibc library)
2695            CFLAGS=
2696            cat >conftest.$ac_ext <<_ACEOF
2697/* confdefs.h.  */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h.  */
2702
2703int
2704main ()
2705{
2706int i=0; i++;
2707  ;
2708  return 0;
2709}
2710_ACEOF
2711rm -f conftest.$ac_objext conftest$ac_exeext
2712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2713  (eval $ac_link) 2>conftest.er1
2714  ac_status=$?
2715  grep -v '^ *+' conftest.er1 >conftest.err
2716  rm -f conftest.er1
2717  cat conftest.err >&5
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); } &&
2720         { ac_try='test -z "$ac_c_werror_flag"
2721                         || test ! -s conftest.err'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; } &&
2727         { ac_try='test -s conftest$ac_exeext'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; }; then
2733  :
2734else
2735  echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738coin_add_cflags="-i_dynamic $coin_add_cflags"
2739fi
2740rm -f conftest.err conftest.$ac_objext \
2741      conftest$ac_exeext conftest.$ac_ext
2742            ;;
2743          pgcc* | */pgcc*)
2744            coin_opt_cflags="-fast"
2745            coin_add_cflags="-Kieee -pc 64"
2746            coin_dbg_cflags="-g"
2747            ;;
2748        esac
2749        ;;
2750      *-ibm-*)
2751        case "$CC" in
2752          xlc* | */xlc* | mpxlc* | */mpxlc*)
2753            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2754            coin_add_cflags="-bmaxdata:0x80000000"
2755            coin_dbg_cflags="-g"
2756          ;;
2757        esac
2758        ;;
2759      *-hp-*)
2760        coin_opt_cflags="-O"
2761        coin_add_cflags="-Ae"
2762        coin_dbg_cflags="-g"
2763        ;;
2764      *-sun-*)
2765        coin_opt_cflags="-xO4"
2766        coin_dbg_cflags="-g"
2767        ;;
2768      *-sgi-*)
2769        coin_opt_cflags="-O -OPT:Olimit=0"
2770        coin_dbg_cflags="-g"
2771        ;;
2772    esac
2773  fi
2774
2775  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2776    coin_dbg_cflags="-g"
2777  fi
2778
2779  if test -z "$coin_opt_cflags"; then
2780    # Try if -O option works if nothing else is set
2781    CFLAGS="-O"
2782    cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h.  */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h.  */
2788
2789int
2790main ()
2791{
2792int i=0; i++;
2793  ;
2794  return 0;
2795}
2796_ACEOF
2797rm -f conftest.$ac_objext conftest$ac_exeext
2798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2799  (eval $ac_link) 2>conftest.er1
2800  ac_status=$?
2801  grep -v '^ *+' conftest.er1 >conftest.err
2802  rm -f conftest.er1
2803  cat conftest.err >&5
2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805  (exit $ac_status); } &&
2806         { ac_try='test -z "$ac_c_werror_flag"
2807                         || test ! -s conftest.err'
2808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809  (eval $ac_try) 2>&5
2810  ac_status=$?
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); }; } &&
2813         { ac_try='test -s conftest$ac_exeext'
2814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815  (eval $ac_try) 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }; }; then
2819  coin_opt_cflags="-O"
2820else
2821  echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824fi
2825rm -f conftest.err conftest.$ac_objext \
2826      conftest$ac_exeext conftest.$ac_ext
2827  fi
2828
2829  # if PM doesn't want the warning messages, take them out
2830  if test x"$coin_skip_warn_cflags" = xyes; then
2831    coin_warn_cflags=
2832  fi
2833
2834  if test x${DBG_CFLAGS+set} != xset; then
2835    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2836  fi
2837  if test x${OPT_CFLAGS+set} != xset; then
2838    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2839  fi
2840
2841  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2842  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2843
2844  if test "$coin_debug_compile" = "true"; then
2845    CFLAGS="$DBG_CFLAGS"
2846  else
2847    CFLAGS="$OPT_CFLAGS"
2848  fi
2849else
2850  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2851  if test x${DBG_CFLAGS+set} != xset; then
2852    DBG_CFLAGS="$CFLAGS"
2853  fi
2854  if test x${OPT_CFLAGS+set} != xset; then
2855    OPT_CFLAGS="$CFLAGS"
2856  fi
2857fi
2858
2859# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2860
2861case "$CFLAGS" in
2862  *-mno-cygwin*)
2863    if test x${CPPFLAGS+set} != xset ; then
2864      CPPFLAGS="-mno-cygwin"
2865    else
2866      case "$CPPFLAGS" in
2867        *-mno-cygwin*)
2868          ;;
2869        *)
2870          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2871          ;;
2872      esac
2873    fi ;;
2874esac
2875
2876# Try if CFLAGS works
2877save_CFLAGS="$CFLAGS"
2878cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884
2885int
2886main ()
2887{
2888int i=0; i++;
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893rm -f conftest.$ac_objext conftest$ac_exeext
2894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2895  (eval $ac_link) 2>conftest.er1
2896  ac_status=$?
2897  grep -v '^ *+' conftest.er1 >conftest.err
2898  rm -f conftest.er1
2899  cat conftest.err >&5
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); } &&
2902         { ac_try='test -z "$ac_c_werror_flag"
2903                         || test ! -s conftest.err'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; } &&
2909         { ac_try='test -s conftest$ac_exeext'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; }; then
2915  :
2916else
2917  echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920CFLAGS=
2921fi
2922rm -f conftest.err conftest.$ac_objext \
2923      conftest$ac_exeext conftest.$ac_ext
2924if test -z "$CFLAGS"; then
2925  { 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
2926echo "$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;}
2927  CFLAGS='-O'
2928  cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h.  */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h.  */
2934
2935int
2936main ()
2937{
2938int i=0; i++;
2939  ;
2940  return 0;
2941}
2942_ACEOF
2943rm -f conftest.$ac_objext conftest$ac_exeext
2944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945  (eval $ac_link) 2>conftest.er1
2946  ac_status=$?
2947  grep -v '^ *+' conftest.er1 >conftest.err
2948  rm -f conftest.er1
2949  cat conftest.err >&5
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); } &&
2952         { ac_try='test -z "$ac_c_werror_flag"
2953                         || test ! -s conftest.err'
2954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955  (eval $ac_try) 2>&5
2956  ac_status=$?
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }; } &&
2959         { ac_try='test -s conftest$ac_exeext'
2960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961  (eval $ac_try) 2>&5
2962  ac_status=$?
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); }; }; then
2965  :
2966else
2967  echo "$as_me: failed program was:" >&5
2968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970CFLAGS=
2971fi
2972rm -f conftest.err conftest.$ac_objext \
2973      conftest$ac_exeext conftest.$ac_ext
2974  if test -z "$CFLAGS"; then
2975    { 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
2976echo "$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;}
2977  fi
2978fi
2979
2980{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2981echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2982
2983
2984if test x"$MPICC" = x; then :; else
2985  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2986echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2987  CC="$MPICC"
2988fi
2989
2990# Correct ADDLIBS initialization if we are using the MS compiler
2991case "$CC" in
2992  cl* | */cl* | CL* | */CL*)
2993    ADDLIBS=
2994    case $build in
2995  *-mingw*)
2996    if test "${LD+set}" = set; then :; else
2997      LD=link
2998    fi
2999    ;;
3000 esac
3001 case $enable_doscompile in
3002   msvc)
3003     if test "x${LD+set}" = xset; then :; else
3004       LD=link
3005     fi
3006     ;;
3007 esac
3008
3009    ;;
3010esac
3011
3012ac_ext=c
3013ac_cpp='$CPP $CPPFLAGS'
3014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017
3018
3019case $build in
3020  *-cygwin* | *-mingw*)
3021     if test "$enable_doscompile" = msvc ; then
3022       coin_f77_comps="ifort fl32"
3023     else
3024       coin_f77_comps="gfortran g77 ifort fl32"
3025     fi ;;
3026  sparc-sun-solaris*)
3027     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3028  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3029 esac
3030
3031
3032
3033
3034
3035
3036ac_ext=f
3037ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3038ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3040
3041
3042
3043
3044
3045
3046coin_has_f77=yes
3047
3048save_fflags="$FFLAGS"
3049
3050# We delete the cached value, since the test might not have been
3051# performed with our choice of compilers earlier
3052$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3053
3054# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3055# coin_f77_comps to see if there's a program that matches one of the names.
3056# If there's no such program, F77 = unavailable. If we match the name,
3057# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3058# compiler.
3059# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3060
3061
3062{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3063echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3064for ac_prog in $coin_f77_comps
3065do
3066  # Extract the first word of "$ac_prog", so it can be a program name with args.
3067set dummy $ac_prog; ac_word=$2
3068echo "$as_me:$LINENO: checking for $ac_word" >&5
3069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070if test "${ac_cv_prog_F77+set}" = set; then
3071  echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073  if test -n "$F77"; then
3074  ac_cv_prog_F77="$F77" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079  IFS=$as_save_IFS
3080  test -z "$as_dir" && as_dir=.
3081  for ac_exec_ext in '' $ac_executable_extensions; do
3082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083    ac_cv_prog_F77="$ac_prog"
3084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085    break 2
3086  fi
3087done
3088done
3089
3090fi
3091fi
3092F77=$ac_cv_prog_F77
3093if test -n "$F77"; then
3094  echo "$as_me:$LINENO: result: $F77" >&5
3095echo "${ECHO_T}$F77" >&6
3096else
3097  echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
3099fi
3100
3101  test -n "$F77" && break
3102done
3103test -n "$F77" || F77="unavailable"
3104
3105
3106if test "$F77" != "unavailable" ; then
3107  ac_ext=f
3108ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3109ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3111if test -n "$ac_tool_prefix"; then
3112  for ac_prog in $coin_f77_comps
3113  do
3114    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116echo "$as_me:$LINENO: checking for $ac_word" >&5
3117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3118if test "${ac_cv_prog_F77+set}" = set; then
3119  echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
3121  if test -n "$F77"; then
3122  ac_cv_prog_F77="$F77" # Let the user override the test.
3123else
3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125for as_dir in $PATH
3126do
3127  IFS=$as_save_IFS
3128  test -z "$as_dir" && as_dir=.
3129  for ac_exec_ext in '' $ac_executable_extensions; do
3130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133    break 2
3134  fi
3135done
3136done
3137
3138fi
3139fi
3140F77=$ac_cv_prog_F77
3141if test -n "$F77"; then
3142  echo "$as_me:$LINENO: result: $F77" >&5
3143echo "${ECHO_T}$F77" >&6
3144else
3145  echo "$as_me:$LINENO: result: no" >&5
3146echo "${ECHO_T}no" >&6
3147fi
3148
3149    test -n "$F77" && break
3150  done
3151fi
3152if test -z "$F77"; then
3153  ac_ct_F77=$F77
3154  for ac_prog in $coin_f77_comps
3155do
3156  # Extract the first word of "$ac_prog", so it can be a program name with args.
3157set dummy $ac_prog; ac_word=$2
3158echo "$as_me:$LINENO: checking for $ac_word" >&5
3159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3161  echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163  if test -n "$ac_ct_F77"; then
3164  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171  for ac_exec_ext in '' $ac_executable_extensions; do
3172  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173    ac_cv_prog_ac_ct_F77="$ac_prog"
3174    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175    break 2
3176  fi
3177done
3178done
3179
3180fi
3181fi
3182ac_ct_F77=$ac_cv_prog_ac_ct_F77
3183if test -n "$ac_ct_F77"; then
3184  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3185echo "${ECHO_T}$ac_ct_F77" >&6
3186else
3187  echo "$as_me:$LINENO: result: no" >&5
3188echo "${ECHO_T}no" >&6
3189fi
3190
3191  test -n "$ac_ct_F77" && break
3192done
3193
3194  F77=$ac_ct_F77
3195fi
3196
3197
3198# Provide some information about the compiler.
3199echo "$as_me:3199:" \
3200     "checking for Fortran 77 compiler version" >&5
3201ac_compiler=`set X $ac_compile; echo $2`
3202{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3203  (eval $ac_compiler --version </dev/null >&5) 2>&5
3204  ac_status=$?
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); }
3207{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3208  (eval $ac_compiler -v </dev/null >&5) 2>&5
3209  ac_status=$?
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); }
3212{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3213  (eval $ac_compiler -V </dev/null >&5) 2>&5
3214  ac_status=$?
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); }
3217rm -f a.out
3218
3219# If we don't use `.F' as extension, the preprocessor is not run on the
3220# input file.  (Note that this only needs to work for GNU compilers.)
3221ac_save_ext=$ac_ext
3222ac_ext=F
3223echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3224echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3225if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3226  echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228  cat >conftest.$ac_ext <<_ACEOF
3229      program main
3230#ifndef __GNUC__
3231       choke me
3232#endif
3233
3234      end
3235_ACEOF
3236rm -f conftest.$ac_objext
3237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238  (eval $ac_compile) 2>conftest.er1
3239  ac_status=$?
3240  grep -v '^ *+' conftest.er1 >conftest.err
3241  rm -f conftest.er1
3242  cat conftest.err >&5
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); } &&
3245         { ac_try='test -z "$ac_f77_werror_flag"
3246                         || test ! -s conftest.err'
3247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248  (eval $ac_try) 2>&5
3249  ac_status=$?
3250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251  (exit $ac_status); }; } &&
3252         { ac_try='test -s conftest.$ac_objext'
3253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254  (eval $ac_try) 2>&5
3255  ac_status=$?
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); }; }; then
3258  ac_compiler_gnu=yes
3259else
3260  echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263ac_compiler_gnu=no
3264fi
3265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3266ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3267
3268fi
3269echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3270echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3271ac_ext=$ac_save_ext
3272ac_test_FFLAGS=${FFLAGS+set}
3273ac_save_FFLAGS=$FFLAGS
3274FFLAGS=
3275echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3276echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3277if test "${ac_cv_prog_f77_g+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  FFLAGS=-g
3281cat >conftest.$ac_ext <<_ACEOF
3282      program main
3283
3284      end
3285_ACEOF
3286rm -f conftest.$ac_objext
3287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288  (eval $ac_compile) 2>conftest.er1
3289  ac_status=$?
3290  grep -v '^ *+' conftest.er1 >conftest.err
3291  rm -f conftest.er1
3292  cat conftest.err >&5
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); } &&
3295         { ac_try='test -z "$ac_f77_werror_flag"
3296                         || test ! -s conftest.err'
3297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298  (eval $ac_try) 2>&5
3299  ac_status=$?
3300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301  (exit $ac_status); }; } &&
3302         { ac_try='test -s conftest.$ac_objext'
3303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304  (eval $ac_try) 2>&5
3305  ac_status=$?
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); }; }; then
3308  ac_cv_prog_f77_g=yes
3309else
3310  echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313ac_cv_prog_f77_g=no
3314fi
3315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316
3317fi
3318echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3319echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3320if test "$ac_test_FFLAGS" = set; then
3321  FFLAGS=$ac_save_FFLAGS
3322elif test $ac_cv_prog_f77_g = yes; then
3323  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3324    FFLAGS="-g -O2"
3325  else
3326    FFLAGS="-g"
3327  fi
3328else
3329  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3330    FFLAGS="-O2"
3331  else
3332    FFLAGS=
3333  fi
3334fi
3335
3336G77=`test $ac_compiler_gnu = yes && echo yes`
3337ac_ext=f
3338ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3339ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3341
3342else
3343  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3344echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3345fi
3346
3347FFLAGS="$save_fflags"
3348
3349# Check if a project specific FFLAGS variable has been set
3350if test x$COIN_PRJCT != x; then
3351  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3352  if test x$coin_tmp = xset; then
3353    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3354  fi
3355fi
3356
3357if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3358
3359  coin_add_fflags=
3360  coin_opt_fflags=
3361  coin_dbg_fflags=
3362  coin_warn_fflags=
3363
3364  if test "$G77" = "yes"; then
3365    coin_opt_fflags="-O3 -fomit-frame-pointer"
3366    coin_add_fflags="-pipe"
3367    coin_dbg_fflags="-g"
3368    case $enable_doscompile in
3369      mingw)
3370        FFLAGS="-mno-cygwin"
3371        cat >conftest.$ac_ext <<_ACEOF
3372      program main
3373      write(*,*) 'Hello world'
3374      end
3375_ACEOF
3376rm -f conftest.$ac_objext conftest$ac_exeext
3377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3378  (eval $ac_link) 2>conftest.er1
3379  ac_status=$?
3380  grep -v '^ *+' conftest.er1 >conftest.err
3381  rm -f conftest.er1
3382  cat conftest.err >&5
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); } &&
3385         { ac_try='test -z "$ac_f77_werror_flag"
3386                         || test ! -s conftest.err'
3387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388  (eval $ac_try) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }; } &&
3392         { ac_try='test -s conftest$ac_exeext'
3393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394  (eval $ac_try) 2>&5
3395  ac_status=$?
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); }; }; then
3398  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3399else
3400  echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403fi
3404rm -f conftest.err conftest.$ac_objext \
3405      conftest$ac_exeext conftest.$ac_ext
3406        FFLAGS=
3407      ;;
3408    esac
3409  else
3410    case $build in
3411      *-cygwin* | *-mingw*)
3412        case $F77 in
3413          ifort* | */ifort* | IFORT* | */IFORT* )
3414            coin_opt_fflags='-O3'
3415            coin_add_fflags='-nologo -MT'
3416            coin_dbg_fflags='-debug'
3417          ;;
3418        esac
3419        ;;
3420      *-linux-*)
3421        case $F77 in
3422          ifc* | */ifc* | ifort* | */ifort*)
3423            coin_opt_fflags="-O3 -ip"
3424            coin_add_fflags="-cm -w90 -w95"
3425            coin_dbg_fflags="-g -CA -CB -CS"
3426            # Check if -i_dynamic is necessary (for new glibc library)
3427            FFLAGS=
3428            cat >conftest.$ac_ext <<_ACEOF
3429      program main
3430      write(*,*) 'Hello world'
3431      end
3432_ACEOF
3433rm -f conftest.$ac_objext conftest$ac_exeext
3434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435  (eval $ac_link) 2>conftest.er1
3436  ac_status=$?
3437  grep -v '^ *+' conftest.er1 >conftest.err
3438  rm -f conftest.er1
3439  cat conftest.err >&5
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); } &&
3442         { ac_try='test -z "$ac_f77_werror_flag"
3443                         || test ! -s conftest.err'
3444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445  (eval $ac_try) 2>&5
3446  ac_status=$?
3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448  (exit $ac_status); }; } &&
3449         { ac_try='test -s conftest$ac_exeext'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; }; then
3455  :
3456else
3457  echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460coin_add_fflags="-i_dynamic $coin_add_fflags"
3461fi
3462rm -f conftest.err conftest.$ac_objext \
3463      conftest$ac_exeext conftest.$ac_ext
3464            ;;
3465          pgf77* | */pgf77* | pgf90* | */pgf90*)
3466            coin_opt_fflags="-fast"
3467            coin_add_fflags="-Kieee -pc 64"
3468            coin_dbg_fflags="-g"
3469          ;;
3470        esac
3471        ;;
3472      *-ibm-*)
3473        case "$F77" in
3474          xlf* | */xlf* | mpxlf* | */mpxlf* )
3475            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3476            coin_add_fflags="-bmaxdata:0x80000000"
3477            coin_dbg_fflags="-g -C"
3478            ;;
3479        esac
3480        ;;
3481      *-hp-*)
3482        coin_opt_fflags="+O3"
3483        coin_add_fflags="+U77"
3484        coin_dbg_fflags="-C -g"
3485        ;;
3486      *-sun-*)
3487        coin_opt_fflags="-O4"
3488        coin_dbg_fflags="-g"
3489        ;;
3490      *-sgi-*)
3491        coin_opt_fflags="-O5 -OPT:Olimit=0"
3492        coin_dbg_fflags="-g"
3493        ;;
3494    esac
3495  fi
3496
3497  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3498    coin_dbg_fflags="-g"
3499  fi
3500
3501  if test -z "$coin_opt_fflags"; then
3502    # Try if -O option works if nothing else is set
3503    FFLAGS=-O
3504    cat >conftest.$ac_ext <<_ACEOF
3505      program main
3506      integer i
3507      end
3508_ACEOF
3509rm -f conftest.$ac_objext conftest$ac_exeext
3510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3511  (eval $ac_link) 2>conftest.er1
3512  ac_status=$?
3513  grep -v '^ *+' conftest.er1 >conftest.err
3514  rm -f conftest.er1
3515  cat conftest.err >&5
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); } &&
3518         { ac_try='test -z "$ac_f77_werror_flag"
3519                         || test ! -s conftest.err'
3520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521  (eval $ac_try) 2>&5
3522  ac_status=$?
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); }; } &&
3525         { ac_try='test -s conftest$ac_exeext'
3526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527  (eval $ac_try) 2>&5
3528  ac_status=$?
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); }; }; then
3531  coin_opt_fflags="-O"
3532else
3533  echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536fi
3537rm -f conftest.err conftest.$ac_objext \
3538      conftest$ac_exeext conftest.$ac_ext
3539  fi
3540
3541  # if PM doesn't want the warning messages, take them out
3542  if test x"$coin_skip_warn_fflags" = xyes; then
3543    coin_warn_fflags=
3544  fi
3545
3546  if test x${DBG_FFLAGS+set} != xset; then
3547    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3548  fi
3549  if test x${OPT_FFLAGS+set} != xset; then
3550    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3551  fi
3552
3553  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3554  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3555
3556  if test "$coin_debug_compile" = "true"; then
3557    FFLAGS="$DBG_FFLAGS"
3558  else
3559    FFLAGS="$OPT_FFLAGS"
3560  fi
3561else
3562  FFLAGS="$FFLAGS $ADD_FFLAGS"
3563  if test x${DBG_FFLAGS+set} != xset; then
3564    DBG_FFLAGS="$FFLAGS"
3565  fi
3566  if test x${OPT_FFLAGS+set} != xset; then
3567    OPT_FFLAGS="$FFLAGS"
3568  fi
3569fi
3570
3571# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3572case "$FFLAGS" in
3573  *-mno-cygwin*)
3574    if test x${CPPFLAGS+set} != xset ; then
3575      CPPFLAGS="-mno-cygwin"
3576    else
3577      case "$CPPFLAGS" in
3578        *-mno-cygwin*)
3579          ;;
3580        *)
3581          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3582          ;;
3583      esac
3584    fi ;;
3585esac
3586
3587# Try if FFLAGS works
3588if test "$F77" != "unavailable" ; then
3589  cat >conftest.$ac_ext <<_ACEOF
3590      program main
3591      integer i
3592      end
3593_ACEOF
3594rm -f conftest.$ac_objext conftest$ac_exeext
3595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596  (eval $ac_link) 2>conftest.er1
3597  ac_status=$?
3598  grep -v '^ *+' conftest.er1 >conftest.err
3599  rm -f conftest.er1
3600  cat conftest.err >&5
3601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602  (exit $ac_status); } &&
3603         { ac_try='test -z "$ac_f77_werror_flag"
3604                         || test ! -s conftest.err'
3605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606  (eval $ac_try) 2>&5
3607  ac_status=$?
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); }; } &&
3610         { ac_try='test -s conftest$ac_exeext'
3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612  (eval $ac_try) 2>&5
3613  ac_status=$?
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); }; }; then
3616  :
3617else
3618  echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621FFLAGS=
3622fi
3623rm -f conftest.err conftest.$ac_objext \
3624      conftest$ac_exeext conftest.$ac_ext
3625  if test -z "$FFLAGS"; then
3626    { 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
3627echo "$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;}
3628    FFLAGS='-O'
3629    cat >conftest.$ac_ext <<_ACEOF
3630      program main
3631      integer i
3632      end
3633_ACEOF
3634rm -f conftest.$ac_objext conftest$ac_exeext
3635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3636  (eval $ac_link) 2>conftest.er1
3637  ac_status=$?
3638  grep -v '^ *+' conftest.er1 >conftest.err
3639  rm -f conftest.er1
3640  cat conftest.err >&5
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); } &&
3643         { ac_try='test -z "$ac_f77_werror_flag"
3644                         || test ! -s conftest.err'
3645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646  (eval $ac_try) 2>&5
3647  ac_status=$?
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); }; } &&
3650         { ac_try='test -s conftest$ac_exeext'
3651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652  (eval $ac_try) 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; }; then
3656  :
3657else
3658  echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661FFLAGS=
3662fi
3663rm -f conftest.err conftest.$ac_objext \
3664      conftest$ac_exeext conftest.$ac_ext
3665    if test -z "$FFLAGS"; then
3666      { 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
3667echo "$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;}
3668    fi
3669  fi
3670fi
3671
3672{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3673echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3674
3675
3676if test x"$MPIF77" = x; then :; else
3677  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3678echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3679  F77="$MPIF77"
3680fi
3681
3682case "$F77" in
3683  ifort* | */ifort* | IFORT* | */IFORT*)
3684    case $build in
3685  *-mingw*)
3686    if test "${LD+set}" = set; then :; else
3687      LD=link
3688    fi
3689    ;;
3690 esac
3691 case $enable_doscompile in
3692   msvc)
3693     if test "x${LD+set}" = xset; then :; else
3694       LD=link
3695     fi
3696     ;;
3697 esac
3698
3699    ;;
3700esac
3701
3702ac_ext=c
3703ac_cpp='$CPP $CPPFLAGS'
3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708
3709
3710# Initialize automake
3711{
3712
3713
3714
3715# START
3716
3717# On Cygwin, building DLLs doesn't work
3718case $build in
3719  *-cygwin*)
3720    coin_disable_shared=yes
3721    platform=Cygwin
3722  ;;
3723  *-mingw*)
3724    coin_disable_shared=yes
3725    platform="Msys"
3726#    case "$CXX" in
3727#      cl*)
3728#        coin_disable_shared=yes
3729#        platform="Msys with cl"
3730#    ;;
3731#    esac
3732  ;;
3733esac
3734if test x"$coin_disable_shared" = xyes; then
3735  if test x"$enable_shared" = xyes; then
3736    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3737echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3738  fi
3739  enable_shared=no
3740fi
3741# By default, we only want the shared objects to be compiled
3742# Check whether --enable-static or --disable-static was given.
3743if test "${enable_static+set}" = set; then
3744  enableval="$enable_static"
3745  p=${PACKAGE-default}
3746    case $enableval in
3747    yes) enable_static=yes ;;
3748    no) enable_static=no ;;
3749    *)
3750     enable_static=no
3751      # Look at the argument we got.  We use all the common list separators.
3752      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3753      for pkg in $enableval; do
3754        IFS="$lt_save_ifs"
3755        if test "X$pkg" = "X$p"; then
3756          enable_static=yes
3757        fi
3758      done
3759      IFS="$lt_save_ifs"
3760      ;;
3761    esac
3762else
3763  enable_static=no
3764fi;
3765
3766
3767
3768
3769# Initialize automake
3770echo "$as_me:$LINENO: checking for egrep" >&5
3771echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3772if test "${ac_cv_prog_egrep+set}" = set; then
3773  echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3776    then ac_cv_prog_egrep='grep -E'
3777    else ac_cv_prog_egrep='egrep'
3778    fi
3779fi
3780echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3781echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3782 EGREP=$ac_cv_prog_egrep
3783
3784
3785am__api_version="1.9"
3786# Find a good install program.  We prefer a C program (faster),
3787# so one script is as good as another.  But avoid the broken or
3788# incompatible versions:
3789# SysV /etc/install, /usr/sbin/install
3790# SunOS /usr/etc/install
3791# IRIX /sbin/install
3792# AIX /bin/install
3793# AmigaOS /C/install, which installs bootblocks on floppy discs
3794# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3795# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3796# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3797# OS/2's system install, which has a completely different semantic
3798# ./install, which can be erroneously created by make from ./install.sh.
3799echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3800echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3801if test -z "$INSTALL"; then
3802if test "${ac_cv_path_install+set}" = set; then
3803  echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808  IFS=$as_save_IFS
3809  test -z "$as_dir" && as_dir=.
3810  # Account for people who put trailing slashes in PATH elements.
3811case $as_dir/ in
3812  ./ | .// | /cC/* | \
3813  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3814  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3815  /usr/ucb/* ) ;;
3816  *)
3817    # OSF1 and SCO ODT 3.0 have their own names for install.
3818    # Don't use installbsd from OSF since it installs stuff as root
3819    # by default.
3820    for ac_prog in ginstall scoinst install; do
3821      for ac_exec_ext in '' $ac_executable_extensions; do
3822        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3823          if test $ac_prog = install &&
3824            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3825            # AIX install.  It has an incompatible calling convention.
3826            :
3827          elif test $ac_prog = install &&
3828            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3829            # program-specific install script used by HP pwplus--don't use.
3830            :
3831          else
3832            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3833            break 3
3834          fi
3835        fi
3836      done
3837    done
3838    ;;
3839esac
3840done
3841
3842
3843fi
3844  if test "${ac_cv_path_install+set}" = set; then
3845    INSTALL=$ac_cv_path_install
3846  else
3847    # As a last resort, use the slow shell script.  We don't cache a
3848    # path for INSTALL within a source directory, because that will
3849    # break other packages using the cache if that directory is
3850    # removed, or if the path is relative.
3851    INSTALL=$ac_install_sh
3852  fi
3853fi
3854echo "$as_me:$LINENO: result: $INSTALL" >&5
3855echo "${ECHO_T}$INSTALL" >&6
3856
3857# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3858# It thinks the first close brace ends the variable substitution.
3859test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3860
3861test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3862
3863test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3864
3865echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3866echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3867# Just in case
3868sleep 1
3869echo timestamp > conftest.file
3870# Do `set' in a subshell so we don't clobber the current shell's
3871# arguments.  Must try -L first in case configure is actually a
3872# symlink; some systems play weird games with the mod time of symlinks
3873# (eg FreeBSD returns the mod time of the symlink's containing
3874# directory).
3875if (
3876   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3877   if test "$*" = "X"; then
3878      # -L didn't work.
3879      set X `ls -t $srcdir/configure conftest.file`
3880   fi
3881   rm -f conftest.file
3882   if test "$*" != "X $srcdir/configure conftest.file" \
3883      && test "$*" != "X conftest.file $srcdir/configure"; then
3884
3885      # If neither matched, then we have a broken ls.  This can happen
3886      # if, for instance, CONFIG_SHELL is bash and it inherits a
3887      # broken ls alias from the environment.  This has actually
3888      # happened.  Such a system could not be considered "sane".
3889      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3890alias in your environment" >&5
3891echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3892alias in your environment" >&2;}
3893   { (exit 1); exit 1; }; }
3894   fi
3895
3896   test "$2" = conftest.file
3897   )
3898then
3899   # Ok.
3900   :
3901else
3902   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3903Check your system clock" >&5
3904echo "$as_me: error: newly created file is older than distributed files!
3905Check your system clock" >&2;}
3906   { (exit 1); exit 1; }; }
3907fi
3908echo "$as_me:$LINENO: result: yes" >&5
3909echo "${ECHO_T}yes" >&6
3910test "$program_prefix" != NONE &&
3911  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3912# Use a double $ so make ignores it.
3913test "$program_suffix" != NONE &&
3914  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3915# Double any \ or $.  echo might interpret backslashes.
3916# By default was `s,x,x', remove it if useless.
3917cat <<\_ACEOF >conftest.sed
3918s/[\\$]/&&/g;s/;s,x,x,$//
3919_ACEOF
3920program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3921rm conftest.sed
3922
3923# expand $ac_aux_dir to an absolute path
3924am_aux_dir=`cd $ac_aux_dir && pwd`
3925
3926test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3927# Use eval to expand $SHELL
3928if eval "$MISSING --run true"; then
3929  am_missing_run="$MISSING --run "
3930else
3931  am_missing_run=
3932  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3933echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3934fi
3935
3936if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3937  # We used to keeping the `.' as first argument, in order to
3938  # allow $(mkdir_p) to be used without argument.  As in
3939  #   $(mkdir_p) $(somedir)
3940  # where $(somedir) is conditionally defined.  However this is wrong
3941  # for two reasons:
3942  #  1. if the package is installed by a user who cannot write `.'
3943  #     make install will fail,
3944  #  2. the above comment should most certainly read
3945  #     $(mkdir_p) $(DESTDIR)$(somedir)
3946  #     so it does not work when $(somedir) is undefined and
3947  #     $(DESTDIR) is not.
3948  #  To support the latter case, we have to write
3949  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3950  #  so the `.' trick is pointless.
3951  mkdir_p='mkdir -p --'
3952else
3953  # On NextStep and OpenStep, the `mkdir' command does not
3954  # recognize any option.  It will interpret all options as
3955  # directories to create, and then abort because `.' already
3956  # exists.
3957  for d in ./-p ./--version;
3958  do
3959    test -d $d && rmdir $d
3960  done
3961  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3962  if test -f "$ac_aux_dir/mkinstalldirs"; then
3963    mkdir_p='$(mkinstalldirs)'
3964  else
3965    mkdir_p='$(install_sh) -d'
3966  fi
3967fi
3968
3969for ac_prog in gawk mawk nawk awk
3970do
3971  # Extract the first word of "$ac_prog", so it can be a program name with args.
3972set dummy $ac_prog; ac_word=$2
3973echo "$as_me:$LINENO: checking for $ac_word" >&5
3974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975if test "${ac_cv_prog_AWK+set}" = set; then
3976  echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978  if test -n "$AWK"; then
3979  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3980else
3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH
3983do
3984  IFS=$as_save_IFS
3985  test -z "$as_dir" && as_dir=.
3986  for ac_exec_ext in '' $ac_executable_extensions; do
3987  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988    ac_cv_prog_AWK="$ac_prog"
3989    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990    break 2
3991  fi
3992done
3993done
3994
3995fi
3996fi
3997AWK=$ac_cv_prog_AWK
3998if test -n "$AWK"; then
3999  echo "$as_me:$LINENO: result: $AWK" >&5
4000echo "${ECHO_T}$AWK" >&6
4001else
4002  echo "$as_me:$LINENO: result: no" >&5
4003echo "${ECHO_T}no" >&6
4004fi
4005
4006  test -n "$AWK" && break
4007done
4008
4009echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4010echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4011set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4012if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4013  echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
4015  cat >conftest.make <<\_ACEOF
4016all:
4017        @echo 'ac_maketemp="$(MAKE)"'
4018_ACEOF
4019# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4020eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4021if test -n "$ac_maketemp"; then
4022  eval ac_cv_prog_make_${ac_make}_set=yes
4023else
4024  eval ac_cv_prog_make_${ac_make}_set=no
4025fi
4026rm -f conftest.make
4027fi
4028if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4029  echo "$as_me:$LINENO: result: yes" >&5
4030echo "${ECHO_T}yes" >&6
4031  SET_MAKE=
4032else
4033  echo "$as_me:$LINENO: result: no" >&5
4034echo "${ECHO_T}no" >&6
4035  SET_MAKE="MAKE=${MAKE-make}"
4036fi
4037
4038rm -rf .tst 2>/dev/null
4039mkdir .tst 2>/dev/null
4040if test -d .tst; then
4041  am__leading_dot=.
4042else
4043  am__leading_dot=_
4044fi
4045rmdir .tst 2>/dev/null
4046
4047DEPDIR="${am__leading_dot}deps"
4048
4049          ac_config_commands="$ac_config_commands depfiles"
4050
4051
4052am_make=${MAKE-make}
4053cat > confinc << 'END'
4054am__doit:
4055        @echo done
4056.PHONY: am__doit
4057END
4058# If we don't find an include directive, just comment out the code.
4059echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4060echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4061am__include="#"
4062am__quote=
4063_am_result=none
4064# First try GNU make style include.
4065echo "include confinc" > confmf
4066# We grep out `Entering directory' and `Leaving directory'
4067# messages which can occur if `w' ends up in MAKEFLAGS.
4068# In particular we don't look at `^make:' because GNU make might
4069# be invoked under some other name (usually "gmake"), in which
4070# case it prints its new name instead of `make'.
4071if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4072   am__include=include
4073   am__quote=
4074   _am_result=GNU
4075fi
4076# Now try BSD make style include.
4077if test "$am__include" = "#"; then
4078   echo '.include "confinc"' > confmf
4079   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4080      am__include=.include
4081      am__quote="\""
4082      _am_result=BSD
4083   fi
4084fi
4085
4086
4087echo "$as_me:$LINENO: result: $_am_result" >&5
4088echo "${ECHO_T}$_am_result" >&6
4089rm -f confinc confmf
4090
4091# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4092if test "${enable_dependency_tracking+set}" = set; then
4093  enableval="$enable_dependency_tracking"
4094
4095fi;
4096if test "x$enable_dependency_tracking" != xno; then
4097  am_depcomp="$ac_aux_dir/depcomp"
4098  AMDEPBACKSLASH='\'
4099fi
4100
4101
4102if test "x$enable_dependency_tracking" != xno; then
4103  AMDEP_TRUE=
4104  AMDEP_FALSE='#'
4105else
4106  AMDEP_TRUE='#'
4107  AMDEP_FALSE=
4108fi
4109
4110
4111
4112
4113
4114# AC_MSG_NOTICE([Beginning automake initialisation.])
4115# Stuff for automake
4116# test to see if srcdir already configured
4117if test "`cd $srcdir && pwd`" != "`pwd`" &&
4118   test -f $srcdir/config.status; then
4119  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4120echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4121   { (exit 1); exit 1; }; }
4122fi
4123
4124# test whether we have cygpath
4125if test -z "$CYGPATH_W"; then
4126  if (cygpath --version) >/dev/null 2>/dev/null; then
4127    CYGPATH_W='cygpath -w'
4128  else
4129    CYGPATH_W=echo
4130  fi
4131fi
4132
4133
4134# Define the identity of the package.
4135 PACKAGE='thirdpartyblas'
4136 VERSION='0.0'
4137
4138
4139cat >>confdefs.h <<_ACEOF
4140#define PACKAGE "$PACKAGE"
4141_ACEOF
4142
4143
4144cat >>confdefs.h <<_ACEOF
4145#define VERSION "$VERSION"
4146_ACEOF
4147
4148# Some tools Automake needs.
4149
4150ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4151
4152
4153AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4154
4155
4156AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4157
4158
4159AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4160
4161
4162MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4163
4164install_sh=${install_sh-"$am_aux_dir/install-sh"}
4165
4166# Installed binaries are usually stripped using `strip' when the user
4167# run `make install-strip'.  However `strip' might not be the right
4168# tool to use in cross-compilation environments, therefore Automake
4169# will honor the `STRIP' environment variable to overrule this program.
4170if test "$cross_compiling" != no; then
4171  if test -n "$ac_tool_prefix"; then
4172  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4173set dummy ${ac_tool_prefix}strip; ac_word=$2
4174echo "$as_me:$LINENO: checking for $ac_word" >&5
4175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176if test "${ac_cv_prog_STRIP+set}" = set; then
4177  echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179  if test -n "$STRIP"; then
4180  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185  IFS=$as_save_IFS
4186  test -z "$as_dir" && as_dir=.
4187  for ac_exec_ext in '' $ac_executable_extensions; do
4188  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4190    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191    break 2
4192  fi
4193done
4194done
4195
4196fi
4197fi
4198STRIP=$ac_cv_prog_STRIP
4199if test -n "$STRIP"; then
4200  echo "$as_me:$LINENO: result: $STRIP" >&5
4201echo "${ECHO_T}$STRIP" >&6
4202else
4203  echo "$as_me:$LINENO: result: no" >&5
4204echo "${ECHO_T}no" >&6
4205fi
4206
4207fi
4208if test -z "$ac_cv_prog_STRIP"; then
4209  ac_ct_STRIP=$STRIP
4210  # Extract the first word of "strip", so it can be a program name with args.
4211set dummy strip; ac_word=$2
4212echo "$as_me:$LINENO: checking for $ac_word" >&5
4213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4214if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4215  echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217  if test -n "$ac_ct_STRIP"; then
4218  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225  for ac_exec_ext in '' $ac_executable_extensions; do
4226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227    ac_cv_prog_ac_ct_STRIP="strip"
4228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229    break 2
4230  fi
4231done
4232done
4233
4234  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4235fi
4236fi
4237ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4238if test -n "$ac_ct_STRIP"; then
4239  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4240echo "${ECHO_T}$ac_ct_STRIP" >&6
4241else
4242  echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244fi
4245
4246  STRIP=$ac_ct_STRIP
4247else
4248  STRIP="$ac_cv_prog_STRIP"
4249fi
4250
4251fi
4252INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4253
4254# We need awk for the "check" target.  The system "awk" is bad on
4255# some platforms.
4256# Always define AMTAR for backward compatibility.
4257
4258AMTAR=${AMTAR-"${am_missing_run}tar"}
4259
4260am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4261
4262
4263
4264
4265depcc="$CC"   am_compiler_list=
4266
4267echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4268echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4269if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4270  echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4273  # We make a subdir and do the tests there.  Otherwise we can end up
4274  # making bogus files that we don't know about and never remove.  For
4275  # instance it was reported that on HP-UX the gcc test will end up
4276  # making a dummy file named `D' -- because `-MD' means `put the output
4277  # in D'.
4278  mkdir conftest.dir
4279  # Copy depcomp to subdir because otherwise we won't find it if we're
4280  # using a relative directory.
4281  cp "$am_depcomp" conftest.dir
4282  cd conftest.dir
4283  # We will build objects and dependencies in a subdirectory because
4284  # it helps to detect inapplicable dependency modes.  For instance
4285  # both Tru64's cc and ICC support -MD to output dependencies as a
4286  # side effect of compilation, but ICC will put the dependencies in
4287  # the current directory while Tru64 will put them in the object
4288  # directory.
4289  mkdir sub
4290
4291  am_cv_CC_dependencies_compiler_type=none
4292  if test "$am_compiler_list" = ""; then
4293     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4294  fi
4295  for depmode in $am_compiler_list; do
4296    # Setup a source with many dependencies, because some compilers
4297    # like to wrap large dependency lists on column 80 (with \), and
4298    # we should not choose a depcomp mode which is confused by this.
4299    #
4300    # We need to recreate these files for each test, as the compiler may
4301    # overwrite some of them when testing with obscure command lines.
4302    # This happens at least with the AIX C compiler.
4303    : > sub/conftest.c
4304    for i in 1 2 3 4 5 6; do
4305      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4306      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4307      # Solaris 8's {/usr,}/bin/sh.
4308      touch sub/conftst$i.h
4309    done
4310    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4311
4312    case $depmode in
4313    nosideeffect)
4314      # after this tag, mechanisms are not by side-effect, so they'll
4315      # only be used when explicitly requested
4316      if test "x$enable_dependency_tracking" = xyes; then
4317        continue
4318      else
4319        break
4320      fi
4321      ;;
4322    none) break ;;
4323    esac
4324    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4325    # mode.  It turns out that the SunPro C++ compiler does not properly
4326    # handle `-M -o', and we need to detect this.
4327    if depmode=$depmode \
4328       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4329       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4330       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4331         >/dev/null 2>conftest.err &&
4332       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4333       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4334       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4335      # icc doesn't choke on unknown options, it will just issue warnings
4336      # or remarks (even with -Werror).  So we grep stderr for any message
4337      # that says an option was ignored or not supported.
4338      # When given -MP, icc 7.0 and 7.1 complain thusly:
4339      #   icc: Command line warning: ignoring option '-M'; no argument required
4340      # The diagnosis changed in icc 8.0:
4341      #   icc: Command line remark: option '-MP' not supported
4342      if (grep 'ignoring option' conftest.err ||
4343          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4344        am_cv_CC_dependencies_compiler_type=$depmode
4345        break
4346      fi
4347    fi
4348  done
4349
4350  cd ..
4351  rm -rf conftest.dir
4352else
4353  am_cv_CC_dependencies_compiler_type=none
4354fi
4355
4356fi
4357echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4358echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4359CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4360
4361
4362
4363if
4364  test "x$enable_dependency_tracking" != xno \
4365  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4366  am__fastdepCC_TRUE=
4367  am__fastdepCC_FALSE='#'
4368else
4369  am__fastdepCC_TRUE='#'
4370  am__fastdepCC_FALSE=
4371fi
4372
4373
4374
4375echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4376echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4377    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4378if test "${enable_maintainer_mode+set}" = set; then
4379  enableval="$enable_maintainer_mode"
4380  USE_MAINTAINER_MODE=$enableval
4381else
4382  USE_MAINTAINER_MODE=no
4383fi;
4384  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4385echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4386
4387
4388if test $USE_MAINTAINER_MODE = yes; then
4389  MAINTAINER_MODE_TRUE=
4390  MAINTAINER_MODE_FALSE='#'
4391else
4392  MAINTAINER_MODE_TRUE='#'
4393  MAINTAINER_MODE_FALSE=
4394fi
4395
4396  MAINT=$MAINTAINER_MODE_TRUE
4397
4398
4399
4400coin_have_externals=no
4401if test "$enable_maintainer_mode" = yes; then
4402
4403  # If maintainer mode is chosen, we make sure that the correct versions
4404  # of the tools are used, and that we know where libtool.m4 is (to
4405  # recreate acinclude.m4)
4406
4407
4408  LIBTOOLM4=
4409  # Normally, $HOME
4410  AUTOTOOLS_DFLT=$HOME
4411
4412  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4413echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4414if test "${ac_cv_use_correct_autotools+set}" = set; then
4415  echo $ECHO_N "(cached) $ECHO_C" >&6
4416else
4417  ac_cv_use_correct_autotools=check
4418fi
4419echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4420echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4421
4422  if test $ac_cv_use_correct_autotools = check; then
4423    ac_cv_use_correct_autotools=yes
4424    # Check if we have autoconf
4425    # Extract the first word of "autoconf", so it can be a program name with args.
4426set dummy autoconf; ac_word=$2
4427echo "$as_me:$LINENO: checking for $ac_word" >&5
4428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4429if test "${ac_cv_prog_have_autoconf+set}" = set; then
4430  echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432  if test -n "$have_autoconf"; then
4433  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4434else
4435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436for as_dir in $PATH
4437do
4438  IFS=$as_save_IFS
4439  test -z "$as_dir" && as_dir=.
4440  for ac_exec_ext in '' $ac_executable_extensions; do
4441  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442    ac_cv_prog_have_autoconf="yes"
4443    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444    break 2
4445  fi
4446done
4447done
4448
4449  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4450fi
4451fi
4452have_autoconf=$ac_cv_prog_have_autoconf
4453if test -n "$have_autoconf"; then
4454  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4455echo "${ECHO_T}$have_autoconf" >&6
4456else
4457  echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6
4459fi
4460
4461    if test $have_autoconf = no; then
4462      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4463echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4464   { (exit 1); exit 1; }; }
4465    fi
4466
4467    # Check whether autoconf is the correct version
4468    correct_version='2.59'
4469    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4470    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4471echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4472    autoconf --version > confauto.out 2>&1
4473    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4474      echo "$as_me:$LINENO: result: yes" >&5
4475echo "${ECHO_T}yes" >&6
4476    else
4477      rm -f confauto.out
4478      echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6
4480      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4481echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4482   { (exit 1); exit 1; }; }
4483    fi
4484    rm -f confauto.out
4485
4486    # Check if the executable autoconf is picked up from the correct location
4487    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4488echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4489    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4490    autoconf_dir=`cd $autoconf_dir; pwd`
4491    if test x$AUTOTOOLS_DIR = x; then
4492      want_dir=$AUTOTOOLS_DFLT/bin
4493    else
4494      want_dir=$AUTOTOOLS_DIR/bin
4495    fi
4496    if test $autoconf_dir = `cd $want_dir; pwd`; then
4497      echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
4499    else
4500      rm -f confauto.out
4501      echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6
4503      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4504echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4505   { (exit 1); exit 1; }; }
4506    fi
4507
4508    # Check if we have automake
4509    # Extract the first word of "automake", so it can be a program name with args.
4510set dummy automake; ac_word=$2
4511echo "$as_me:$LINENO: checking for $ac_word" >&5
4512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513if test "${ac_cv_prog_have_automake+set}" = set; then
4514  echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516  if test -n "$have_automake"; then
4517  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522  IFS=$as_save_IFS
4523  test -z "$as_dir" && as_dir=.
4524  for ac_exec_ext in '' $ac_executable_extensions; do
4525  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526    ac_cv_prog_have_automake="yes"
4527    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528    break 2
4529  fi
4530done
4531done
4532
4533  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4534fi
4535fi
4536have_automake=$ac_cv_prog_have_automake
4537if test -n "$have_automake"; then
4538  echo "$as_me:$LINENO: result: $have_automake" >&5
4539echo "${ECHO_T}$have_automake" >&6
4540else
4541  echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
4543fi
4544
4545    if test $have_automake = no; then
4546      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4547echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4548   { (exit 1); exit 1; }; }
4549    fi
4550
4551    # Check whether automake is the correct version
4552    correct_version='1.9.6'
4553    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4554    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4555echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4556    automake --version > confauto.out 2>&1
4557    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4558      echo "$as_me:$LINENO: result: yes" >&5
4559echo "${ECHO_T}yes" >&6
4560    else
4561      rm -f confauto.out
4562      echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6
4564      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4565echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4566   { (exit 1); exit 1; }; }
4567    fi
4568    rm -f confauto.out
4569
4570    # Check if the executable automake is picked up from the correct location
4571    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4572echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4573    automake_dir=`which automake | sed -e 's=/automake=='`
4574    automake_dir=`cd $automake_dir; pwd`
4575    if test x$AUTOTOOLS_DIR = x; then
4576      want_dir=$AUTOTOOLS_DFLT/bin
4577    else
4578      want_dir=$AUTOTOOLS_DIR/bin
4579    fi
4580    if test $automake_dir = `cd $want_dir; pwd`; then
4581      echo "$as_me:$LINENO: result: yes" >&5
4582echo "${ECHO_T}yes" >&6
4583    else
4584      rm -f confauto.out
4585      echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
4587      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4588echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4589   { (exit 1); exit 1; }; }
4590    fi
4591
4592    # Check if this is the correct version of libtool (with escaped dots)
4593    if test x$AUTOTOOLS_DIR = x; then
4594      want_dir=$AUTOTOOLS_DFLT/share
4595    else
4596      want_dir=$AUTOTOOLS_DIR/share
4597    fi
4598    correct_version='1.5.22'
4599    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4600    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4601echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4602echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4603if eval "test \"\${$as_ac_File+set}\" = set"; then
4604  echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606  test "$cross_compiling" = yes &&
4607  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4608echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4609   { (exit 1); exit 1; }; }
4610if test -r "$want_dir/libtool/ltmain.sh"; then
4611  eval "$as_ac_File=yes"
4612else
4613  eval "$as_ac_File=no"
4614fi
4615fi
4616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4617echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4618if test `eval echo '${'$as_ac_File'}'` = yes; then
4619  have_ltmain=yes
4620else
4621  have_ltmain=no
4622fi
4623
4624    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4625echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4626    if test $have_ltmain = yes; then
4627    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4628        echo "$as_me:$LINENO: result: yes" >&5
4629echo "${ECHO_T}yes" >&6
4630      else
4631        echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6
4633        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4634echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4635   { (exit 1); exit 1; }; }
4636      fi
4637    else
4638      echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6
4640      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4641echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4642   { (exit 1); exit 1; }; }
4643    fi
4644  fi
4645
4646  # Check if we can find the libtool file
4647  if test x$AUTOTOOLS_DIR = x; then
4648    want_dir=$AUTOTOOLS_DFLT/share
4649  else
4650    want_dir=$AUTOTOOLS_DIR/share
4651  fi
4652  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4653echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4654echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4655if eval "test \"\${$as_ac_File+set}\" = set"; then
4656  echo $ECHO_N "(cached) $ECHO_C" >&6
4657else
4658  test "$cross_compiling" = yes &&
4659  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4660echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4661   { (exit 1); exit 1; }; }
4662if test -r "$want_dir/aclocal/libtool.m4"; then
4663  eval "$as_ac_File=yes"
4664else
4665  eval "$as_ac_File=no"
4666fi
4667fi
4668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4669echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4670if test `eval echo '${'$as_ac_File'}'` = yes; then
4671  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4672else
4673  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4674echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4675   { (exit 1); exit 1; }; }
4676fi
4677
4678
4679  # Check if we have an Externals file
4680  if test -r $srcdir/Externals; then
4681    coin_have_externals=yes
4682  fi
4683  # Check if subversion is installed and understands https
4684  # Extract the first word of "svn", so it can be a program name with args.
4685set dummy svn; ac_word=$2
4686echo "$as_me:$LINENO: checking for $ac_word" >&5
4687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4688if test "${ac_cv_prog_have_svn+set}" = set; then
4689  echo $ECHO_N "(cached) $ECHO_C" >&6
4690else
4691  if test -n "$have_svn"; then
4692  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697  IFS=$as_save_IFS
4698  test -z "$as_dir" && as_dir=.
4699  for ac_exec_ext in '' $ac_executable_extensions; do
4700  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701    ac_cv_prog_have_svn="yes"
4702    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703    break 2
4704  fi
4705done
4706done
4707
4708  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4709fi
4710fi
4711have_svn=$ac_cv_prog_have_svn
4712if test -n "$have_svn"; then
4713  echo "$as_me:$LINENO: result: $have_svn" >&5
4714echo "${ECHO_T}$have_svn" >&6
4715else
4716  echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6
4718fi
4719
4720  if test x$have_svn = xyes; then
4721    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4722echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4723if test "${ac_cv_svn_understands_https+set}" = set; then
4724  echo $ECHO_N "(cached) $ECHO_C" >&6
4725else
4726  svn --version > confauto.out 2>&1
4727                    if $EGREP https confauto.out >/dev/null 2>&1; then
4728                      ac_cv_svn_understands_https=yes
4729                    else
4730                      ac_cv_svn_understands_https=no
4731                      have_svn=no
4732                      ac_cv_prog_have_svn=no
4733                    fi
4734                    rm -f confauto.out
4735fi
4736echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4737echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4738  fi
4739
4740  # Find the location of the BuildTools directory
4741  BUILDTOOLSDIR=
4742  if test -r $srcdir/BuildTools/coin.m4; then
4743    BUILDTOOLSDIR=$srcdir/BuildTools
4744  else
4745    if test -r $srcdir/../BuildTools/coin.m4; then
4746      BUILDTOOLSDIR=$srcdir/../BuildTools
4747    else
4748      if test -r $srcdir/../../BuildTools/coin.m4; then
4749        BUILDTOOLSDIR=$srcdir/../../BuildTools
4750      else
4751        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4752echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4753   { (exit 1); exit 1; }; }
4754      fi
4755    fi
4756  fi
4757
4758
4759  # The following variable is set to the name of the directory where
4760  # the autotool scripts are located
4761
4762  AUX_DIR=$ac_aux_dir
4763fi
4764
4765# helpful variable for the base directory of this package
4766abs_source_dir=`cd $srcdir; pwd`
4767
4768
4769# Stuff for example Makefiles
4770if test x$prefix = xNONE; then
4771  full_prefix=$ac_default_prefix
4772else
4773  full_prefix=$prefix
4774fi
4775full_prefix=`cd $full_prefix ; pwd`
4776
4777abs_lib_dir=$full_prefix/lib
4778
4779abs_include_dir=$full_prefix/include
4780
4781abs_bin_dir=$full_prefix/bin
4782
4783
4784
4785if test $coin_have_externals = yes && test x$have_svn = xyes; then
4786  HAVE_EXTERNALS_TRUE=
4787  HAVE_EXTERNALS_FALSE='#'
4788else
4789  HAVE_EXTERNALS_TRUE='#'
4790  HAVE_EXTERNALS_FALSE=
4791fi
4792
4793
4794# AC_MSG_NOTICE([End automake initialisation.])
4795
4796
4797
4798LIBTOOL=
4799if test -r ../libtool; then
4800  coin_config_dir=..
4801  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4802fi
4803if test "x$LIBTOOL" = x; then
4804  if test -r ../../libtool; then
4805    coin_config_dir=../..
4806    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4807  fi
4808fi
4809
4810if test "x$LIBTOOL" = x; then
4811# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4812  # Stuff for libtool
4813  # Check whether --enable-shared or --disable-shared was given.
4814if test "${enable_shared+set}" = set; then
4815  enableval="$enable_shared"
4816  p=${PACKAGE-default}
4817    case $enableval in
4818    yes) enable_shared=yes ;;
4819    no) enable_shared=no ;;
4820    *)
4821      enable_shared=no
4822      # Look at the argument we got.  We use all the common list separators.
4823      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4824      for pkg in $enableval; do
4825        IFS="$lt_save_ifs"
4826        if test "X$pkg" = "X$p"; then
4827          enable_shared=yes
4828        fi
4829      done
4830      IFS="$lt_save_ifs"
4831      ;;
4832    esac
4833else
4834  enable_shared=yes
4835fi;
4836
4837# Check whether --enable-fast-install or --disable-fast-install was given.
4838if test "${enable_fast_install+set}" = set; then
4839  enableval="$enable_fast_install"
4840  p=${PACKAGE-default}
4841    case $enableval in
4842    yes) enable_fast_install=yes ;;
4843    no) enable_fast_install=no ;;
4844    *)
4845      enable_fast_install=no
4846      # Look at the argument we got.  We use all the common list separators.
4847      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4848      for pkg in $enableval; do
4849        IFS="$lt_save_ifs"
4850        if test "X$pkg" = "X$p"; then
4851          enable_fast_install=yes
4852        fi
4853      done
4854      IFS="$lt_save_ifs"
4855      ;;
4856    esac
4857else
4858  enable_fast_install=yes
4859fi;
4860
4861echo "$as_me:$LINENO: checking host system type" >&5
4862echo $ECHO_N "checking host system type... $ECHO_C" >&6
4863if test "${ac_cv_host+set}" = set; then
4864  echo $ECHO_N "(cached) $ECHO_C" >&6
4865else
4866  ac_cv_host_alias=$host_alias
4867test -z "$ac_cv_host_alias" &&
4868  ac_cv_host_alias=$ac_cv_build_alias
4869ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4870  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4871echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4872   { (exit 1); exit 1; }; }
4873
4874fi
4875echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4876echo "${ECHO_T}$ac_cv_host" >&6
4877host=$ac_cv_host
4878host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4879host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4880host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4881
4882
4883echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4884echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4885if test "${lt_cv_path_SED+set}" = set; then
4886  echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888  # Loop through the user's path and test for sed and gsed.
4889# Then use that list of sed's as ones to test for truncation.
4890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891for as_dir in $PATH
4892do
4893  IFS=$as_save_IFS
4894  test -z "$as_dir" && as_dir=.
4895  for lt_ac_prog in sed gsed; do
4896    for ac_exec_ext in '' $ac_executable_extensions; do
4897      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4898        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4899      fi
4900    done
4901  done
4902done
4903lt_ac_max=0
4904lt_ac_count=0
4905# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4906# along with /bin/sed that truncates output.
4907for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4908  test ! -f $lt_ac_sed && continue
4909  cat /dev/null > conftest.in
4910  lt_ac_count=0
4911  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4912  # Check for GNU sed and select it if it is found.
4913  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4914    lt_cv_path_SED=$lt_ac_sed
4915    break
4916  fi
4917  while true; do
4918    cat conftest.in conftest.in >conftest.tmp
4919    mv conftest.tmp conftest.in
4920    cp conftest.in conftest.nl
4921    echo >>conftest.nl
4922    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4923    cmp -s conftest.out conftest.nl || break
4924    # 10000 chars as input seems more than enough
4925    test $lt_ac_count -gt 10 && break
4926    lt_ac_count=`expr $lt_ac_count + 1`
4927    if test $lt_ac_count -gt $lt_ac_max; then
4928      lt_ac_max=$lt_ac_count
4929      lt_cv_path_SED=$lt_ac_sed
4930    fi
4931  done
4932done
4933
4934fi
4935
4936SED=$lt_cv_path_SED
4937echo "$as_me:$LINENO: result: $SED" >&5
4938echo "${ECHO_T}$SED" >&6
4939
4940
4941# Check whether --with-gnu-ld or --without-gnu-ld was given.
4942if test "${with_gnu_ld+set}" = set; then
4943  withval="$with_gnu_ld"
4944  test "$withval" = no || with_gnu_ld=yes
4945else
4946  with_gnu_ld=no
4947fi;
4948ac_prog=ld
4949if test "$GCC" = yes; then
4950  # Check if gcc -print-prog-name=ld gives a path.
4951  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4952echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4953  case $host in
4954  *-*-mingw*)
4955    # gcc leaves a trailing carriage return which upsets mingw
4956    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4957  *)
4958    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4959  esac
4960  case $ac_prog in
4961    # Accept absolute paths.
4962    [\\/]* | ?:[\\/]*)
4963      re_direlt='/[^/][^/]*/\.\./'
4964      # Canonicalize the pathname of ld
4965      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4966      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4967        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4968      done
4969      test -z "$LD" && LD="$ac_prog"
4970      ;;
4971  "")
4972    # If it fails, then pretend we aren't using GCC.
4973    ac_prog=ld
4974    ;;
4975  *)
4976    # If it is relative, then search for the first ld in PATH.
4977    with_gnu_ld=unknown
4978    ;;
4979  esac
4980elif test "$with_gnu_ld" = yes; then
4981  echo "$as_me:$LINENO: checking for GNU ld" >&5
4982echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4983else
4984  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4985echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4986fi
4987if test "${lt_cv_path_LD+set}" = set; then
4988  echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990  if test -z "$LD"; then
4991  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4992  for ac_dir in $PATH; do
4993    IFS="$lt_save_ifs"
4994    test -z "$ac_dir" && ac_dir=.
4995    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4996      lt_cv_path_LD="$ac_dir/$ac_prog"
4997      # Check to see if the program is GNU ld.  I'd rather use --version,
4998      # but apparently some variants of GNU ld only accept -v.
4999      # Break only if it was the GNU/non-GNU ld that we prefer.
5000      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5001      *GNU* | *'with BFD'*)
5002        test "$with_gnu_ld" != no && break
5003        ;;
5004      *)
5005        test "$with_gnu_ld" != yes && break
5006        ;;
5007      esac
5008    fi
5009  done
5010  IFS="$lt_save_ifs"
5011else
5012  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5013fi
5014fi
5015
5016LD="$lt_cv_path_LD"
5017if test -n "$LD"; then
5018  echo "$as_me:$LINENO: result: $LD" >&5
5019echo "${ECHO_T}$LD" >&6
5020else
5021  echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023fi
5024test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5025echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5026   { (exit 1); exit 1; }; }
5027echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5028echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5029if test "${lt_cv_prog_gnu_ld+set}" = set; then
5030  echo $ECHO_N "(cached) $ECHO_C" >&6
5031else
5032  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5033case `$LD -v 2>&1 </dev/null` in
5034*GNU* | *'with BFD'*)
5035  lt_cv_prog_gnu_ld=yes
5036  ;;
5037*)
5038  lt_cv_prog_gnu_ld=no
5039  ;;
5040esac
5041fi
5042echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5043echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5044with_gnu_ld=$lt_cv_prog_gnu_ld
5045
5046
5047echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5048echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5049if test "${lt_cv_ld_reload_flag+set}" = set; then
5050  echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052  lt_cv_ld_reload_flag='-r'
5053fi
5054echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5055echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5056reload_flag=$lt_cv_ld_reload_flag
5057case $reload_flag in
5058"" | " "*) ;;
5059*) reload_flag=" $reload_flag" ;;
5060esac
5061reload_cmds='$LD$reload_flag -o $output$reload_objs'
5062case $host_os in
5063  darwin*)
5064    if test "$GCC" = yes; then
5065      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5066    else
5067      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5068    fi
5069    ;;
5070esac
5071
5072echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5073echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5074if test "${lt_cv_path_NM+set}" = set; then
5075  echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077  if test -n "$NM"; then
5078  # Let the user override the test.
5079  lt_cv_path_NM="$NM"
5080else
5081  lt_nm_to_check="${ac_tool_prefix}nm"
5082  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5083    lt_nm_to_check="$lt_nm_to_check nm"
5084  fi
5085  for lt_tmp_nm in $lt_nm_to_check; do
5086    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5087    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5088      IFS="$lt_save_ifs"
5089      test -z "$ac_dir" && ac_dir=.
5090      tmp_nm="$ac_dir/$lt_tmp_nm"
5091      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5092        # Check to see if the nm accepts a BSD-compat flag.
5093        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5094        #   nm: unknown option "B" ignored
5095        # Tru64's nm complains that /dev/null is an invalid object file
5096        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5097        */dev/null* | *'Invalid file or object type'*)
5098          lt_cv_path_NM="$tmp_nm -B"
5099          break
5100          ;;
5101        *)
5102          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5103          */dev/null*)
5104            lt_cv_path_NM="$tmp_nm -p"
5105            break
5106            ;;
5107          *)
5108            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5109            continue # so that we can try to find one that supports BSD flags
5110            ;;
5111          esac
5112          ;;
5113        esac
5114      fi
5115    done
5116    IFS="$lt_save_ifs"
5117  done
5118  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5119fi
5120fi
5121echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5122echo "${ECHO_T}$lt_cv_path_NM" >&6
5123NM="$lt_cv_path_NM"
5124
5125echo "$as_me:$LINENO: checking whether ln -s works" >&5
5126echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5127LN_S=$as_ln_s
5128if test "$LN_S" = "ln -s"; then
5129  echo "$as_me:$LINENO: result: yes" >&5
5130echo "${ECHO_T}yes" >&6
5131else
5132  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5133echo "${ECHO_T}no, using $LN_S" >&6
5134fi
5135
5136echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5137echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5138if test "${lt_cv_deplibs_check_method+set}" = set; then
5139  echo $ECHO_N "(cached) $ECHO_C" >&6
5140else
5141  lt_cv_file_magic_cmd='$MAGIC_CMD'
5142lt_cv_file_magic_test_file=
5143lt_cv_deplibs_check_method='unknown'
5144# Need to set the preceding variable on all platforms that support
5145# interlibrary dependencies.
5146# 'none' -- dependencies not supported.
5147# `unknown' -- same as none, but documents that we really don't know.
5148# 'pass_all' -- all dependencies passed with no checks.
5149# 'test_compile' -- check by making test program.
5150# 'file_magic [[regex]]' -- check by looking for files in library path
5151# which responds to the $file_magic_cmd with a given extended regex.
5152# If you have `file' or equivalent on your system and you're not sure
5153# whether `pass_all' will *always* work, you probably want this one.
5154
5155case $host_os in
5156aix4* | aix5*)
5157  lt_cv_deplibs_check_method=pass_all
5158  ;;
5159
5160beos*)
5161  lt_cv_deplibs_check_method=pass_all
5162  ;;
5163
5164bsdi[45]*)
5165  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5166  lt_cv_file_magic_cmd='/usr/bin/file -L'
5167  lt_cv_file_magic_test_file=/shlib/libc.so
5168  ;;
5169
5170cygwin*)
5171  # func_win32_libid is a shell function defined in ltmain.sh
5172  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5173  lt_cv_file_magic_cmd='func_win32_libid'
5174  ;;
5175
5176mingw* | pw32*)
5177  # Base MSYS/MinGW do not provide the 'file' command needed by
5178  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5179  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5180  lt_cv_file_magic_cmd='$OBJDUMP -f'
5181  ;;
5182
5183darwin* | rhapsody*)
5184  lt_cv_deplibs_check_method=pass_all
5185  ;;
5186
5187freebsd* | kfreebsd*-gnu | dragonfly*)
5188  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5189    case $host_cpu in
5190    i*86 )
5191      # Not sure whether the presence of OpenBSD here was a mistake.
5192      # Let's accept both of them until this is cleared up.
5193      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5194      lt_cv_file_magic_cmd=/usr/bin/file
5195      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5196      ;;
5197    esac
5198  else
5199    lt_cv_deplibs_check_method=pass_all
5200  fi
5201  ;;
5202
5203gnu*)
5204  lt_cv_deplibs_check_method=pass_all
5205  ;;
5206
5207hpux10.20* | hpux11*)
5208  lt_cv_file_magic_cmd=/usr/bin/file
5209  case $host_cpu in
5210  ia64*)
5211    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5212    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5213    ;;
5214  hppa*64*)
5215    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]'
5216    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5217    ;;
5218  *)
5219    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5220    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5221    ;;
5222  esac
5223  ;;
5224
5225interix3*)
5226  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5227  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5228  ;;
5229
5230irix5* | irix6* | nonstopux*)
5231  case $LD in
5232  *-32|*"-32 ") libmagic=32-bit;;
5233  *-n32|*"-n32 ") libmagic=N32;;
5234  *-64|*"-64 ") libmagic=64-bit;;
5235  *) libmagic=never-match;;
5236  esac
5237  lt_cv_deplibs_check_method=pass_all
5238  ;;
5239
5240# This must be Linux ELF.
5241linux*)
5242  lt_cv_deplibs_check_method=pass_all
5243  ;;
5244
5245netbsd*)
5246  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5247    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5248  else
5249    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5250  fi
5251  ;;
5252
5253newos6*)
5254  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5255  lt_cv_file_magic_cmd=/usr/bin/file
5256  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5257  ;;
5258
5259nto-qnx*)
5260  lt_cv_deplibs_check_method=unknown
5261  ;;
5262
5263openbsd*)
5264  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5265    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5266  else
5267    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5268  fi
5269  ;;
5270
5271osf3* | osf4* | osf5*)
5272  lt_cv_deplibs_check_method=pass_all
5273  ;;
5274
5275solaris*)
5276  lt_cv_deplibs_check_method=pass_all
5277  ;;
5278
5279sysv4 | sysv4.3*)
5280  case $host_vendor in
5281  motorola)
5282    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]'
5283    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5284    ;;
5285  ncr)
5286    lt_cv_deplibs_check_method=pass_all
5287    ;;
5288  sequent)
5289    lt_cv_file_magic_cmd='/bin/file'
5290    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5291    ;;
5292  sni)
5293    lt_cv_file_magic_cmd='/bin/file'
5294    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5295    lt_cv_file_magic_test_file=/lib/libc.so
5296    ;;
5297  siemens)
5298    lt_cv_deplibs_check_method=pass_all
5299    ;;
5300  pc)
5301    lt_cv_deplibs_check_method=pass_all
5302    ;;
5303  esac
5304  ;;
5305
5306sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5307  lt_cv_deplibs_check_method=pass_all
5308  ;;
5309esac
5310
5311fi
5312echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5313echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5314file_magic_cmd=$lt_cv_file_magic_cmd
5315deplibs_check_method=$lt_cv_deplibs_check_method
5316test -z "$deplibs_check_method" && deplibs_check_method=unknown
5317
5318
5319
5320
5321# If no C compiler was specified, use CC.
5322LTCC=${LTCC-"$CC"}
5323
5324# If no C compiler flags were specified, use CFLAGS.
5325LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5326
5327# Allow CC to be a program name with arguments.
5328compiler=$CC
5329
5330# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5331if test "${enable_libtool_lock+set}" = set; then
5332  enableval="$enable_libtool_lock"
5333
5334fi;
5335test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5336
5337# Some flags need to be propagated to the compiler or linker for good
5338# libtool support.
5339case $host in
5340ia64-*-hpux*)
5341  # Find out which ABI we are using.
5342  echo 'int i;' > 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    case `/usr/bin/file conftest.$ac_objext` in
5349    *ELF-32*)
5350      HPUX_IA64_MODE="32"
5351      ;;
5352    *ELF-64*)
5353      HPUX_IA64_MODE="64"
5354      ;;
5355    esac
5356  fi
5357  rm -rf conftest*
5358  ;;
5359*-*-irix6*)
5360  # Find out which ABI we are using.
5361  echo '#line 5361 "configure"' > conftest.$ac_ext
5362  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363  (eval $ac_compile) 2>&5
5364  ac_status=$?
5365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366  (exit $ac_status); }; then
5367   if test "$lt_cv_prog_gnu_ld" = yes; then
5368    case `/usr/bin/file conftest.$ac_objext` in
5369    *32-bit*)
5370      LD="${LD-ld} -melf32bsmip"
5371      ;;
5372    *N32*)
5373      LD="${LD-ld} -melf32bmipn32"
5374      ;;
5375    *64-bit*)
5376      LD="${LD-ld} -melf64bmip"
5377      ;;
5378    esac
5379   else
5380    case `/usr/bin/file conftest.$ac_objext` in
5381    *32-bit*)
5382      LD="${LD-ld} -32"
5383      ;;
5384    *N32*)
5385      LD="${LD-ld} -n32"
5386      ;;
5387    *64-bit*)
5388      LD="${LD-ld} -64"
5389      ;;
5390    esac
5391   fi
5392  fi
5393  rm -rf conftest*
5394  ;;
5395
5396x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5397  # Find out which ABI we are using.
5398  echo 'int i;' > conftest.$ac_ext
5399  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400  (eval $ac_compile) 2>&5
5401  ac_status=$?
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); }; then
5404    case `/usr/bin/file conftest.o` in
5405    *32-bit*)
5406      case $host in
5407        x86_64-*linux*)
5408          LD="${LD-ld} -m elf_i386"
5409          ;;
5410        ppc64-*linux*|powerpc64-*linux*)
5411          LD="${LD-ld} -m elf32ppclinux"
5412          ;;
5413        s390x-*linux*)
5414          LD="${LD-ld} -m elf_s390"
5415          ;;
5416        sparc64-*linux*)
5417          LD="${LD-ld} -m elf32_sparc"
5418          ;;
5419      esac
5420      ;;
5421    *64-bit*)
5422      case $host in
5423        x86_64-*linux*)
5424          LD="${LD-ld} -m elf_x86_64"
5425          ;;
5426        ppc*-*linux*|powerpc*-*linux*)
5427          LD="${LD-ld} -m elf64ppc"
5428          ;;
5429        s390*-*linux*)
5430          LD="${LD-ld} -m elf64_s390"
5431          ;;
5432        sparc*-*linux*)
5433          LD="${LD-ld} -m elf64_sparc"
5434          ;;
5435      esac
5436      ;;
5437    esac
5438  fi
5439  rm -rf conftest*
5440  ;;
5441
5442*-*-sco3.2v5*)
5443  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5444  SAVE_CFLAGS="$CFLAGS"
5445  CFLAGS="$CFLAGS -belf"
5446  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5447echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5448if test "${lt_cv_cc_needs_belf+set}" = set; then
5449  echo $ECHO_N "(cached) $ECHO_C" >&6
5450else
5451  ac_ext=c
5452ac_cpp='$CPP $CPPFLAGS'
5453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455ac_compiler_gnu=$ac_cv_c_compiler_gnu
5456
5457     cat >conftest.$ac_ext <<_ACEOF
5458/* confdefs.h.  */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h.  */
5463
5464int
5465main ()
5466{
5467
5468  ;
5469  return 0;
5470}
5471_ACEOF
5472rm -f conftest.$ac_objext conftest$ac_exeext
5473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5474  (eval $ac_link) 2>conftest.er1
5475  ac_status=$?
5476  grep -v '^ *+' conftest.er1 >conftest.err
5477  rm -f conftest.er1
5478  cat conftest.err >&5
5479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480  (exit $ac_status); } &&
5481         { ac_try='test -z "$ac_c_werror_flag"
5482                         || test ! -s conftest.err'
5483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484  (eval $ac_try) 2>&5
5485  ac_status=$?
5486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487  (exit $ac_status); }; } &&
5488         { ac_try='test -s conftest$ac_exeext'
5489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490  (eval $ac_try) 2>&5
5491  ac_status=$?
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); }; }; then
5494  lt_cv_cc_needs_belf=yes
5495else
5496  echo "$as_me: failed program was:" >&5
5497sed 's/^/| /' conftest.$ac_ext >&5
5498
5499lt_cv_cc_needs_belf=no
5500fi
5501rm -f conftest.err conftest.$ac_objext \
5502      conftest$ac_exeext conftest.$ac_ext
5503     ac_ext=c
5504ac_cpp='$CPP $CPPFLAGS'
5505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508
5509fi
5510echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5511echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5512  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5513    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5514    CFLAGS="$SAVE_CFLAGS"
5515  fi
5516  ;;
5517sparc*-*solaris*)
5518  # Find out which ABI we are using.
5519  echo 'int i;' > conftest.$ac_ext
5520  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5521  (eval $ac_compile) 2>&5
5522  ac_status=$?
5523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524  (exit $ac_status); }; then
5525    case `/usr/bin/file conftest.o` in
5526    *64-bit*)
5527      case $lt_cv_prog_gnu_ld in
5528      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5529      *)    LD="${LD-ld} -64" ;;
5530      esac
5531      ;;
5532    esac
5533  fi
5534  rm -rf conftest*
5535  ;;
5536
5537
5538esac
5539
5540need_locks="$enable_libtool_lock"
5541
5542
5543ac_ext=c
5544ac_cpp='$CPP $CPPFLAGS'
5545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5549echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5550# On Suns, sometimes $CPP names a directory.
5551if test -n "$CPP" && test -d "$CPP"; then
5552  CPP=
5553fi
5554if test -z "$CPP"; then
5555  if test "${ac_cv_prog_CPP+set}" = set; then
5556  echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558      # Double quotes because CPP needs to be expanded
5559    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5560    do
5561      ac_preproc_ok=false
5562for ac_c_preproc_warn_flag in '' yes
5563do
5564  # Use a header file that comes with gcc, so configuring glibc
5565  # with a fresh cross-compiler works.
5566  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5567  # <limits.h> exists even on freestanding compilers.
5568  # On the NeXT, cc -E runs the code through the compiler's parser,
5569  # not just through cpp. "Syntax error" is here to catch this case.
5570  cat >conftest.$ac_ext <<_ACEOF
5571/* confdefs.h.  */
5572_ACEOF
5573cat confdefs.h >>conftest.$ac_ext
5574cat >>conftest.$ac_ext <<_ACEOF
5575/* end confdefs.h.  */
5576#ifdef __STDC__
5577# include <limits.h>
5578#else
5579# include <assert.h>
5580#endif
5581                     Syntax error
5582_ACEOF
5583if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5584  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5585  ac_status=$?
5586  grep -v '^ *+' conftest.er1 >conftest.err
5587  rm -f conftest.er1
5588  cat conftest.err >&5
5589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590  (exit $ac_status); } >/dev/null; then
5591  if test -s conftest.err; then
5592    ac_cpp_err=$ac_c_preproc_warn_flag
5593    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5594  else
5595    ac_cpp_err=
5596  fi
5597else
5598  ac_cpp_err=yes
5599fi
5600if test -z "$ac_cpp_err"; then
5601  :
5602else
5603  echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606  # Broken: fails on valid input.
5607continue
5608fi
5609rm -f conftest.err conftest.$ac_ext
5610
5611  # OK, works on sane cases.  Now check whether non-existent headers
5612  # can be detected and how.
5613  cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h.  */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h.  */
5619#include <ac_nonexistent.h>
5620_ACEOF
5621if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5622  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5623  ac_status=$?
5624  grep -v '^ *+' conftest.er1 >conftest.err
5625  rm -f conftest.er1
5626  cat conftest.err >&5
5627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628  (exit $ac_status); } >/dev/null; then
5629  if test -s conftest.err; then
5630    ac_cpp_err=$ac_c_preproc_warn_flag
5631    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5632  else
5633    ac_cpp_err=
5634  fi
5635else
5636  ac_cpp_err=yes
5637fi
5638if test -z "$ac_cpp_err"; then
5639  # Broken: success on invalid input.
5640continue
5641else
5642  echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
5644
5645  # Passes both tests.
5646ac_preproc_ok=:
5647break
5648fi
5649rm -f conftest.err conftest.$ac_ext
5650
5651done
5652# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5653rm -f conftest.err conftest.$ac_ext
5654if $ac_preproc_ok; then
5655  break
5656fi
5657
5658    done
5659    ac_cv_prog_CPP=$CPP
5660
5661fi
5662  CPP=$ac_cv_prog_CPP
5663else
5664  ac_cv_prog_CPP=$CPP
5665fi
5666echo "$as_me:$LINENO: result: $CPP" >&5
5667echo "${ECHO_T}$CPP" >&6
5668ac_preproc_ok=false
5669for ac_c_preproc_warn_flag in '' yes
5670do
5671  # Use a header file that comes with gcc, so configuring glibc
5672  # with a fresh cross-compiler works.
5673  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5674  # <limits.h> exists even on freestanding compilers.
5675  # On the NeXT, cc -E runs the code through the compiler's parser,
5676  # not just through cpp. "Syntax error" is here to catch this case.
5677  cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h.  */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h.  */
5683#ifdef __STDC__
5684# include <limits.h>
5685#else
5686# include <assert.h>
5687#endif
5688                     Syntax error
5689_ACEOF
5690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5691  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5692  ac_status=$?
5693  grep -v '^ *+' conftest.er1 >conftest.err
5694  rm -f conftest.er1
5695  cat conftest.err >&5
5696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697  (exit $ac_status); } >/dev/null; then
5698  if test -s conftest.err; then
5699    ac_cpp_err=$ac_c_preproc_warn_flag
5700    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5701  else
5702    ac_cpp_err=
5703  fi
5704else
5705  ac_cpp_err=yes
5706fi
5707if test -z "$ac_cpp_err"; then
5708  :
5709else
5710  echo "$as_me: failed program was:" >&5
5711sed 's/^/| /' conftest.$ac_ext >&5
5712
5713  # Broken: fails on valid input.
5714continue
5715fi
5716rm -f conftest.err conftest.$ac_ext
5717
5718  # OK, works on sane cases.  Now check whether non-existent headers
5719  # can be detected and how.
5720  cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h.  */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h.  */
5726#include <ac_nonexistent.h>
5727_ACEOF
5728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5729  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5730  ac_status=$?
5731  grep -v '^ *+' conftest.er1 >conftest.err
5732  rm -f conftest.er1
5733  cat conftest.err >&5
5734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735  (exit $ac_status); } >/dev/null; then
5736  if test -s conftest.err; then
5737    ac_cpp_err=$ac_c_preproc_warn_flag
5738    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5739  else
5740    ac_cpp_err=
5741  fi
5742else
5743  ac_cpp_err=yes
5744fi
5745if test -z "$ac_cpp_err"; then
5746  # Broken: success on invalid input.
5747continue
5748else
5749  echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752  # Passes both tests.
5753ac_preproc_ok=:
5754break
5755fi
5756rm -f conftest.err conftest.$ac_ext
5757
5758done
5759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5760rm -f conftest.err conftest.$ac_ext
5761if $ac_preproc_ok; then
5762  :
5763else
5764  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5765See \`config.log' for more details." >&5
5766echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5767See \`config.log' for more details." >&2;}
5768   { (exit 1); exit 1; }; }
5769fi
5770
5771ac_ext=c
5772ac_cpp='$CPP $CPPFLAGS'
5773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776
5777
5778echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5779echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5780if test "${ac_cv_header_stdc+set}" = set; then
5781  echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
5783  cat >conftest.$ac_ext <<_ACEOF
5784/* confdefs.h.  */
5785_ACEOF
5786cat confdefs.h >>conftest.$ac_ext
5787cat >>conftest.$ac_ext <<_ACEOF
5788/* end confdefs.h.  */
5789#include <stdlib.h>
5790#include <stdarg.h>
5791#include <string.h>
5792#include <float.h>
5793
5794int
5795main ()
5796{
5797
5798  ;
5799  return 0;
5800}
5801_ACEOF
5802rm -f conftest.$ac_objext
5803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804  (eval $ac_compile) 2>conftest.er1
5805  ac_status=$?
5806  grep -v '^ *+' conftest.er1 >conftest.err
5807  rm -f conftest.er1
5808  cat conftest.err >&5
5809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810  (exit $ac_status); } &&
5811         { ac_try='test -z "$ac_c_werror_flag"
5812                         || test ! -s conftest.err'
5813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5814  (eval $ac_try) 2>&5
5815  ac_status=$?
5816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817  (exit $ac_status); }; } &&
5818         { ac_try='test -s conftest.$ac_objext'
5819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820  (eval $ac_try) 2>&5
5821  ac_status=$?
5822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823  (exit $ac_status); }; }; then
5824  ac_cv_header_stdc=yes
5825else
5826  echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
5829ac_cv_header_stdc=no
5830fi
5831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5832
5833if test $ac_cv_header_stdc = yes; then
5834  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5835  cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h.  */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h.  */
5841#include <string.h>
5842
5843_ACEOF
5844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5845  $EGREP "memchr" >/dev/null 2>&1; then
5846  :
5847else
5848  ac_cv_header_stdc=no
5849fi
5850rm -f conftest*
5851
5852fi
5853
5854if test $ac_cv_header_stdc = yes; then
5855  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5856  cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h.  */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h.  */
5862#include <stdlib.h>
5863
5864_ACEOF
5865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866  $EGREP "free" >/dev/null 2>&1; then
5867  :
5868else
5869  ac_cv_header_stdc=no
5870fi
5871rm -f conftest*
5872
5873fi
5874
5875if test $ac_cv_header_stdc = yes; then
5876  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5877  if test "$cross_compiling" = yes; then
5878  :
5879else
5880  cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h.  */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h.  */
5886#include <ctype.h>
5887#if ((' ' & 0x0FF) == 0x020)
5888# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5889# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5890#else
5891# define ISLOWER(c) \
5892                   (('a' <= (c) && (c) <= 'i') \
5893                     || ('j' <= (c) && (c) <= 'r') \
5894                     || ('s' <= (c) && (c) <= 'z'))
5895# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5896#endif
5897
5898#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5899int
5900main ()
5901{
5902  int i;
5903  for (i = 0; i < 256; i++)
5904    if (XOR (islower (i), ISLOWER (i))
5905        || toupper (i) != TOUPPER (i))
5906      exit(2);
5907  exit (0);
5908}
5909_ACEOF
5910rm -f conftest$ac_exeext
5911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5912  (eval $ac_link) 2>&5
5913  ac_status=$?
5914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917  (eval $ac_try) 2>&5
5918  ac_status=$?
5919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); }; }; then
5921  :
5922else
5923  echo "$as_me: program exited with status $ac_status" >&5
5924echo "$as_me: failed program was:" >&5
5925sed 's/^/| /' conftest.$ac_ext >&5
5926
5927( exit $ac_status )
5928ac_cv_header_stdc=no
5929fi
5930rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5931fi
5932fi
5933fi
5934echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5935echo "${ECHO_T}$ac_cv_header_stdc" >&6
5936if test $ac_cv_header_stdc = yes; then
5937
5938cat >>confdefs.h <<\_ACEOF
5939#define STDC_HEADERS 1
5940_ACEOF
5941
5942fi
5943
5944# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5955                  inttypes.h stdint.h unistd.h
5956do
5957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5958echo "$as_me:$LINENO: checking for $ac_header" >&5
5959echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5960if eval "test \"\${$as_ac_Header+set}\" = set"; then
5961  echo $ECHO_N "(cached) $ECHO_C" >&6
5962else
5963  cat >conftest.$ac_ext <<_ACEOF
5964/* confdefs.h.  */
5965_ACEOF
5966cat confdefs.h >>conftest.$ac_ext
5967cat >>conftest.$ac_ext <<_ACEOF
5968/* end confdefs.h.  */
5969$ac_includes_default
5970
5971#include <$ac_header>
5972_ACEOF
5973rm -f conftest.$ac_objext
5974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975  (eval $ac_compile) 2>conftest.er1
5976  ac_status=$?
5977  grep -v '^ *+' conftest.er1 >conftest.err
5978  rm -f conftest.er1
5979  cat conftest.err >&5
5980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981  (exit $ac_status); } &&
5982         { ac_try='test -z "$ac_c_werror_flag"
5983                         || test ! -s conftest.err'
5984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985  (eval $ac_try) 2>&5
5986  ac_status=$?
5987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988  (exit $ac_status); }; } &&
5989         { ac_try='test -s conftest.$ac_objext'
5990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991  (eval $ac_try) 2>&5
5992  ac_status=$?
5993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994  (exit $ac_status); }; }; then
5995  eval "$as_ac_Header=yes"
5996else
5997  echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000eval "$as_ac_Header=no"
6001fi
6002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6003fi
6004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6006if test `eval echo '${'$as_ac_Header'}'` = yes; then
6007  cat >>confdefs.h <<_ACEOF
6008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6009_ACEOF
6010
6011fi
6012
6013done
6014
6015
6016
6017for ac_header in dlfcn.h
6018do
6019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6020if eval "test \"\${$as_ac_Header+set}\" = set"; then
6021  echo "$as_me:$LINENO: checking for $ac_header" >&5
6022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6023if eval "test \"\${$as_ac_Header+set}\" = set"; then
6024  echo $ECHO_N "(cached) $ECHO_C" >&6
6025fi
6026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6028else
6029  # Is the header compilable?
6030echo "$as_me:$LINENO: checking $ac_header usability" >&5
6031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6032cat >conftest.$ac_ext <<_ACEOF
6033/* confdefs.h.  */
6034_ACEOF
6035cat confdefs.h >>conftest.$ac_ext
6036cat >>conftest.$ac_ext <<_ACEOF
6037/* end confdefs.h.  */
6038$ac_includes_default
6039#include <$ac_header>
6040_ACEOF
6041rm -f conftest.$ac_objext
6042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6043  (eval $ac_compile) 2>conftest.er1
6044  ac_status=$?
6045  grep -v '^ *+' conftest.er1 >conftest.err
6046  rm -f conftest.er1
6047  cat conftest.err >&5
6048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049  (exit $ac_status); } &&
6050         { ac_try='test -z "$ac_c_werror_flag"
6051                         || test ! -s conftest.err'
6052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053  (eval $ac_try) 2>&5
6054  ac_status=$?
6055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056  (exit $ac_status); }; } &&
6057         { ac_try='test -s conftest.$ac_objext'
6058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059  (eval $ac_try) 2>&5
6060  ac_status=$?
6061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062  (exit $ac_status); }; }; then
6063  ac_header_compiler=yes
6064else
6065  echo "$as_me: failed program was:" >&5
6066sed 's/^/| /' conftest.$ac_ext >&5
6067
6068ac_header_compiler=no
6069fi
6070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6072echo "${ECHO_T}$ac_header_compiler" >&6
6073
6074# Is the header present?
6075echo "$as_me:$LINENO: checking $ac_header presence" >&5
6076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6077cat >conftest.$ac_ext <<_ACEOF
6078/* confdefs.h.  */
6079_ACEOF
6080cat confdefs.h >>conftest.$ac_ext
6081cat >>conftest.$ac_ext <<_ACEOF
6082/* end confdefs.h.  */
6083#include <$ac_header>
6084_ACEOF
6085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6087  ac_status=$?
6088  grep -v '^ *+' conftest.er1 >conftest.err
6089  rm -f conftest.er1
6090  cat conftest.err >&5
6091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092  (exit $ac_status); } >/dev/null; then
6093  if test -s conftest.err; then
6094    ac_cpp_err=$ac_c_preproc_warn_flag
6095    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6096  else
6097    ac_cpp_err=
6098  fi
6099else
6100  ac_cpp_err=yes
6101fi
6102if test -z "$ac_cpp_err"; then
6103  ac_header_preproc=yes
6104else
6105  echo "$as_me: failed program was:" >&5
6106sed 's/^/| /' conftest.$ac_ext >&5
6107
6108  ac_header_preproc=no
6109fi
6110rm -f conftest.err conftest.$ac_ext
6111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6112echo "${ECHO_T}$ac_header_preproc" >&6
6113
6114# So?  What about this header?
6115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6116  yes:no: )
6117    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6119    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6121    ac_header_preproc=yes
6122    ;;
6123  no:yes:* )
6124    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6126    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6127echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6128    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6130    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6131echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6132    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6134    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6136    (
6137      cat <<\_ASBOX
6138## --------------------------------------------------------------- ##
6139## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6140## --------------------------------------------------------------- ##
6141_ASBOX
6142    ) |
6143      sed "s/^/$as_me: WARNING:     /" >&2
6144    ;;
6145esac
6146echo "$as_me:$LINENO: checking for $ac_header" >&5
6147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6148if eval "test \"\${$as_ac_Header+set}\" = set"; then
6149  echo $ECHO_N "(cached) $ECHO_C" >&6
6150else
6151  eval "$as_ac_Header=\$ac_header_preproc"
6152fi
6153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6155
6156fi
6157if test `eval echo '${'$as_ac_Header'}'` = yes; then
6158  cat >>confdefs.h <<_ACEOF
6159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6160_ACEOF
6161
6162fi
6163
6164done
6165
6166ac_ext=cc
6167ac_cpp='$CXXCPP $CPPFLAGS'
6168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6171if test -n "$ac_tool_prefix"; then
6172  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6173  do
6174    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6176echo "$as_me:$LINENO: checking for $ac_word" >&5
6177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6178if test "${ac_cv_prog_CXX+set}" = set; then
6179  echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181  if test -n "$CXX"; then
6182  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187  IFS=$as_save_IFS
6188  test -z "$as_dir" && as_dir=.
6189  for ac_exec_ext in '' $ac_executable_extensions; do
6190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193    break 2
6194  fi
6195done
6196done
6197
6198fi
6199fi
6200CXX=$ac_cv_prog_CXX
6201if test -n "$CXX"; then
6202  echo "$as_me:$LINENO: result: $CXX" >&5
6203echo "${ECHO_T}$CXX" >&6
6204else
6205  echo "$as_me:$LINENO: result: no" >&5
6206echo "${ECHO_T}no" >&6
6207fi
6208
6209    test -n "$CXX" && break
6210  done
6211fi
6212if test -z "$CXX"; then
6213  ac_ct_CXX=$CXX
6214  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6215do
6216  # Extract the first word of "$ac_prog", so it can be a program name with args.
6217set dummy $ac_prog; ac_word=$2
6218echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  if test -n "$ac_ct_CXX"; then
6224  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231  for ac_exec_ext in '' $ac_executable_extensions; do
6232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233    ac_cv_prog_ac_ct_CXX="$ac_prog"
6234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238done
6239
6240fi
6241fi
6242ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6243if test -n "$ac_ct_CXX"; then
6244  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6245echo "${ECHO_T}$ac_ct_CXX" >&6
6246else
6247  echo "$as_me:$LINENO: result: no" >&5
6248echo "${ECHO_T}no" >&6
6249fi
6250
6251  test -n "$ac_ct_CXX" && break
6252done
6253test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6254
6255  CXX=$ac_ct_CXX
6256fi
6257
6258
6259# Provide some information about the compiler.
6260echo "$as_me:$LINENO:" \
6261     "checking for C++ compiler version" >&5
6262ac_compiler=`set X $ac_compile; echo $2`
6263{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6264  (eval $ac_compiler --version </dev/null >&5) 2>&5
6265  ac_status=$?
6266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267  (exit $ac_status); }
6268{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6269  (eval $ac_compiler -v </dev/null >&5) 2>&5
6270  ac_status=$?
6271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272  (exit $ac_status); }
6273{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6274  (eval $ac_compiler -V </dev/null >&5) 2>&5
6275  ac_status=$?
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); }
6278
6279echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6280echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6281if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6282  echo $ECHO_N "(cached) $ECHO_C" >&6
6283else
6284  cat >conftest.$ac_ext <<_ACEOF
6285/* confdefs.h.  */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h.  */
6290
6291int
6292main ()
6293{
6294#ifndef __GNUC__
6295       choke me
6296#endif
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302rm -f conftest.$ac_objext
6303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304  (eval $ac_compile) 2>conftest.er1
6305  ac_status=$?
6306  grep -v '^ *+' conftest.er1 >conftest.err
6307  rm -f conftest.er1
6308  cat conftest.err >&5
6309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); } &&
6311         { ac_try='test -z "$ac_cxx_werror_flag"
6312                         || test ! -s conftest.err'
6313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314  (eval $ac_try) 2>&5
6315  ac_status=$?
6316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317  (exit $ac_status); }; } &&
6318         { ac_try='test -s conftest.$ac_objext'
6319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320  (eval $ac_try) 2>&5
6321  ac_status=$?
6322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323  (exit $ac_status); }; }; then
6324  ac_compiler_gnu=yes
6325else
6326  echo "$as_me: failed program was:" >&5
6327sed 's/^/| /' conftest.$ac_ext >&5
6328
6329ac_compiler_gnu=no
6330fi
6331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6332ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6333
6334fi
6335echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6336echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6337GXX=`test $ac_compiler_gnu = yes && echo yes`
6338ac_test_CXXFLAGS=${CXXFLAGS+set}
6339ac_save_CXXFLAGS=$CXXFLAGS
6340CXXFLAGS="-g"
6341echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6342echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6343if test "${ac_cv_prog_cxx_g+set}" = set; then
6344  echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346  cat >conftest.$ac_ext <<_ACEOF
6347/* confdefs.h.  */
6348_ACEOF
6349cat confdefs.h >>conftest.$ac_ext
6350cat >>conftest.$ac_ext <<_ACEOF
6351/* end confdefs.h.  */
6352
6353int
6354main ()
6355{
6356
6357  ;
6358  return 0;
6359}
6360_ACEOF
6361rm -f conftest.$ac_objext
6362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6363  (eval $ac_compile) 2>conftest.er1
6364  ac_status=$?
6365  grep -v '^ *+' conftest.er1 >conftest.err
6366  rm -f conftest.er1
6367  cat conftest.err >&5
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); } &&
6370         { ac_try='test -z "$ac_cxx_werror_flag"
6371                         || test ! -s conftest.err'
6372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373  (eval $ac_try) 2>&5
6374  ac_status=$?
6375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376  (exit $ac_status); }; } &&
6377         { ac_try='test -s conftest.$ac_objext'
6378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379  (eval $ac_try) 2>&5
6380  ac_status=$?
6381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382  (exit $ac_status); }; }; then
6383  ac_cv_prog_cxx_g=yes
6384else
6385  echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388ac_cv_prog_cxx_g=no
6389fi
6390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6391fi
6392echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6393echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6394if test "$ac_test_CXXFLAGS" = set; then
6395  CXXFLAGS=$ac_save_CXXFLAGS
6396elif test $ac_cv_prog_cxx_g = yes; then
6397  if test "$GXX" = yes; then
6398    CXXFLAGS="-g -O2"
6399  else
6400    CXXFLAGS="-g"
6401  fi
6402else
6403  if test "$GXX" = yes; then
6404    CXXFLAGS="-O2"
6405  else
6406    CXXFLAGS=
6407  fi
6408fi
6409for ac_declaration in \
6410   '' \
6411   'extern "C" void std::exit (int) throw (); using std::exit;' \
6412   'extern "C" void std::exit (int); using std::exit;' \
6413   'extern "C" void exit (int) throw ();' \
6414   'extern "C" void exit (int);' \
6415   'void exit (int);'
6416do
6417  cat >conftest.$ac_ext <<_ACEOF
6418/* confdefs.h.  */
6419_ACEOF
6420cat confdefs.h >>conftest.$ac_ext
6421cat >>conftest.$ac_ext <<_ACEOF
6422/* end confdefs.h.  */
6423$ac_declaration
6424#include <stdlib.h>
6425int
6426main ()
6427{
6428exit (42);
6429  ;
6430  return 0;
6431}
6432_ACEOF
6433rm -f conftest.$ac_objext
6434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435  (eval $ac_compile) 2>conftest.er1
6436  ac_status=$?
6437  grep -v '^ *+' conftest.er1 >conftest.err
6438  rm -f conftest.er1
6439  cat conftest.err >&5
6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441  (exit $ac_status); } &&
6442         { ac_try='test -z "$ac_cxx_werror_flag"
6443                         || test ! -s conftest.err'
6444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445  (eval $ac_try) 2>&5
6446  ac_status=$?
6447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448  (exit $ac_status); }; } &&
6449         { ac_try='test -s conftest.$ac_objext'
6450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451  (eval $ac_try) 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); }; }; then
6455  :
6456else
6457  echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
6459
6460continue
6461fi
6462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6463  cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h.  */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h.  */
6469$ac_declaration
6470int
6471main ()
6472{
6473exit (42);
6474  ;
6475  return 0;
6476}
6477_ACEOF
6478rm -f conftest.$ac_objext
6479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6480  (eval $ac_compile) 2>conftest.er1
6481  ac_status=$?
6482  grep -v '^ *+' conftest.er1 >conftest.err
6483  rm -f conftest.er1
6484  cat conftest.err >&5
6485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486  (exit $ac_status); } &&
6487         { ac_try='test -z "$ac_cxx_werror_flag"
6488                         || test ! -s conftest.err'
6489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490  (eval $ac_try) 2>&5
6491  ac_status=$?
6492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493  (exit $ac_status); }; } &&
6494         { ac_try='test -s conftest.$ac_objext'
6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496  (eval $ac_try) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; }; then
6500  break
6501else
6502  echo "$as_me: failed program was:" >&5
6503sed 's/^/| /' conftest.$ac_ext >&5
6504
6505fi
6506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6507done
6508rm -f conftest*
6509if test -n "$ac_declaration"; then
6510  echo '#ifdef __cplusplus' >>confdefs.h
6511  echo $ac_declaration      >>confdefs.h
6512  echo '#endif'             >>confdefs.h
6513fi
6514
6515ac_ext=cc
6516ac_cpp='$CXXCPP $CPPFLAGS'
6517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6520
6521depcc="$CXX"  am_compiler_list=
6522
6523echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6524echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6525if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6526  echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6529  # We make a subdir and do the tests there.  Otherwise we can end up
6530  # making bogus files that we don't know about and never remove.  For
6531  # instance it was reported that on HP-UX the gcc test will end up
6532  # making a dummy file named `D' -- because `-MD' means `put the output
6533  # in D'.
6534  mkdir conftest.dir
6535  # Copy depcomp to subdir because otherwise we won't find it if we're
6536  # using a relative directory.
6537  cp "$am_depcomp" conftest.dir
6538  cd conftest.dir
6539  # We will build objects and dependencies in a subdirectory because
6540  # it helps to detect inapplicable dependency modes.  For instance
6541  # both Tru64's cc and ICC support -MD to output dependencies as a
6542  # side effect of compilation, but ICC will put the dependencies in
6543  # the current directory while Tru64 will put them in the object
6544  # directory.
6545  mkdir sub
6546
6547  am_cv_CXX_dependencies_compiler_type=none
6548  if test "$am_compiler_list" = ""; then
6549     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6550  fi
6551  for depmode in $am_compiler_list; do
6552    # Setup a source with many dependencies, because some compilers
6553    # like to wrap large dependency lists on column 80 (with \), and
6554    # we should not choose a depcomp mode which is confused by this.
6555    #
6556    # We need to recreate these files for each test, as the compiler may
6557    # overwrite some of them when testing with obscure command lines.
6558    # This happens at least with the AIX C compiler.
6559    : > sub/conftest.c
6560    for i in 1 2 3 4 5 6; do
6561      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6562      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6563      # Solaris 8's {/usr,}/bin/sh.
6564      touch sub/conftst$i.h
6565    done
6566    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6567
6568    case $depmode in
6569    nosideeffect)
6570      # after this tag, mechanisms are not by side-effect, so they'll
6571      # only be used when explicitly requested
6572      if test "x$enable_dependency_tracking" = xyes; then
6573        continue
6574      else
6575        break
6576      fi
6577      ;;
6578    none) break ;;
6579    esac
6580    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6581    # mode.  It turns out that the SunPro C++ compiler does not properly
6582    # handle `-M -o', and we need to detect this.
6583    if depmode=$depmode \
6584       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6585       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6586       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6587         >/dev/null 2>conftest.err &&
6588       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6589       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6590       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6591      # icc doesn't choke on unknown options, it will just issue warnings
6592      # or remarks (even with -Werror).  So we grep stderr for any message
6593      # that says an option was ignored or not supported.
6594      # When given -MP, icc 7.0 and 7.1 complain thusly:
6595      #   icc: Command line warning: ignoring option '-M'; no argument required
6596      # The diagnosis changed in icc 8.0:
6597      #   icc: Command line remark: option '-MP' not supported
6598      if (grep 'ignoring option' conftest.err ||
6599          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6600        am_cv_CXX_dependencies_compiler_type=$depmode
6601        break
6602      fi
6603    fi
6604  done
6605
6606  cd ..
6607  rm -rf conftest.dir
6608else
6609  am_cv_CXX_dependencies_compiler_type=none
6610fi
6611
6612fi
6613echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6614echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6615CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6616
6617
6618
6619if
6620  test "x$enable_dependency_tracking" != xno \
6621  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6622  am__fastdepCXX_TRUE=
6623  am__fastdepCXX_FALSE='#'
6624else
6625  am__fastdepCXX_TRUE='#'
6626  am__fastdepCXX_FALSE=
6627fi
6628
6629
6630
6631
6632if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6633    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6634    (test "X$CXX" != "Xg++"))) ; then
6635  ac_ext=cc
6636ac_cpp='$CXXCPP $CPPFLAGS'
6637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6640echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6641echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6642if test -z "$CXXCPP"; then
6643  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6644  echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646      # Double quotes because CXXCPP needs to be expanded
6647    for CXXCPP in "$CXX -E" "/lib/cpp"
6648    do
6649      ac_preproc_ok=false
6650for ac_cxx_preproc_warn_flag in '' yes
6651do
6652  # Use a header file that comes with gcc, so configuring glibc
6653  # with a fresh cross-compiler works.
6654  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6655  # <limits.h> exists even on freestanding compilers.
6656  # On the NeXT, cc -E runs the code through the compiler's parser,
6657  # not just through cpp. "Syntax error" is here to catch this case.
6658  cat >conftest.$ac_ext <<_ACEOF
6659/* confdefs.h.  */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
6663/* end confdefs.h.  */
6664#ifdef __STDC__
6665# include <limits.h>
6666#else
6667# include <assert.h>
6668#endif
6669                     Syntax error
6670_ACEOF
6671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6672  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6673  ac_status=$?
6674  grep -v '^ *+' conftest.er1 >conftest.err
6675  rm -f conftest.er1
6676  cat conftest.err >&5
6677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678  (exit $ac_status); } >/dev/null; then
6679  if test -s conftest.err; then
6680    ac_cpp_err=$ac_cxx_preproc_warn_flag
6681    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6682  else
6683    ac_cpp_err=
6684  fi
6685else
6686  ac_cpp_err=yes
6687fi
6688if test -z "$ac_cpp_err"; then
6689  :
6690else
6691  echo "$as_me: failed program was:" >&5
6692sed 's/^/| /' conftest.$ac_ext >&5
6693
6694  # Broken: fails on valid input.
6695continue
6696fi
6697rm -f conftest.err conftest.$ac_ext
6698
6699  # OK, works on sane cases.  Now check whether non-existent headers
6700  # can be detected and how.
6701  cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h.  */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h.  */
6707#include <ac_nonexistent.h>
6708_ACEOF
6709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6710  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6711  ac_status=$?
6712  grep -v '^ *+' conftest.er1 >conftest.err
6713  rm -f conftest.er1
6714  cat conftest.err >&5
6715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716  (exit $ac_status); } >/dev/null; then
6717  if test -s conftest.err; then
6718    ac_cpp_err=$ac_cxx_preproc_warn_flag
6719    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6720  else
6721    ac_cpp_err=
6722  fi
6723else
6724  ac_cpp_err=yes
6725fi
6726if test -z "$ac_cpp_err"; then
6727  # Broken: success on invalid input.
6728continue
6729else
6730  echo "$as_me: failed program was:" >&5
6731sed 's/^/| /' conftest.$ac_ext >&5
6732
6733  # Passes both tests.
6734ac_preproc_ok=:
6735break
6736fi
6737rm -f conftest.err conftest.$ac_ext
6738
6739done
6740# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6741rm -f conftest.err conftest.$ac_ext
6742if $ac_preproc_ok; then
6743  break
6744fi
6745
6746    done
6747    ac_cv_prog_CXXCPP=$CXXCPP
6748
6749fi
6750  CXXCPP=$ac_cv_prog_CXXCPP
6751else
6752  ac_cv_prog_CXXCPP=$CXXCPP
6753fi
6754echo "$as_me:$LINENO: result: $CXXCPP" >&5
6755echo "${ECHO_T}$CXXCPP" >&6
6756ac_preproc_ok=false
6757for ac_cxx_preproc_warn_flag in '' yes
6758do
6759  # Use a header file that comes with gcc, so configuring glibc
6760  # with a fresh cross-compiler works.
6761  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762  # <limits.h> exists even on freestanding compilers.
6763  # On the NeXT, cc -E runs the code through the compiler's parser,
6764  # not just through cpp. "Syntax error" is here to catch this case.
6765  cat >conftest.$ac_ext <<_ACEOF
6766/* confdefs.h.  */
6767_ACEOF
6768cat confdefs.h >>conftest.$ac_ext
6769cat >>conftest.$ac_ext <<_ACEOF
6770/* end confdefs.h.  */
6771#ifdef __STDC__
6772# include <limits.h>
6773#else
6774# include <assert.h>
6775#endif
6776                     Syntax error
6777_ACEOF
6778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6779  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6780  ac_status=$?
6781  grep -v '^ *+' conftest.er1 >conftest.err
6782  rm -f conftest.er1
6783  cat conftest.err >&5
6784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785  (exit $ac_status); } >/dev/null; then
6786  if test -s conftest.err; then
6787    ac_cpp_err=$ac_cxx_preproc_warn_flag
6788    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6789  else
6790    ac_cpp_err=
6791  fi
6792else
6793  ac_cpp_err=yes
6794fi
6795if test -z "$ac_cpp_err"; then
6796  :
6797else
6798  echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801  # Broken: fails on valid input.
6802continue
6803fi
6804rm -f conftest.err conftest.$ac_ext
6805
6806  # OK, works on sane cases.  Now check whether non-existent headers
6807  # can be detected and how.
6808  cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h.  */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h.  */
6814#include <ac_nonexistent.h>
6815_ACEOF
6816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6817  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6818  ac_status=$?
6819  grep -v '^ *+' conftest.er1 >conftest.err
6820  rm -f conftest.er1
6821  cat conftest.err >&5
6822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823  (exit $ac_status); } >/dev/null; then
6824  if test -s conftest.err; then
6825    ac_cpp_err=$ac_cxx_preproc_warn_flag
6826    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6827  else
6828    ac_cpp_err=
6829  fi
6830else
6831  ac_cpp_err=yes
6832fi
6833if test -z "$ac_cpp_err"; then
6834  # Broken: success on invalid input.
6835continue
6836else
6837  echo "$as_me: failed program was:" >&5
6838sed 's/^/| /' conftest.$ac_ext >&5
6839
6840  # Passes both tests.
6841ac_preproc_ok=:
6842break
6843fi
6844rm -f conftest.err conftest.$ac_ext
6845
6846done
6847# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6848rm -f conftest.err conftest.$ac_ext
6849if $ac_preproc_ok; then
6850  :
6851else
6852  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6853See \`config.log' for more details." >&5
6854echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6855See \`config.log' for more details." >&2;}
6856   { (exit 1); exit 1; }; }
6857fi
6858
6859ac_ext=cc
6860ac_cpp='$CXXCPP $CPPFLAGS'
6861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6864
6865fi
6866
6867
6868
6869# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6870
6871# find the maximum length of command line arguments
6872echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6873echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6874if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6875  echo $ECHO_N "(cached) $ECHO_C" >&6
6876else
6877    i=0
6878  teststring="ABCD"
6879
6880  case $build_os in
6881  msdosdjgpp*)
6882    # On DJGPP, this test can blow up pretty badly due to problems in libc
6883    # (any single argument exceeding 2000 bytes causes a buffer overrun
6884    # during glob expansion).  Even if it were fixed, the result of this
6885    # check would be larger than it should be.
6886    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6887    ;;
6888
6889  gnu*)
6890    # Under GNU Hurd, this test is not required because there is
6891    # no limit to the length of command line arguments.
6892    # Libtool will interpret -1 as no limit whatsoever
6893    lt_cv_sys_max_cmd_len=-1;
6894    ;;
6895
6896  cygwin* | mingw*)
6897    # On Win9x/ME, this test blows up -- it succeeds, but takes
6898    # about 5 minutes as the teststring grows exponentially.
6899    # Worse, since 9x/ME are not pre-emptively multitasking,
6900    # you end up with a "frozen" computer, even though with patience
6901    # the test eventually succeeds (with a max line length of 256k).
6902    # Instead, let's just punt: use the minimum linelength reported by
6903    # all of the supported platforms: 8192 (on NT/2K/XP).
6904    lt_cv_sys_max_cmd_len=8192;
6905    ;;
6906
6907  amigaos*)
6908    # On AmigaOS with pdksh, this test takes hours, literally.
6909    # So we just punt and use a minimum line length of 8192.
6910    lt_cv_sys_max_cmd_len=8192;
6911    ;;
6912
6913  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6914    # This has been around since 386BSD, at least.  Likely further.
6915    if test -x /sbin/sysctl; then
6916      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6917    elif test -x /usr/sbin/sysctl; then
6918      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6919    else
6920      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6921    fi
6922    # And add a safety zone
6923    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6924    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6925    ;;
6926
6927  interix*)
6928    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6929    lt_cv_sys_max_cmd_len=196608
6930    ;;
6931
6932  osf*)
6933    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6934    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6935    # nice to cause kernel panics so lets avoid the loop below.
6936    # First set a reasonable default.
6937    lt_cv_sys_max_cmd_len=16384
6938    #
6939    if test -x /sbin/sysconfig; then
6940      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6941        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6942      esac
6943    fi
6944    ;;
6945  sco3.2v5*)
6946    lt_cv_sys_max_cmd_len=102400
6947    ;;
6948  sysv5* | sco5v6* | sysv4.2uw2*)
6949    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6950    if test -n "$kargmax"; then
6951      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6952    else
6953      lt_cv_sys_max_cmd_len=32768
6954    fi
6955    ;;
6956  *)
6957    # If test is not a shell built-in, we'll probably end up computing a
6958    # maximum length that is only half of the actual maximum length, but
6959    # we can't tell.
6960    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6961    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6962               = "XX$teststring") >/dev/null 2>&1 &&
6963            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6964            lt_cv_sys_max_cmd_len=$new_result &&
6965            test $i != 17 # 1/2 MB should be enough
6966    do
6967      i=`expr $i + 1`
6968      teststring=$teststring$teststring
6969    done
6970    teststring=
6971    # Add a significant safety factor because C++ compilers can tack on massive
6972    # amounts of additional arguments before passing them to the linker.
6973    # It appears as though 1/2 is a usable value.
6974    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6975    ;;
6976  esac
6977
6978fi
6979
6980if test -n $lt_cv_sys_max_cmd_len ; then
6981  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6982echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6983else
6984  echo "$as_me:$LINENO: result: none" >&5
6985echo "${ECHO_T}none" >&6
6986fi
6987
6988
6989
6990
6991# Check for command to grab the raw symbol name followed by C symbol from nm.
6992echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6993echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6994if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6995  echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997
6998# These are sane defaults that work on at least a few old systems.
6999# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7000
7001# Character class describing NM global symbol codes.
7002symcode='[BCDEGRST]'
7003
7004# Regexp to match symbols that can be accessed directly from C.
7005sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7006
7007# Transform an extracted symbol line into a proper C declaration
7008lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7009
7010# Transform an extracted symbol line into symbol name and symbol address
7011lt_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'"
7012
7013# Define system-specific variables.
7014case $host_os in
7015aix*)
7016  symcode='[BCDT]'
7017  ;;
7018cygwin* | mingw* | pw32*)
7019  symcode='[ABCDGISTW]'
7020  ;;
7021hpux*) # Its linker distinguishes data from code symbols
7022  if test "$host_cpu" = ia64; then
7023    symcode='[ABCDEGRST]'
7024  fi
7025  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7026  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'"
7027  ;;
7028linux*)
7029  if test "$host_cpu" = ia64; then
7030    symcode='[ABCDGIRSTW]'
7031    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7032    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7033  fi
7034  ;;
7035irix* | nonstopux*)
7036  symcode='[BCDEGRST]'
7037  ;;
7038osf*)
7039  symcode='[BCDEGQRST]'
7040  ;;
7041solaris*)
7042  symcode='[BDRT]'
7043  ;;
7044sco3.2v5*)
7045  symcode='[DT]'
7046  ;;
7047sysv4.2uw2*)
7048  symcode='[DT]'
7049  ;;
7050sysv5* | sco5v6* | unixware* | OpenUNIX*)
7051  symcode='[ABDT]'
7052  ;;
7053sysv4)
7054  symcode='[DFNSTU]'
7055  ;;
7056esac
7057
7058# Handle CRLF in mingw tool chain
7059opt_cr=
7060case $build_os in
7061mingw*)
7062  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7063  ;;
7064esac
7065
7066# If we're using GNU nm, then use its standard symbol codes.
7067case `$NM -V 2>&1` in
7068*GNU* | *'with BFD'*)
7069  symcode='[ABCDGIRSTW]' ;;
7070esac
7071
7072# Try without a prefix undercore, then with it.
7073for ac_symprfx in "" "_"; do
7074
7075  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7076  symxfrm="\\1 $ac_symprfx\\2 \\2"
7077
7078  # Write the raw and C identifiers.
7079  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7080
7081  # Check to see that the pipe works correctly.
7082  pipe_works=no
7083
7084  rm -f conftest*
7085  cat > conftest.$ac_ext <<EOF
7086#ifdef __cplusplus
7087extern "C" {
7088#endif
7089char nm_test_var;
7090void nm_test_func(){}
7091#ifdef __cplusplus
7092}
7093#endif
7094int main(){nm_test_var='a';nm_test_func();return(0);}
7095EOF
7096
7097  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098  (eval $ac_compile) 2>&5
7099  ac_status=$?
7100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101  (exit $ac_status); }; then
7102    # Now try to grab the symbols.
7103    nlist=conftest.nm
7104    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7105  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7106  ac_status=$?
7107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108  (exit $ac_status); } && test -s "$nlist"; then
7109      # Try sorting and uniquifying the output.
7110      if sort "$nlist" | uniq > "$nlist"T; then
7111        mv -f "$nlist"T "$nlist"
7112      else
7113        rm -f "$nlist"T
7114      fi
7115
7116      # Make sure that we snagged all the symbols we need.
7117      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7118        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7119          cat <<EOF > conftest.$ac_ext
7120#ifdef __cplusplus
7121extern "C" {
7122#endif
7123
7124EOF
7125          # Now generate the symbol file.
7126          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7127
7128          cat <<EOF >> conftest.$ac_ext
7129#if defined (__STDC__) && __STDC__
7130# define lt_ptr_t void *
7131#else
7132# define lt_ptr_t char *
7133# define const
7134#endif
7135
7136/* The mapping between symbol names and symbols. */
7137const struct {
7138  const char *name;
7139  lt_ptr_t address;
7140}
7141lt_preloaded_symbols[] =
7142{
7143EOF
7144          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7145          cat <<\EOF >> conftest.$ac_ext
7146  {0, (lt_ptr_t) 0}
7147};
7148
7149#ifdef __cplusplus
7150}
7151#endif
7152EOF
7153          # Now try linking the two files.
7154          mv conftest.$ac_objext conftstm.$ac_objext
7155          lt_save_LIBS="$LIBS"
7156          lt_save_CFLAGS="$CFLAGS"
7157          LIBS="conftstm.$ac_objext"
7158          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7159          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7160  (eval $ac_link) 2>&5
7161  ac_status=$?
7162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7164            pipe_works=yes
7165          fi
7166          LIBS="$lt_save_LIBS"
7167          CFLAGS="$lt_save_CFLAGS"
7168        else
7169          echo "cannot find nm_test_func in $nlist" >&5
7170        fi
7171      else
7172        echo "cannot find nm_test_var in $nlist" >&5
7173      fi
7174    else
7175      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7176    fi
7177  else
7178    echo "$progname: failed program was:" >&5
7179    cat conftest.$ac_ext >&5
7180  fi
7181  rm -f conftest* conftst*
7182
7183  # Do not use the global_symbol_pipe unless it works.
7184  if test "$pipe_works" = yes; then
7185    break
7186  else
7187    lt_cv_sys_global_symbol_pipe=
7188  fi
7189done
7190
7191fi
7192
7193if test -z "$lt_cv_sys_global_symbol_pipe"; then
7194  lt_cv_sys_global_symbol_to_cdecl=
7195fi
7196if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7197  echo "$as_me:$LINENO: result: failed" >&5
7198echo "${ECHO_T}failed" >&6
7199else
7200  echo "$as_me:$LINENO: result: ok" >&5
7201echo "${ECHO_T}ok" >&6
7202fi
7203
7204echo "$as_me:$LINENO: checking for objdir" >&5
7205echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7206if test "${lt_cv_objdir+set}" = set; then
7207  echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209  rm -f .libs 2>/dev/null
7210mkdir .libs 2>/dev/null
7211if test -d .libs; then
7212  lt_cv_objdir=.libs
7213else
7214  # MS-DOS does not allow filenames that begin with a dot.
7215  lt_cv_objdir=_libs
7216fi
7217rmdir .libs 2>/dev/null
7218fi
7219echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7220echo "${ECHO_T}$lt_cv_objdir" >&6
7221objdir=$lt_cv_objdir
7222
7223
7224
7225
7226
7227case $host_os in
7228aix3*)
7229  # AIX sometimes has problems with the GCC collect2 program.  For some
7230  # reason, if we set the COLLECT_NAMES environment variable, the problems
7231  # vanish in a puff of smoke.
7232  if test "X${COLLECT_NAMES+set}" != Xset; then
7233    COLLECT_NAMES=
7234    export COLLECT_NAMES
7235  fi
7236  ;;
7237esac
7238
7239# Sed substitution that helps us do robust quoting.  It backslashifies
7240# metacharacters that are still active within double-quoted strings.
7241Xsed='sed -e 1s/^X//'
7242sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7243
7244# Same as above, but do not quote variable references.
7245double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7246
7247# Sed substitution to delay expansion of an escaped shell variable in a
7248# double_quote_subst'ed string.
7249delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7250
7251# Sed substitution to avoid accidental globbing in evaled expressions
7252no_glob_subst='s/\*/\\\*/g'
7253
7254# Constants:
7255rm="rm -f"
7256
7257# Global variables:
7258default_ofile=libtool
7259can_build_shared=yes
7260
7261# All known linkers require a `.a' archive for static linking (except MSVC,
7262# which needs '.lib').
7263libext=a
7264ltmain="$ac_aux_dir/ltmain.sh"
7265ofile="$default_ofile"
7266with_gnu_ld="$lt_cv_prog_gnu_ld"
7267
7268if test -n "$ac_tool_prefix"; then
7269  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7270set dummy ${ac_tool_prefix}ar; ac_word=$2
7271echo "$as_me:$LINENO: checking for $ac_word" >&5
7272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7273if test "${ac_cv_prog_AR+set}" = set; then
7274  echo $ECHO_N "(cached) $ECHO_C" >&6
7275else
7276  if test -n "$AR"; then
7277  ac_cv_prog_AR="$AR" # Let the user override the test.
7278else
7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280for as_dir in $PATH
7281do
7282  IFS=$as_save_IFS
7283  test -z "$as_dir" && as_dir=.
7284  for ac_exec_ext in '' $ac_executable_extensions; do
7285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286    ac_cv_prog_AR="${ac_tool_prefix}ar"
7287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288    break 2
7289  fi
7290done
7291done
7292
7293fi
7294fi
7295AR=$ac_cv_prog_AR
7296if test -n "$AR"; then
7297  echo "$as_me:$LINENO: result: $AR" >&5
7298echo "${ECHO_T}$AR" >&6
7299else
7300  echo "$as_me:$LINENO: result: no" >&5
7301echo "${ECHO_T}no" >&6
7302fi
7303
7304fi
7305if test -z "$ac_cv_prog_AR"; then
7306  ac_ct_AR=$AR
7307  # Extract the first word of "ar", so it can be a program name with args.
7308set dummy ar; ac_word=$2
7309echo "$as_me:$LINENO: checking for $ac_word" >&5
7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7312  echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314  if test -n "$ac_ct_AR"; then
7315  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7316else
7317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318for as_dir in $PATH
7319do
7320  IFS=$as_save_IFS
7321  test -z "$as_dir" && as_dir=.
7322  for ac_exec_ext in '' $ac_executable_extensions; do
7323  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324    ac_cv_prog_ac_ct_AR="ar"
7325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326    break 2
7327  fi
7328done
7329done
7330
7331  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7332fi
7333fi
7334ac_ct_AR=$ac_cv_prog_ac_ct_AR
7335if test -n "$ac_ct_AR"; then
7336  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7337echo "${ECHO_T}$ac_ct_AR" >&6
7338else
7339  echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6
7341fi
7342
7343  AR=$ac_ct_AR
7344else
7345  AR="$ac_cv_prog_AR"
7346fi
7347
7348if test -n "$ac_tool_prefix"; then
7349  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7350set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7351echo "$as_me:$LINENO: checking for $ac_word" >&5
7352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353if test "${ac_cv_prog_RANLIB+set}" = set; then
7354  echo $ECHO_N "(cached) $ECHO_C" >&6
7355else
7356  if test -n "$RANLIB"; then
7357  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7358else
7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362  IFS=$as_save_IFS
7363  test -z "$as_dir" && as_dir=.
7364  for ac_exec_ext in '' $ac_executable_extensions; do
7365  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368    break 2
7369  fi
7370done
7371done
7372
7373fi
7374fi
7375RANLIB=$ac_cv_prog_RANLIB
7376if test -n "$RANLIB"; then
7377  echo "$as_me:$LINENO: result: $RANLIB" >&5
7378echo "${ECHO_T}$RANLIB" >&6
7379else
7380  echo "$as_me:$LINENO: result: no" >&5
7381echo "${ECHO_T}no" >&6
7382fi
7383
7384fi
7385if test -z "$ac_cv_prog_RANLIB"; then
7386  ac_ct_RANLIB=$RANLIB
7387  # Extract the first word of "ranlib", so it can be a program name with args.
7388set dummy ranlib; ac_word=$2
7389echo "$as_me:$LINENO: checking for $ac_word" >&5
7390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7391if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7392  echo $ECHO_N "(cached) $ECHO_C" >&6
7393else
7394  if test -n "$ac_ct_RANLIB"; then
7395  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402  for ac_exec_ext in '' $ac_executable_extensions; do
7403  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404    ac_cv_prog_ac_ct_RANLIB="ranlib"
7405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409done
7410
7411  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7412fi
7413fi
7414ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7415if test -n "$ac_ct_RANLIB"; then
7416  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7417echo "${ECHO_T}$ac_ct_RANLIB" >&6
7418else
7419  echo "$as_me:$LINENO: result: no" >&5
7420echo "${ECHO_T}no" >&6
7421fi
7422
7423  RANLIB=$ac_ct_RANLIB
7424else
7425  RANLIB="$ac_cv_prog_RANLIB"
7426fi
7427
7428if test -n "$ac_tool_prefix"; then
7429  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7430set dummy ${ac_tool_prefix}strip; ac_word=$2
7431echo "$as_me:$LINENO: checking for $ac_word" >&5
7432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7433if test "${ac_cv_prog_STRIP+set}" = set; then
7434  echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436  if test -n "$STRIP"; then
7437  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7438else
7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440for as_dir in $PATH
7441do
7442  IFS=$as_save_IFS
7443  test -z "$as_dir" && as_dir=.
7444  for ac_exec_ext in '' $ac_executable_extensions; do
7445  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448    break 2
7449  fi
7450done
7451done
7452
7453fi
7454fi
7455STRIP=$ac_cv_prog_STRIP
7456if test -n "$STRIP"; then
7457  echo "$as_me:$LINENO: result: $STRIP" >&5
7458echo "${ECHO_T}$STRIP" >&6
7459else
7460  echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6
7462fi
7463
7464fi
7465if test -z "$ac_cv_prog_STRIP"; then
7466  ac_ct_STRIP=$STRIP
7467  # Extract the first word of "strip", so it can be a program name with args.
7468set dummy strip; ac_word=$2
7469echo "$as_me:$LINENO: checking for $ac_word" >&5
7470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7471if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7472  echo $ECHO_N "(cached) $ECHO_C" >&6
7473else
7474  if test -n "$ac_ct_STRIP"; then
7475  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7476else
7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480  IFS=$as_save_IFS
7481  test -z "$as_dir" && as_dir=.
7482  for ac_exec_ext in '' $ac_executable_extensions; do
7483  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484    ac_cv_prog_ac_ct_STRIP="strip"
7485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486    break 2
7487  fi
7488done
7489done
7490
7491  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7492fi
7493fi
7494ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7495if test -n "$ac_ct_STRIP"; then
7496  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7497echo "${ECHO_T}$ac_ct_STRIP" >&6
7498else
7499  echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
7501fi
7502
7503  STRIP=$ac_ct_STRIP
7504else
7505  STRIP="$ac_cv_prog_STRIP"
7506fi
7507
7508
7509old_CC="$CC"
7510old_CFLAGS="$CFLAGS"
7511
7512# Set sane defaults for various variables
7513test -z "$AR" && AR=ar
7514test -z "$AR_FLAGS" && AR_FLAGS=cru
7515test -z "$AS" && AS=as
7516test -z "$CC" && CC=cc
7517test -z "$LTCC" && LTCC=$CC
7518test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7519test -z "$DLLTOOL" && DLLTOOL=dlltool
7520test -z "$LD" && LD=ld
7521test -z "$LN_S" && LN_S="ln -s"
7522test -z "$MAGIC_CMD" && MAGIC_CMD=file
7523test -z "$NM" && NM=nm
7524test -z "$SED" && SED=sed
7525test -z "$OBJDUMP" && OBJDUMP=objdump
7526test -z "$RANLIB" && RANLIB=:
7527test -z "$STRIP" && STRIP=:
7528test -z "$ac_objext" && ac_objext=o
7529
7530# Determine commands to create old-style static archives.
7531old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7532old_postinstall_cmds='chmod 644 $oldlib'
7533old_postuninstall_cmds=
7534
7535if test -n "$RANLIB"; then
7536  case $host_os in
7537  openbsd*)
7538    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7539    ;;
7540  *)
7541    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7542    ;;
7543  esac
7544  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7545fi
7546
7547for cc_temp in $compiler""; do
7548  case $cc_temp in
7549    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7550    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7551    \-*) ;;
7552    *) break;;
7553  esac
7554done
7555cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7556
7557
7558# Only perform the check for file, if the check method requires it
7559case $deplibs_check_method in
7560file_magic*)
7561  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7562    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7563echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7564if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7565  echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567  case $MAGIC_CMD in
7568[\\/*] |  ?:[\\/]*)
7569  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7570  ;;
7571*)
7572  lt_save_MAGIC_CMD="$MAGIC_CMD"
7573  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7574  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7575  for ac_dir in $ac_dummy; do
7576    IFS="$lt_save_ifs"
7577    test -z "$ac_dir" && ac_dir=.
7578    if test -f $ac_dir/${ac_tool_prefix}file; then
7579      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7580      if test -n "$file_magic_test_file"; then
7581        case $deplibs_check_method in
7582        "file_magic "*)
7583          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7584          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7585          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7586            $EGREP "$file_magic_regex" > /dev/null; then
7587            :
7588          else
7589            cat <<EOF 1>&2
7590
7591*** Warning: the command libtool uses to detect shared libraries,
7592*** $file_magic_cmd, produces output that libtool cannot recognize.
7593*** The result is that libtool may fail to recognize shared libraries
7594*** as such.  This will affect the creation of libtool libraries that
7595*** depend on shared libraries, but programs linked with such libtool
7596*** libraries will work regardless of this problem.  Nevertheless, you
7597*** may want to report the problem to your system manager and/or to
7598*** bug-libtool@gnu.org
7599
7600EOF
7601          fi ;;
7602        esac
7603      fi
7604      break
7605    fi
7606  done
7607  IFS="$lt_save_ifs"
7608  MAGIC_CMD="$lt_save_MAGIC_CMD"
7609  ;;
7610esac
7611fi
7612
7613MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7614if test -n "$MAGIC_CMD"; then
7615  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7616echo "${ECHO_T}$MAGIC_CMD" >&6
7617else
7618  echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6
7620fi
7621
7622if test -z "$lt_cv_path_MAGIC_CMD"; then
7623  if test -n "$ac_tool_prefix"; then
7624    echo "$as_me:$LINENO: checking for file" >&5
7625echo $ECHO_N "checking for file... $ECHO_C" >&6
7626if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7627  echo $ECHO_N "(cached) $ECHO_C" >&6
7628else
7629  case $MAGIC_CMD in
7630[\\/*] |  ?:[\\/]*)
7631  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7632  ;;
7633*)
7634  lt_save_MAGIC_CMD="$MAGIC_CMD"
7635  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7636  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7637  for ac_dir in $ac_dummy; do
7638    IFS="$lt_save_ifs"
7639    test -z "$ac_dir" && ac_dir=.
7640    if test -f $ac_dir/file; then
7641      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7642      if test -n "$file_magic_test_file"; then
7643        case $deplibs_check_method in
7644        "file_magic "*)
7645          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7646          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7647          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7648            $EGREP "$file_magic_regex" > /dev/null; then
7649            :
7650          else
7651            cat <<EOF 1>&2
7652
7653*** Warning: the command libtool uses to detect shared libraries,
7654*** $file_magic_cmd, produces output that libtool cannot recognize.
7655*** The result is that libtool may fail to recognize shared libraries
7656*** as such.  This will affect the creation of libtool libraries that
7657*** depend on shared libraries, but programs linked with such libtool
7658*** libraries will work regardless of this problem.  Nevertheless, you
7659*** may want to report the problem to your system manager and/or to
7660*** bug-libtool@gnu.org
7661
7662EOF
7663          fi ;;
7664        esac
7665      fi
7666      break
7667    fi
7668  done
7669  IFS="$lt_save_ifs"
7670  MAGIC_CMD="$lt_save_MAGIC_CMD"
7671  ;;
7672esac
7673fi
7674
7675MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7676if test -n "$MAGIC_CMD"; then
7677  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7678echo "${ECHO_T}$MAGIC_CMD" >&6
7679else
7680  echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6
7682fi
7683
7684  else
7685    MAGIC_CMD=:
7686  fi
7687fi
7688
7689  fi
7690  ;;
7691esac
7692
7693enable_dlopen=no
7694enable_win32_dll=no
7695
7696# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7697if test "${enable_libtool_lock+set}" = set; then
7698  enableval="$enable_libtool_lock"
7699
7700fi;
7701test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7702
7703
7704# Check whether --with-pic or --without-pic was given.
7705if test "${with_pic+set}" = set; then
7706  withval="$with_pic"
7707  pic_mode="$withval"
7708else
7709  pic_mode=default
7710fi;
7711test -z "$pic_mode" && pic_mode=default
7712
7713# Use C for the default configuration in the libtool script
7714tagname=
7715lt_save_CC="$CC"
7716ac_ext=c
7717ac_cpp='$CPP $CPPFLAGS'
7718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7720ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721
7722
7723# Source file extension for C test sources.
7724ac_ext=c
7725
7726# Object file extension for compiled C test sources.
7727objext=o
7728objext=$objext
7729
7730# Code to be used in simple compile tests
7731lt_simple_compile_test_code="int some_variable = 0;\n"
7732
7733# Code to be used in simple link tests
7734lt_simple_link_test_code='int main(){return(0);}\n'
7735
7736
7737# If no C compiler was specified, use CC.
7738LTCC=${LTCC-"$CC"}
7739
7740# If no C compiler flags were specified, use CFLAGS.
7741LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7742
7743# Allow CC to be a program name with arguments.
7744compiler=$CC
7745
7746
7747# save warnings/boilerplate of simple test code
7748ac_outfile=conftest.$ac_objext
7749printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7750eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7751_lt_compiler_boilerplate=`cat conftest.err`
7752$rm conftest*
7753
7754ac_outfile=conftest.$ac_objext
7755printf "$lt_simple_link_test_code" >conftest.$ac_ext
7756eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7757_lt_linker_boilerplate=`cat conftest.err`
7758$rm conftest*
7759
7760
7761## CAVEAT EMPTOR:
7762## There is no encapsulation within the following macros, do not change
7763## the running order or otherwise move them around unless you know exactly
7764## what you are doing...
7765
7766lt_prog_compiler_no_builtin_flag=
7767
7768if test "$GCC" = yes; then
7769  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7770
7771
7772echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7773echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7774if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7775  echo $ECHO_N "(cached) $ECHO_C" >&6
7776else
7777  lt_cv_prog_compiler_rtti_exceptions=no
7778  ac_outfile=conftest.$ac_objext
7779   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7780   lt_compiler_flag="-fno-rtti -fno-exceptions"
7781   # Insert the option either (1) after the last *FLAGS variable, or
7782   # (2) before a word containing "conftest.", or (3) at the end.
7783   # Note that $ac_compile itself does not contain backslashes and begins
7784   # with a dollar sign (not a hyphen), so the echo should work correctly.
7785   # The option is referenced via a variable to avoid confusing sed.
7786   lt_compile=`echo "$ac_compile" | $SED \
7787   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7788   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7789   -e 's:$: $lt_compiler_flag:'`
7790   (eval echo "\"\$as_me:7790: $lt_compile\"" >&5)
7791   (eval "$lt_compile" 2>conftest.err)
7792   ac_status=$?
7793   cat conftest.err >&5
7794   echo "$as_me:7794: \$? = $ac_status" >&5
7795   if (exit $ac_status) && test -s "$ac_outfile"; then
7796     # The compiler can only warn and ignore the option if not recognized
7797     # So say no if there are warnings other than the usual output.
7798     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7799     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7800     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7801       lt_cv_prog_compiler_rtti_exceptions=yes
7802     fi
7803   fi
7804   $rm conftest*
7805
7806fi
7807echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7808echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7809
7810if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7811    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7812else
7813    :
7814fi
7815
7816fi
7817
7818lt_prog_compiler_wl=
7819lt_prog_compiler_pic=
7820lt_prog_compiler_static=
7821
7822echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7823echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7824
7825  if test "$GCC" = yes; then
7826    lt_prog_compiler_wl='-Wl,'
7827    lt_prog_compiler_static='-static'
7828
7829    case $host_os in
7830      aix*)
7831      # All AIX code is PIC.
7832      if test "$host_cpu" = ia64; then
7833        # AIX 5 now supports IA64 processor
7834        lt_prog_compiler_static='-Bstatic'
7835      fi
7836      ;;
7837
7838    amigaos*)
7839      # FIXME: we need at least 68020 code to build shared libraries, but
7840      # adding the `-m68020' flag to GCC prevents building anything better,
7841      # like `-m68040'.
7842      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7843      ;;
7844
7845    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7846      # PIC is the default for these OSes.
7847      ;;
7848
7849    mingw* | pw32* | os2*)
7850      # This hack is so that the source file can tell whether it is being
7851      # built for inclusion in a dll (and should export symbols for example).
7852      lt_prog_compiler_pic='-DDLL_EXPORT'
7853      ;;
7854
7855    darwin* | rhapsody*)
7856      # PIC is the default on this platform
7857      # Common symbols not allowed in MH_DYLIB files
7858      lt_prog_compiler_pic='-fno-common'
7859      ;;
7860
7861    interix3*)
7862      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7863      # Instead, we relocate shared libraries at runtime.
7864      ;;
7865
7866    msdosdjgpp*)
7867      # Just because we use GCC doesn't mean we suddenly get shared libraries
7868      # on systems that don't support them.
7869      lt_prog_compiler_can_build_shared=no
7870      enable_shared=no
7871      ;;
7872
7873    sysv4*MP*)
7874      if test -d /usr/nec; then
7875        lt_prog_compiler_pic=-Kconform_pic
7876      fi
7877      ;;
7878
7879    hpux*)
7880      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7881      # not for PA HP-UX.
7882      case $host_cpu in
7883      hppa*64*|ia64*)
7884        # +Z the default
7885        ;;
7886      *)
7887        lt_prog_compiler_pic='-fPIC'
7888        ;;
7889      esac
7890      ;;
7891
7892    *)
7893      lt_prog_compiler_pic='-fPIC'
7894      ;;
7895    esac
7896  else
7897    # PORTME Check for flag to pass linker flags through the system compiler.
7898    case $host_os in
7899    aix*)
7900      lt_prog_compiler_wl='-Wl,'
7901      if test "$host_cpu" = ia64; then
7902        # AIX 5 now supports IA64 processor
7903        lt_prog_compiler_static='-Bstatic'
7904      else
7905        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7906      fi
7907      ;;
7908      darwin*)
7909        # PIC is the default on this platform
7910        # Common symbols not allowed in MH_DYLIB files
7911       case $cc_basename in
7912         xlc*)
7913         lt_prog_compiler_pic='-qnocommon'
7914         lt_prog_compiler_wl='-Wl,'
7915         ;;
7916       esac
7917       ;;
7918
7919    mingw* | pw32* | os2*)
7920      # This hack is so that the source file can tell whether it is being
7921      # built for inclusion in a dll (and should export symbols for example).
7922      lt_prog_compiler_pic='-DDLL_EXPORT'
7923      ;;
7924
7925    hpux9* | hpux10* | hpux11*)
7926      lt_prog_compiler_wl='-Wl,'
7927      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7928      # not for PA HP-UX.
7929      case $host_cpu in
7930      hppa*64*|ia64*)
7931        # +Z the default
7932        ;;
7933      *)
7934        lt_prog_compiler_pic='+Z'
7935        ;;
7936      esac
7937      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7938      lt_prog_compiler_static='${wl}-a ${wl}archive'
7939      ;;
7940
7941    irix5* | irix6* | nonstopux*)
7942      lt_prog_compiler_wl='-Wl,'
7943      # PIC (with -KPIC) is the default.
7944      lt_prog_compiler_static='-non_shared'
7945      ;;
7946
7947    newsos6)
7948      lt_prog_compiler_pic='-KPIC'
7949      lt_prog_compiler_static='-Bstatic'
7950      ;;
7951
7952    linux*)
7953      case $cc_basename in
7954      icc* | ecc*)
7955        lt_prog_compiler_wl='-Wl,'
7956        lt_prog_compiler_pic='-KPIC'
7957        lt_prog_compiler_static='-static'
7958        ;;
7959      pgcc* | pgf77* | pgf90* | pgf95*)
7960        # Portland Group compilers (*not* the Pentium gcc compiler,
7961        # which looks to be a dead project)
7962        lt_prog_compiler_wl='-Wl,'
7963        lt_prog_compiler_pic='-fpic'
7964        lt_prog_compiler_static='-Bstatic'
7965        ;;
7966      ccc*)
7967        lt_prog_compiler_wl='-Wl,'
7968        # All Alpha code is PIC.
7969        lt_prog_compiler_static='-non_shared'
7970        ;;
7971      esac
7972      ;;
7973
7974    osf3* | osf4* | osf5*)
7975      lt_prog_compiler_wl='-Wl,'
7976      # All OSF/1 code is PIC.
7977      lt_prog_compiler_static='-non_shared'
7978      ;;
7979
7980    solaris*)
7981      lt_prog_compiler_pic='-KPIC'
7982      lt_prog_compiler_static='-Bstatic'
7983      case $cc_basename in
7984      f77* | f90* | f95*)
7985        lt_prog_compiler_wl='-Qoption ld ';;
7986      *)
7987        lt_prog_compiler_wl='-Wl,';;
7988      esac
7989      ;;
7990
7991    sunos4*)
7992      lt_prog_compiler_wl='-Qoption ld '
7993      lt_prog_compiler_pic='-PIC'
7994      lt_prog_compiler_static='-Bstatic'
7995      ;;
7996
7997    sysv4 | sysv4.2uw2* | sysv4.3*)
7998      lt_prog_compiler_wl='-Wl,'
7999      lt_prog_compiler_pic='-KPIC'
8000      lt_prog_compiler_static='-Bstatic'
8001      ;;
8002
8003    sysv4*MP*)
8004      if test -d /usr/nec ;then
8005        lt_prog_compiler_pic='-Kconform_pic'
8006        lt_prog_compiler_static='-Bstatic'
8007      fi
8008      ;;
8009
8010    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8011      lt_prog_compiler_wl='-Wl,'
8012      lt_prog_compiler_pic='-KPIC'
8013      lt_prog_compiler_static='-Bstatic'
8014      ;;
8015
8016    unicos*)
8017      lt_prog_compiler_wl='-Wl,'
8018      lt_prog_compiler_can_build_shared=no
8019      ;;
8020
8021    uts4*)
8022      lt_prog_compiler_pic='-pic'
8023      lt_prog_compiler_static='-Bstatic'
8024      ;;
8025
8026    *)
8027      lt_prog_compiler_can_build_shared=no
8028      ;;
8029    esac
8030  fi
8031
8032echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8033echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8034
8035#
8036# Check to make sure the PIC flag actually works.
8037#
8038if test -n "$lt_prog_compiler_pic"; then
8039
8040echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8041echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8042if test "${lt_prog_compiler_pic_works+set}" = set; then
8043  echo $ECHO_N "(cached) $ECHO_C" >&6
8044else
8045  lt_prog_compiler_pic_works=no
8046  ac_outfile=conftest.$ac_objext
8047   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8048   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8049   # Insert the option either (1) after the last *FLAGS variable, or
8050   # (2) before a word containing "conftest.", or (3) at the end.
8051   # Note that $ac_compile itself does not contain backslashes and begins
8052   # with a dollar sign (not a hyphen), so the echo should work correctly.
8053   # The option is referenced via a variable to avoid confusing sed.
8054   lt_compile=`echo "$ac_compile" | $SED \
8055   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8056   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8057   -e 's:$: $lt_compiler_flag:'`
8058   (eval echo "\"\$as_me:8058: $lt_compile\"" >&5)
8059   (eval "$lt_compile" 2>conftest.err)
8060   ac_status=$?
8061   cat conftest.err >&5
8062   echo "$as_me:8062: \$? = $ac_status" >&5
8063   if (exit $ac_status) && test -s "$ac_outfile"; then
8064     # The compiler can only warn and ignore the option if not recognized
8065     # So say no if there are warnings other than the usual output.
8066     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8067     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8068     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8069       lt_prog_compiler_pic_works=yes
8070     fi
8071   fi
8072   $rm conftest*
8073
8074fi
8075echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8076echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8077
8078if test x"$lt_prog_compiler_pic_works" = xyes; then
8079    case $lt_prog_compiler_pic in
8080     "" | " "*) ;;
8081     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8082     esac
8083else
8084    lt_prog_compiler_pic=
8085     lt_prog_compiler_can_build_shared=no
8086fi
8087
8088fi
8089case $host_os in
8090  # For platforms which do not support PIC, -DPIC is meaningless:
8091  *djgpp*)
8092    lt_prog_compiler_pic=
8093    ;;
8094  *)
8095    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8096    ;;
8097esac
8098
8099#
8100# Check to make sure the static flag actually works.
8101#
8102wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8103echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8104echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8105if test "${lt_prog_compiler_static_works+set}" = set; then
8106  echo $ECHO_N "(cached) $ECHO_C" >&6
8107else
8108  lt_prog_compiler_static_works=no
8109   save_LDFLAGS="$LDFLAGS"
8110   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8111   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8112   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8113     # The linker can only warn and ignore the option if not recognized
8114     # So say no if there are warnings
8115     if test -s conftest.err; then
8116       # Append any errors to the config.log.
8117       cat conftest.err 1>&5
8118       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8119       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8120       if diff conftest.exp conftest.er2 >/dev/null; then
8121         lt_prog_compiler_static_works=yes
8122       fi
8123     else
8124       lt_prog_compiler_static_works=yes
8125     fi
8126   fi
8127   $rm conftest*
8128   LDFLAGS="$save_LDFLAGS"
8129
8130fi
8131echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8132echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8133
8134if test x"$lt_prog_compiler_static_works" = xyes; then
8135    :
8136else
8137    lt_prog_compiler_static=
8138fi
8139
8140
8141echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8142echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8143if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8144  echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146  lt_cv_prog_compiler_c_o=no
8147   $rm -r conftest 2>/dev/null
8148   mkdir conftest
8149   cd conftest
8150   mkdir out
8151   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8152
8153   lt_compiler_flag="-o out/conftest2.$ac_objext"
8154   # Insert the option either (1) after the last *FLAGS variable, or
8155   # (2) before a word containing "conftest.", or (3) at the end.
8156   # Note that $ac_compile itself does not contain backslashes and begins
8157   # with a dollar sign (not a hyphen), so the echo should work correctly.
8158   lt_compile=`echo "$ac_compile" | $SED \
8159   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8160   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8161   -e 's:$: $lt_compiler_flag:'`
8162   (eval echo "\"\$as_me:8162: $lt_compile\"" >&5)
8163   (eval "$lt_compile" 2>out/conftest.err)
8164   ac_status=$?
8165   cat out/conftest.err >&5
8166   echo "$as_me:8166: \$? = $ac_status" >&5
8167   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8168   then
8169     # The compiler can only warn and ignore the option if not recognized
8170     # So say no if there are warnings
8171     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8172     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8173     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8174       lt_cv_prog_compiler_c_o=yes
8175     fi
8176   fi
8177   chmod u+w . 2>&5
8178   $rm conftest*
8179   # SGI C++ compiler will create directory out/ii_files/ for
8180   # template instantiation
8181   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8182   $rm out/* && rmdir out
8183   cd ..
8184   rmdir conftest
8185   $rm conftest*
8186
8187fi
8188echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8189echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8190
8191
8192hard_links="nottested"
8193if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8194  # do not overwrite the value of need_locks provided by the user
8195  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8196echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8197  hard_links=yes
8198  $rm conftest*
8199  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8200  touch conftest.a
8201  ln conftest.a conftest.b 2>&5 || hard_links=no
8202  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8203  echo "$as_me:$LINENO: result: $hard_links" >&5
8204echo "${ECHO_T}$hard_links" >&6
8205  if test "$hard_links" = no; then
8206    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8207echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8208    need_locks=warn
8209  fi
8210else
8211  need_locks=no
8212fi
8213
8214echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8215echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8216
8217  runpath_var=
8218  allow_undefined_flag=
8219  enable_shared_with_static_runtimes=no
8220  archive_cmds=
8221  archive_expsym_cmds=
8222  old_archive_From_new_cmds=
8223  old_archive_from_expsyms_cmds=
8224  export_dynamic_flag_spec=
8225  whole_archive_flag_spec=
8226  thread_safe_flag_spec=
8227  hardcode_libdir_flag_spec=
8228  hardcode_libdir_flag_spec_ld=
8229  hardcode_libdir_separator=
8230  hardcode_direct=no
8231  hardcode_minus_L=no
8232  hardcode_shlibpath_var=unsupported
8233  link_all_deplibs=unknown
8234  hardcode_automatic=no
8235  module_cmds=
8236  module_expsym_cmds=
8237  always_export_symbols=no
8238  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8239  # include_expsyms should be a list of space-separated symbols to be *always*
8240  # included in the symbol list
8241  include_expsyms=
8242  # exclude_expsyms can be an extended regexp of symbols to exclude
8243  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8244  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8245  # as well as any symbol that contains `d'.
8246  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8247  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8248  # platforms (ab)use it in PIC code, but their linkers get confused if
8249  # the symbol is explicitly referenced.  Since portable code cannot
8250  # rely on this symbol name, it's probably fine to never include it in
8251  # preloaded symbol tables.
8252  extract_expsyms_cmds=
8253  # Just being paranoid about ensuring that cc_basename is set.
8254  for cc_temp in $compiler""; do
8255  case $cc_temp in
8256    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8257    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8258    \-*) ;;
8259    *) break;;
8260  esac
8261done
8262cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8263
8264  case $host_os in
8265  cygwin* | mingw* | pw32*)
8266    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8267    # When not using gcc, we currently assume that we are using
8268    # Microsoft Visual C++.
8269    if test "$GCC" != yes; then
8270      with_gnu_ld=no
8271    fi
8272    ;;
8273  interix*)
8274    # we just hope/assume this is gcc and not c89 (= MSVC++)
8275    with_gnu_ld=yes
8276    ;;
8277  openbsd*)
8278    with_gnu_ld=no
8279    ;;
8280  esac
8281
8282  ld_shlibs=yes
8283  if test "$with_gnu_ld" = yes; then
8284    # If archive_cmds runs LD, not CC, wlarc should be empty
8285    wlarc='${wl}'
8286
8287    # Set some defaults for GNU ld with shared library support. These
8288    # are reset later if shared libraries are not supported. Putting them
8289    # here allows them to be overridden if necessary.
8290    runpath_var=LD_RUN_PATH
8291    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8292    export_dynamic_flag_spec='${wl}--export-dynamic'
8293    # ancient GNU ld didn't support --whole-archive et. al.
8294    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8295        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8296      else
8297        whole_archive_flag_spec=
8298    fi
8299    supports_anon_versioning=no
8300    case `$LD -v 2>/dev/null` in
8301      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8302      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8303      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8304      *\ 2.11.*) ;; # other 2.11 versions
8305      *) supports_anon_versioning=yes ;;
8306    esac
8307
8308    # See if GNU ld supports shared libraries.
8309    case $host_os in
8310    aix3* | aix4* | aix5*)
8311      # On AIX/PPC, the GNU linker is very broken
8312      if test "$host_cpu" != ia64; then
8313        ld_shlibs=no
8314        cat <<EOF 1>&2
8315
8316*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8317*** to be unable to reliably create shared libraries on AIX.
8318*** Therefore, libtool is disabling shared libraries support.  If you
8319*** really care for shared libraries, you may want to modify your PATH
8320*** so that a non-GNU linker is found, and then restart.
8321
8322EOF
8323      fi
8324      ;;
8325
8326    amigaos*)
8327      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)'
8328      hardcode_libdir_flag_spec='-L$libdir'
8329      hardcode_minus_L=yes
8330
8331      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8332      # that the semantics of dynamic libraries on AmigaOS, at least up
8333      # to version 4, is to share data among multiple programs linked
8334      # with the same dynamic library.  Since this doesn't match the
8335      # behavior of shared libraries on other platforms, we can't use
8336      # them.
8337      ld_shlibs=no
8338      ;;
8339
8340    beos*)
8341      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8342        allow_undefined_flag=unsupported
8343        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8344        # support --undefined.  This deserves some investigation.  FIXME
8345        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8346      else
8347        ld_shlibs=no
8348      fi
8349      ;;
8350
8351    cygwin* | mingw* | pw32*)
8352      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8353      # as there is no search path for DLLs.
8354      hardcode_libdir_flag_spec='-L$libdir'
8355      allow_undefined_flag=unsupported
8356      always_export_symbols=no
8357      enable_shared_with_static_runtimes=yes
8358      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8359
8360      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8361        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8362        # If the export-symbols file already is a .def file (1st line
8363        # is EXPORTS), use it as is; otherwise, prepend...
8364        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8365          cp $export_symbols $output_objdir/$soname.def;
8366        else
8367          echo EXPORTS > $output_objdir/$soname.def;
8368          cat $export_symbols >> $output_objdir/$soname.def;
8369        fi~
8370        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8371      else
8372        ld_shlibs=no
8373      fi
8374      ;;
8375
8376    interix3*)
8377      hardcode_direct=no
8378      hardcode_shlibpath_var=no
8379      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8380      export_dynamic_flag_spec='${wl}-E'
8381      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8382      # Instead, shared libraries are loaded at an image base (0x10000000 by
8383      # default) and relocated if they conflict, which is a slow very memory
8384      # consuming and fragmenting process.  To avoid this, we pick a random,
8385      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8386      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8387      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8388      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'
8389      ;;
8390
8391    linux*)
8392      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8393        tmp_addflag=
8394        case $cc_basename,$host_cpu in
8395        pgcc*)                          # Portland Group C compiler
8396          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'
8397          tmp_addflag=' $pic_flag'
8398          ;;
8399        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8400          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'
8401          tmp_addflag=' $pic_flag -Mnomain' ;;
8402        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8403          tmp_addflag=' -i_dynamic' ;;
8404        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8405          tmp_addflag=' -i_dynamic -nofor_main' ;;
8406        ifc* | ifort*)                  # Intel Fortran compiler
8407          tmp_addflag=' -nofor_main' ;;
8408        esac
8409        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410
8411        if test $supports_anon_versioning = yes; then
8412          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8413  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8414  $echo "local: *; };" >> $output_objdir/$libname.ver~
8415          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8416        fi
8417      else
8418        ld_shlibs=no
8419      fi
8420      ;;
8421
8422    netbsd*)
8423      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8424        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8425        wlarc=
8426      else
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      fi
8430      ;;
8431
8432    solaris*)
8433      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8434        ld_shlibs=no
8435        cat <<EOF 1>&2
8436
8437*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8438*** create shared libraries on Solaris systems.  Therefore, libtool
8439*** is disabling shared libraries support.  We urge you to upgrade GNU
8440*** binutils to release 2.9.1 or newer.  Another option is to modify
8441*** your PATH or compiler configuration so that the native linker is
8442*** used, and then restart.
8443
8444EOF
8445      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8446        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8448      else
8449        ld_shlibs=no
8450      fi
8451      ;;
8452
8453    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8454      case `$LD -v 2>&1` in
8455        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8456        ld_shlibs=no
8457        cat <<_LT_EOF 1>&2
8458
8459*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8460*** reliably create shared libraries on SCO systems.  Therefore, libtool
8461*** is disabling shared libraries support.  We urge you to upgrade GNU
8462*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8463*** your PATH or compiler configuration so that the native linker is
8464*** used, and then restart.
8465
8466_LT_EOF
8467        ;;
8468        *)
8469          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8470            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8471            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8472            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8473          else
8474            ld_shlibs=no
8475          fi
8476        ;;
8477      esac
8478      ;;
8479
8480    sunos4*)
8481      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8482      wlarc=
8483      hardcode_direct=yes
8484      hardcode_shlibpath_var=no
8485      ;;
8486
8487    *)
8488      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8489        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8490        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8491      else
8492        ld_shlibs=no
8493      fi
8494      ;;
8495    esac
8496
8497    if test "$ld_shlibs" = no; then
8498      runpath_var=
8499      hardcode_libdir_flag_spec=
8500      export_dynamic_flag_spec=
8501      whole_archive_flag_spec=
8502    fi
8503  else
8504    # PORTME fill in a description of your system's linker (not GNU ld)
8505    case $host_os in
8506    aix3*)
8507      allow_undefined_flag=unsupported
8508      always_export_symbols=yes
8509      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'
8510      # Note: this linker hardcodes the directories in LIBPATH if there
8511      # are no directories specified by -L.
8512      hardcode_minus_L=yes
8513      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8514        # Neither direct hardcoding nor static linking is supported with a
8515        # broken collect2.
8516        hardcode_direct=unsupported
8517      fi
8518      ;;
8519
8520    aix4* | aix5*)
8521      if test "$host_cpu" = ia64; then
8522        # On IA64, the linker does run time linking by default, so we don't
8523        # have to do anything special.
8524        aix_use_runtimelinking=no
8525        exp_sym_flag='-Bexport'
8526        no_entry_flag=""
8527      else
8528        # If we're using GNU nm, then we don't want the "-C" option.
8529        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8530        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8531          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'
8532        else
8533          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'
8534        fi
8535        aix_use_runtimelinking=no
8536
8537        # Test if we are trying to use run time linking or normal
8538        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8539        # need to do runtime linking.
8540        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8541          for ld_flag in $LDFLAGS; do
8542          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8543            aix_use_runtimelinking=yes
8544            break
8545          fi
8546          done
8547          ;;
8548        esac
8549
8550        exp_sym_flag='-bexport'
8551        no_entry_flag='-bnoentry'
8552      fi
8553
8554      # When large executables or shared objects are built, AIX ld can
8555      # have problems creating the table of contents.  If linking a library
8556      # or program results in "error TOC overflow" add -mminimal-toc to
8557      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8558      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8559
8560      archive_cmds=''
8561      hardcode_direct=yes
8562      hardcode_libdir_separator=':'
8563      link_all_deplibs=yes
8564
8565      if test "$GCC" = yes; then
8566        case $host_os in aix4.[012]|aix4.[012].*)
8567        # We only want to do this on AIX 4.2 and lower, the check
8568        # below for broken collect2 doesn't work under 4.3+
8569          collect2name=`${CC} -print-prog-name=collect2`
8570          if test -f "$collect2name" && \
8571           strings "$collect2name" | grep resolve_lib_name >/dev/null
8572          then
8573          # We have reworked collect2
8574          hardcode_direct=yes
8575          else
8576          # We have old collect2
8577          hardcode_direct=unsupported
8578          # It fails to find uninstalled libraries when the uninstalled
8579          # path is not listed in the libpath.  Setting hardcode_minus_L
8580          # to unsupported forces relinking
8581          hardcode_minus_L=yes
8582          hardcode_libdir_flag_spec='-L$libdir'
8583          hardcode_libdir_separator=
8584          fi
8585          ;;
8586        esac
8587        shared_flag='-shared'
8588        if test "$aix_use_runtimelinking" = yes; then
8589          shared_flag="$shared_flag "'${wl}-G'
8590        fi
8591      else
8592        # not using gcc
8593        if test "$host_cpu" = ia64; then
8594        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8595        # chokes on -Wl,-G. The following line is correct:
8596          shared_flag='-G'
8597        else
8598          if test "$aix_use_runtimelinking" = yes; then
8599            shared_flag='${wl}-G'
8600          else
8601            shared_flag='${wl}-bM:SRE'
8602          fi
8603        fi
8604      fi
8605
8606      # It seems that -bexpall does not export symbols beginning with
8607      # underscore (_), so it is better to generate a list of symbols to export.
8608      always_export_symbols=yes
8609      if test "$aix_use_runtimelinking" = yes; then
8610        # Warning - without using the other runtime loading flags (-brtl),
8611        # -berok will link without error, but may produce a broken library.
8612        allow_undefined_flag='-berok'
8613       # Determine the default libpath from the value encoded in an empty executable.
8614       cat >conftest.$ac_ext <<_ACEOF
8615/* confdefs.h.  */
8616_ACEOF
8617cat confdefs.h >>conftest.$ac_ext
8618cat >>conftest.$ac_ext <<_ACEOF
8619/* end confdefs.h.  */
8620
8621int
8622main ()
8623{
8624
8625  ;
8626  return 0;
8627}
8628_ACEOF
8629rm -f conftest.$ac_objext conftest$ac_exeext
8630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631  (eval $ac_link) 2>conftest.er1
8632  ac_status=$?
8633  grep -v '^ *+' conftest.er1 >conftest.err
8634  rm -f conftest.er1
8635  cat conftest.err >&5
8636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637  (exit $ac_status); } &&
8638         { ac_try='test -z "$ac_c_werror_flag"
8639                         || test ! -s conftest.err'
8640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641  (eval $ac_try) 2>&5
8642  ac_status=$?
8643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644  (exit $ac_status); }; } &&
8645         { ac_try='test -s conftest$ac_exeext'
8646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647  (eval $ac_try) 2>&5
8648  ac_status=$?
8649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650  (exit $ac_status); }; }; then
8651
8652aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8653}'`
8654# Check for a 64-bit object if we didn't find anything.
8655if 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; }
8656}'`; fi
8657else
8658  echo "$as_me: failed program was:" >&5
8659sed 's/^/| /' conftest.$ac_ext >&5
8660
8661fi
8662rm -f conftest.err conftest.$ac_objext \
8663      conftest$ac_exeext conftest.$ac_ext
8664if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8665
8666       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8667        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"
8668       else
8669        if test "$host_cpu" = ia64; then
8670          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8671          allow_undefined_flag="-z nodefs"
8672          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"
8673        else
8674         # Determine the default libpath from the value encoded in an empty executable.
8675         cat >conftest.$ac_ext <<_ACEOF
8676/* confdefs.h.  */
8677_ACEOF
8678cat confdefs.h >>conftest.$ac_ext
8679cat >>conftest.$ac_ext <<_ACEOF
8680/* end confdefs.h.  */
8681
8682int
8683main ()
8684{
8685
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690rm -f conftest.$ac_objext conftest$ac_exeext
8691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692  (eval $ac_link) 2>conftest.er1
8693  ac_status=$?
8694  grep -v '^ *+' conftest.er1 >conftest.err
8695  rm -f conftest.er1
8696  cat conftest.err >&5
8697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698  (exit $ac_status); } &&
8699         { ac_try='test -z "$ac_c_werror_flag"
8700                         || test ! -s conftest.err'
8701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702  (eval $ac_try) 2>&5
8703  ac_status=$?
8704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705  (exit $ac_status); }; } &&
8706         { ac_try='test -s conftest$ac_exeext'
8707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708  (eval $ac_try) 2>&5
8709  ac_status=$?
8710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711  (exit $ac_status); }; }; then
8712
8713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8714}'`
8715# Check for a 64-bit object if we didn't find anything.
8716if 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; }
8717}'`; fi
8718else
8719  echo "$as_me: failed program was:" >&5
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722fi
8723rm -f conftest.err conftest.$ac_objext \
8724      conftest$ac_exeext conftest.$ac_ext
8725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8726
8727         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8728          # Warning - without using the other run time loading flags,
8729          # -berok will link without error, but may produce a broken library.
8730          no_undefined_flag=' ${wl}-bernotok'
8731          allow_undefined_flag=' ${wl}-berok'
8732          # Exported symbols can be pulled into shared objects from archives
8733          whole_archive_flag_spec='$convenience'
8734          archive_cmds_need_lc=yes
8735          # This is similar to how AIX traditionally builds its shared libraries.
8736          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'
8737        fi
8738      fi
8739      ;;
8740
8741    amigaos*)
8742      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)'
8743      hardcode_libdir_flag_spec='-L$libdir'
8744      hardcode_minus_L=yes
8745      # see comment about different semantics on the GNU ld section
8746      ld_shlibs=no
8747      ;;
8748
8749    bsdi[45]*)
8750      export_dynamic_flag_spec=-rdynamic
8751      ;;
8752
8753    cygwin* | mingw* | pw32*)
8754      # When not using gcc, we currently assume that we are using
8755      # Microsoft Visual C++.
8756      # hardcode_libdir_flag_spec is actually meaningless, as there is
8757      # no search path for DLLs.
8758      hardcode_libdir_flag_spec=' '
8759      allow_undefined_flag=unsupported
8760      # Tell ltmain to make .lib files, not .a files.
8761      libext=lib
8762      # Tell ltmain to make .dll files, not .so files.
8763      shrext_cmds=".dll"
8764      # FIXME: Setting linknames here is a bad hack.
8765      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8766      # The linker will automatically build a .lib file if we build a DLL.
8767      old_archive_From_new_cmds='true'
8768      # FIXME: Should let the user specify the lib program.
8769      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8770      fix_srcfile_path='`cygpath -w "$srcfile"`'
8771      enable_shared_with_static_runtimes=yes
8772      ;;
8773
8774    darwin* | rhapsody*)
8775      case $host_os in
8776        rhapsody* | darwin1.[012])
8777         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8778         ;;
8779       *) # Darwin 1.3 on
8780         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8781           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8782         else
8783           case ${MACOSX_DEPLOYMENT_TARGET} in
8784             10.[012])
8785               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8786               ;;
8787             10.*)
8788               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8789               ;;
8790           esac
8791         fi
8792         ;;
8793      esac
8794      archive_cmds_need_lc=no
8795      hardcode_direct=no
8796      hardcode_automatic=yes
8797      hardcode_shlibpath_var=unsupported
8798      whole_archive_flag_spec=''
8799      link_all_deplibs=yes
8800    if test "$GCC" = yes ; then
8801        output_verbose_link_cmd='echo'
8802        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8803      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8804      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8805      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}'
8806      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}'
8807    else
8808      case $cc_basename in
8809        xlc*)
8810         output_verbose_link_cmd='echo'
8811         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8812         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8813          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8814         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}'
8815          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}'
8816          ;;
8817       *)
8818         ld_shlibs=no
8819          ;;
8820      esac
8821    fi
8822      ;;
8823
8824    dgux*)
8825      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8826      hardcode_libdir_flag_spec='-L$libdir'
8827      hardcode_shlibpath_var=no
8828      ;;
8829
8830    freebsd1*)
8831      ld_shlibs=no
8832      ;;
8833
8834    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8835    # support.  Future versions do this automatically, but an explicit c++rt0.o
8836    # does not break anything, and helps significantly (at the cost of a little
8837    # extra space).
8838    freebsd2.2*)
8839      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8840      hardcode_libdir_flag_spec='-R$libdir'
8841      hardcode_direct=yes
8842      hardcode_shlibpath_var=no
8843      ;;
8844
8845    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8846    freebsd2*)
8847      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8848      hardcode_direct=yes
8849      hardcode_minus_L=yes
8850      hardcode_shlibpath_var=no
8851      ;;
8852
8853    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8854    freebsd* | kfreebsd*-gnu | dragonfly*)
8855      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8856      hardcode_libdir_flag_spec='-R$libdir'
8857      hardcode_direct=yes
8858      hardcode_shlibpath_var=no
8859      ;;
8860
8861    hpux9*)
8862      if test "$GCC" = yes; then
8863        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'
8864      else
8865        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'
8866      fi
8867      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8868      hardcode_libdir_separator=:
8869      hardcode_direct=yes
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      export_dynamic_flag_spec='${wl}-E'
8875      ;;
8876
8877    hpux10*)
8878      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8879        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8880      else
8881        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8882      fi
8883      if test "$with_gnu_ld" = no; then
8884        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8885        hardcode_libdir_separator=:
8886
8887        hardcode_direct=yes
8888        export_dynamic_flag_spec='${wl}-E'
8889
8890        # hardcode_minus_L: Not really in the search PATH,
8891        # but as the default location of the library.
8892        hardcode_minus_L=yes
8893      fi
8894      ;;
8895
8896    hpux11*)
8897      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8898        case $host_cpu in
8899        hppa*64*)
8900          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8901          ;;
8902        ia64*)
8903          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8904          ;;
8905        *)
8906          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8907          ;;
8908        esac
8909      else
8910        case $host_cpu in
8911        hppa*64*)
8912          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8913          ;;
8914        ia64*)
8915          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8916          ;;
8917        *)
8918          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8919          ;;
8920        esac
8921      fi
8922      if test "$with_gnu_ld" = no; then
8923        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8924        hardcode_libdir_separator=:
8925
8926        case $host_cpu in
8927        hppa*64*|ia64*)
8928          hardcode_libdir_flag_spec_ld='+b $libdir'
8929          hardcode_direct=no
8930          hardcode_shlibpath_var=no
8931          ;;
8932        *)
8933          hardcode_direct=yes
8934          export_dynamic_flag_spec='${wl}-E'
8935
8936          # hardcode_minus_L: Not really in the search PATH,
8937          # but as the default location of the library.
8938          hardcode_minus_L=yes
8939          ;;
8940        esac
8941      fi
8942      ;;
8943
8944    irix5* | irix6* | nonstopux*)
8945      if test "$GCC" = yes; then
8946        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'
8947      else
8948        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'
8949        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8950      fi
8951      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8952      hardcode_libdir_separator=:
8953      link_all_deplibs=yes
8954      ;;
8955
8956    netbsd*)
8957      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8958        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8959      else
8960        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8961      fi
8962      hardcode_libdir_flag_spec='-R$libdir'
8963      hardcode_direct=yes
8964      hardcode_shlibpath_var=no
8965      ;;
8966
8967    newsos6)
8968      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8969      hardcode_direct=yes
8970      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8971      hardcode_libdir_separator=:
8972      hardcode_shlibpath_var=no
8973      ;;
8974
8975    openbsd*)
8976      hardcode_direct=yes
8977      hardcode_shlibpath_var=no
8978      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8979        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8980        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8981        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8982        export_dynamic_flag_spec='${wl}-E'
8983      else
8984       case $host_os in
8985         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8986           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8987           hardcode_libdir_flag_spec='-R$libdir'
8988           ;;
8989         *)
8990           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8991           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8992           ;;
8993       esac
8994      fi
8995      ;;
8996
8997    os2*)
8998      hardcode_libdir_flag_spec='-L$libdir'
8999      hardcode_minus_L=yes
9000      allow_undefined_flag=unsupported
9001      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'
9002      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9003      ;;
9004
9005    osf3*)
9006      if test "$GCC" = yes; then
9007        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9008        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'
9009      else
9010        allow_undefined_flag=' -expect_unresolved \*'
9011        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'
9012      fi
9013      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9014      hardcode_libdir_separator=:
9015      ;;
9016
9017    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9018      if test "$GCC" = yes; then
9019        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9020        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'
9021        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9022      else
9023        allow_undefined_flag=' -expect_unresolved \*'
9024        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'
9025        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9026        $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'
9027
9028        # Both c and cxx compiler support -rpath directly
9029        hardcode_libdir_flag_spec='-rpath $libdir'
9030      fi
9031      hardcode_libdir_separator=:
9032      ;;
9033
9034    solaris*)
9035      no_undefined_flag=' -z text'
9036      if test "$GCC" = yes; then
9037        wlarc='${wl}'
9038        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9039        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9040          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9041      else
9042        wlarc=''
9043        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9045        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9046      fi
9047      hardcode_libdir_flag_spec='-R$libdir'
9048      hardcode_shlibpath_var=no
9049      case $host_os in
9050      solaris2.[0-5] | solaris2.[0-5].*) ;;
9051      *)
9052        # The compiler driver will combine linker options so we
9053        # cannot just pass the convience library names through
9054        # without $wl, iff we do not link with $LD.
9055        # Luckily, gcc supports the same syntax we need for Sun Studio.
9056        # Supported since Solaris 2.6 (maybe 2.5.1?)
9057        case $wlarc in
9058        '')
9059          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9060        *)
9061          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' ;;
9062        esac ;;
9063      esac
9064      link_all_deplibs=yes
9065      ;;
9066
9067    sunos4*)
9068      if test "x$host_vendor" = xsequent; then
9069        # Use $CC to link under sequent, because it throws in some extra .o
9070        # files that make .init and .fini sections work.
9071        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9072      else
9073        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9074      fi
9075      hardcode_libdir_flag_spec='-L$libdir'
9076      hardcode_direct=yes
9077      hardcode_minus_L=yes
9078      hardcode_shlibpath_var=no
9079      ;;
9080
9081    sysv4)
9082      case $host_vendor in
9083        sni)
9084          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9085          hardcode_direct=yes # is this really true???
9086        ;;
9087        siemens)
9088          ## LD is ld it makes a PLAMLIB
9089          ## CC just makes a GrossModule.
9090          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9091          reload_cmds='$CC -r -o $output$reload_objs'
9092          hardcode_direct=no
9093        ;;
9094        motorola)
9095          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9097        ;;
9098      esac
9099      runpath_var='LD_RUN_PATH'
9100      hardcode_shlibpath_var=no
9101      ;;
9102
9103    sysv4.3*)
9104      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9105      hardcode_shlibpath_var=no
9106      export_dynamic_flag_spec='-Bexport'
9107      ;;
9108
9109    sysv4*MP*)
9110      if test -d /usr/nec; then
9111        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112        hardcode_shlibpath_var=no
9113        runpath_var=LD_RUN_PATH
9114        hardcode_runpath_var=yes
9115        ld_shlibs=yes
9116      fi
9117      ;;
9118
9119    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9120      no_undefined_flag='${wl}-z,text'
9121      archive_cmds_need_lc=no
9122      hardcode_shlibpath_var=no
9123      runpath_var='LD_RUN_PATH'
9124
9125      if test "$GCC" = yes; then
9126        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9127        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9128      else
9129        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9130        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9131      fi
9132      ;;
9133
9134    sysv5* | sco3.2v5* | sco5v6*)
9135      # Note: We can NOT use -z defs as we might desire, because we do not
9136      # link with -lc, and that would cause any symbols used from libc to
9137      # always be unresolved, which means just about no library would
9138      # ever link correctly.  If we're not using GNU ld we use -z text
9139      # though, which does catch some bad symbols but isn't as heavy-handed
9140      # as -z defs.
9141      no_undefined_flag='${wl}-z,text'
9142      allow_undefined_flag='${wl}-z,nodefs'
9143      archive_cmds_need_lc=no
9144      hardcode_shlibpath_var=no
9145      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9146      hardcode_libdir_separator=':'
9147      link_all_deplibs=yes
9148      export_dynamic_flag_spec='${wl}-Bexport'
9149      runpath_var='LD_RUN_PATH'
9150
9151      if test "$GCC" = yes; then
9152        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9153        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9154      else
9155        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9156        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9157      fi
9158      ;;
9159
9160    uts4*)
9161      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9162      hardcode_libdir_flag_spec='-L$libdir'
9163      hardcode_shlibpath_var=no
9164      ;;
9165
9166    *)
9167      ld_shlibs=no
9168      ;;
9169    esac
9170  fi
9171
9172echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9173echo "${ECHO_T}$ld_shlibs" >&6
9174test "$ld_shlibs" = no && can_build_shared=no
9175
9176#
9177# Do we need to explicitly link libc?
9178#
9179case "x$archive_cmds_need_lc" in
9180x|xyes)
9181  # Assume -lc should be added
9182  archive_cmds_need_lc=yes
9183
9184  if test "$enable_shared" = yes && test "$GCC" = yes; then
9185    case $archive_cmds in
9186    *'~'*)
9187      # FIXME: we may have to deal with multi-command sequences.
9188      ;;
9189    '$CC '*)
9190      # Test whether the compiler implicitly links with -lc since on some
9191      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9192      # to ld, don't add -lc before -lgcc.
9193      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9194echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9195      $rm conftest*
9196      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9197
9198      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9199  (eval $ac_compile) 2>&5
9200  ac_status=$?
9201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202  (exit $ac_status); } 2>conftest.err; then
9203        soname=conftest
9204        lib=conftest
9205        libobjs=conftest.$ac_objext
9206        deplibs=
9207        wl=$lt_prog_compiler_wl
9208        pic_flag=$lt_prog_compiler_pic
9209        compiler_flags=-v
9210        linker_flags=-v
9211        verstring=
9212        output_objdir=.
9213        libname=conftest
9214        lt_save_allow_undefined_flag=$allow_undefined_flag
9215        allow_undefined_flag=
9216        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9217  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9218  ac_status=$?
9219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220  (exit $ac_status); }
9221        then
9222          archive_cmds_need_lc=no
9223        else
9224          archive_cmds_need_lc=yes
9225        fi
9226        allow_undefined_flag=$lt_save_allow_undefined_flag
9227      else
9228        cat conftest.err 1>&5
9229      fi
9230      $rm conftest*
9231      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9232echo "${ECHO_T}$archive_cmds_need_lc" >&6
9233      ;;
9234    esac
9235  fi
9236  ;;
9237esac
9238
9239echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9240echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9241library_names_spec=
9242libname_spec='lib$name'
9243soname_spec=
9244shrext_cmds=".so"
9245postinstall_cmds=
9246postuninstall_cmds=
9247finish_cmds=
9248finish_eval=
9249shlibpath_var=
9250shlibpath_overrides_runpath=unknown
9251version_type=none
9252dynamic_linker="$host_os ld.so"
9253sys_lib_dlsearch_path_spec="/lib /usr/lib"
9254if test "$GCC" = yes; then
9255  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9256  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9257    # if the path contains ";" then we assume it to be the separator
9258    # otherwise default to the standard path separator (i.e. ":") - it is
9259    # assumed that no part of a normal pathname contains ";" but that should
9260    # okay in the real world where ";" in dirpaths is itself problematic.
9261    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9262  else
9263    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9264  fi
9265else
9266  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9267fi
9268need_lib_prefix=unknown
9269hardcode_into_libs=no
9270
9271# when you set need_version to no, make sure it does not cause -set_version
9272# flags to be left without arguments
9273need_version=unknown
9274
9275case $host_os in
9276aix3*)
9277  version_type=linux
9278  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9279  shlibpath_var=LIBPATH
9280
9281  # AIX 3 has no versioning support, so we append a major version to the name.
9282  soname_spec='${libname}${release}${shared_ext}$major'
9283  ;;
9284
9285aix4* | aix5*)
9286  version_type=linux
9287  need_lib_prefix=no
9288  need_version=no
9289  hardcode_into_libs=yes
9290  if test "$host_cpu" = ia64; then
9291    # AIX 5 supports IA64
9292    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9293    shlibpath_var=LD_LIBRARY_PATH
9294  else
9295    # With GCC up to 2.95.x, collect2 would create an import file
9296    # for dependence libraries.  The import file would start with
9297    # the line `#! .'.  This would cause the generated library to
9298    # depend on `.', always an invalid library.  This was fixed in
9299    # development snapshots of GCC prior to 3.0.
9300    case $host_os in
9301      aix4 | aix4.[01] | aix4.[01].*)
9302      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9303           echo ' yes '
9304           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9305        :
9306      else
9307        can_build_shared=no
9308      fi
9309      ;;
9310    esac
9311    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9312    # soname into executable. Probably we can add versioning support to
9313    # collect2, so additional links can be useful in future.
9314    if test "$aix_use_runtimelinking" = yes; then
9315      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9316      # instead of lib<name>.a to let people know that these are not
9317      # typical AIX shared libraries.
9318      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319    else
9320      # We preserve .a as extension for shared libraries through AIX4.2
9321      # and later when we are not doing run time linking.
9322      library_names_spec='${libname}${release}.a $libname.a'
9323      soname_spec='${libname}${release}${shared_ext}$major'
9324    fi
9325    shlibpath_var=LIBPATH
9326  fi
9327  ;;
9328
9329amigaos*)
9330  library_names_spec='$libname.ixlibrary $libname.a'
9331  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9332  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'
9333  ;;
9334
9335beos*)
9336  library_names_spec='${libname}${shared_ext}'
9337  dynamic_linker="$host_os ld.so"
9338  shlibpath_var=LIBRARY_PATH
9339  ;;
9340
9341bsdi[45]*)
9342  version_type=linux
9343  need_version=no
9344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345  soname_spec='${libname}${release}${shared_ext}$major'
9346  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9347  shlibpath_var=LD_LIBRARY_PATH
9348  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9349  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9350  # the default ld.so.conf also contains /usr/contrib/lib and
9351  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9352  # libtool to hard-code these into programs
9353  ;;
9354
9355cygwin* | mingw* | pw32*)
9356  version_type=windows
9357  shrext_cmds=".dll"
9358  need_version=no
9359  need_lib_prefix=no
9360
9361  case $GCC,$host_os in
9362  yes,cygwin* | yes,mingw* | yes,pw32*)
9363    library_names_spec='$libname.dll.a'
9364    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9365    postinstall_cmds='base_file=`basename \${file}`~
9366      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9367      dldir=$destdir/`dirname \$dlpath`~
9368      test -d \$dldir || mkdir -p \$dldir~
9369      $install_prog $dir/$dlname \$dldir/$dlname~
9370      chmod a+x \$dldir/$dlname'
9371    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9372      dlpath=$dir/\$dldll~
9373       $rm \$dlpath'
9374    shlibpath_overrides_runpath=yes
9375
9376    case $host_os in
9377    cygwin*)
9378      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9379      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9380      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9381      ;;
9382    mingw*)
9383      # MinGW DLLs use traditional 'lib' prefix
9384      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9385      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9386      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9387        # It is most probably a Windows format PATH printed by
9388        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9389        # path with ; separators, and with drive letters. We can handle the
9390        # drive letters (cygwin fileutils understands them), so leave them,
9391        # especially as we might pass files found there to a mingw objdump,
9392        # which wouldn't understand a cygwinified path. Ahh.
9393        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9394      else
9395        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9396      fi
9397      ;;
9398    pw32*)
9399      # pw32 DLLs use 'pw' prefix rather than 'lib'
9400      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9401      ;;
9402    esac
9403    ;;
9404
9405  *)
9406    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9407    ;;
9408  esac
9409  dynamic_linker='Win32 ld.exe'
9410  # FIXME: first we should search . and the directory the executable is in
9411  shlibpath_var=PATH
9412  ;;
9413
9414darwin* | rhapsody*)
9415  dynamic_linker="$host_os dyld"
9416  version_type=darwin
9417  need_lib_prefix=no
9418  need_version=no
9419  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9420  soname_spec='${libname}${release}${major}$shared_ext'
9421  shlibpath_overrides_runpath=yes
9422  shlibpath_var=DYLD_LIBRARY_PATH
9423  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9424  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9425  if test "$GCC" = yes; then
9426    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"`
9427  else
9428    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9429  fi
9430  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9431  ;;
9432
9433dgux*)
9434  version_type=linux
9435  need_lib_prefix=no
9436  need_version=no
9437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9438  soname_spec='${libname}${release}${shared_ext}$major'
9439  shlibpath_var=LD_LIBRARY_PATH
9440  ;;
9441
9442freebsd1*)
9443  dynamic_linker=no
9444  ;;
9445
9446kfreebsd*-gnu)
9447  version_type=linux
9448  need_lib_prefix=no
9449  need_version=no
9450  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9451  soname_spec='${libname}${release}${shared_ext}$major'
9452  shlibpath_var=LD_LIBRARY_PATH
9453  shlibpath_overrides_runpath=no
9454  hardcode_into_libs=yes
9455  dynamic_linker='GNU ld.so'
9456  ;;
9457
9458freebsd* | dragonfly*)
9459  # DragonFly does not have aout.  When/if they implement a new
9460  # versioning mechanism, adjust this.
9461  if test -x /usr/bin/objformat; then
9462    objformat=`/usr/bin/objformat`
9463  else
9464    case $host_os in
9465    freebsd[123]*) objformat=aout ;;
9466    *) objformat=elf ;;
9467    esac
9468  fi
9469  version_type=freebsd-$objformat
9470  case $version_type in
9471    freebsd-elf*)
9472      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9473      need_version=no
9474      need_lib_prefix=no
9475      ;;
9476    freebsd-*)
9477      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9478      need_version=yes
9479      ;;
9480  esac
9481  shlibpath_var=LD_LIBRARY_PATH
9482  case $host_os in
9483  freebsd2*)
9484    shlibpath_overrides_runpath=yes
9485    ;;
9486  freebsd3.[01]* | freebsdelf3.[01]*)
9487    shlibpath_overrides_runpath=yes
9488    hardcode_into_libs=yes
9489    ;;
9490  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9491  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9492    shlibpath_overrides_runpath=no
9493    hardcode_into_libs=yes
9494    ;;
9495  freebsd*) # from 4.6 on
9496    shlibpath_overrides_runpath=yes
9497    hardcode_into_libs=yes
9498    ;;
9499  esac
9500  ;;
9501
9502gnu*)
9503  version_type=linux
9504  need_lib_prefix=no
9505  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
9509  hardcode_into_libs=yes
9510  ;;
9511
9512hpux9* | hpux10* | hpux11*)
9513  # Give a soname corresponding to the major version so that dld.sl refuses to
9514  # link against other versions.
9515  version_type=sunos
9516  need_lib_prefix=no
9517  need_version=no
9518  case $host_cpu in
9519  ia64*)
9520    shrext_cmds='.so'
9521    hardcode_into_libs=yes
9522    dynamic_linker="$host_os dld.so"
9523    shlibpath_var=LD_LIBRARY_PATH
9524    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9525    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9526    soname_spec='${libname}${release}${shared_ext}$major'
9527    if test "X$HPUX_IA64_MODE" = X32; then
9528      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9529    else
9530      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9531    fi
9532    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9533    ;;
9534   hppa*64*)
9535     shrext_cmds='.sl'
9536     hardcode_into_libs=yes
9537     dynamic_linker="$host_os dld.sl"
9538     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9539     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541     soname_spec='${libname}${release}${shared_ext}$major'
9542     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9543     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9544     ;;
9545   *)
9546    shrext_cmds='.sl'
9547    dynamic_linker="$host_os dld.sl"
9548    shlibpath_var=SHLIB_PATH
9549    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9550    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551    soname_spec='${libname}${release}${shared_ext}$major'
9552    ;;
9553  esac
9554  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9555  postinstall_cmds='chmod 555 $lib'
9556  ;;
9557
9558interix3*)
9559  version_type=linux
9560  need_lib_prefix=no
9561  need_version=no
9562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9563  soname_spec='${libname}${release}${shared_ext}$major'
9564  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9565  shlibpath_var=LD_LIBRARY_PATH
9566  shlibpath_overrides_runpath=no
9567  hardcode_into_libs=yes
9568  ;;
9569
9570irix5* | irix6* | nonstopux*)
9571  case $host_os in
9572    nonstopux*) version_type=nonstopux ;;
9573    *)
9574        if test "$lt_cv_prog_gnu_ld" = yes; then
9575                version_type=linux
9576        else
9577                version_type=irix
9578        fi ;;
9579  esac
9580  need_lib_prefix=no
9581  need_version=no
9582  soname_spec='${libname}${release}${shared_ext}$major'
9583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9584  case $host_os in
9585  irix5* | nonstopux*)
9586    libsuff= shlibsuff=
9587    ;;
9588  *)
9589    case $LD in # libtool.m4 will add one of these switches to LD
9590    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9591      libsuff= shlibsuff= libmagic=32-bit;;
9592    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9593      libsuff=32 shlibsuff=N32 libmagic=N32;;
9594    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9595      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9596    *) libsuff= shlibsuff= libmagic=never-match;;
9597    esac
9598    ;;
9599  esac
9600  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9601  shlibpath_overrides_runpath=no
9602  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9603  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9604  hardcode_into_libs=yes
9605  ;;
9606
9607# No shared lib support for Linux oldld, aout, or coff.
9608linux*oldld* | linux*aout* | linux*coff*)
9609  dynamic_linker=no
9610  ;;
9611
9612# This must be Linux ELF.
9613linux*)
9614  version_type=linux
9615  need_lib_prefix=no
9616  need_version=no
9617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618  soname_spec='${libname}${release}${shared_ext}$major'
9619  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9620  shlibpath_var=LD_LIBRARY_PATH
9621  shlibpath_overrides_runpath=no
9622  # This implies no fast_install, which is unacceptable.
9623  # Some rework will be needed to allow for fast_install
9624  # before this can be enabled.
9625  hardcode_into_libs=yes
9626
9627  # Append ld.so.conf contents to the search path
9628  if test -f /etc/ld.so.conf; then
9629    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' ' '`
9630    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9631  fi
9632
9633  # We used to test for /lib/ld.so.1 and disable shared libraries on
9634  # powerpc, because MkLinux only supported shared libraries with the
9635  # GNU dynamic linker.  Since this was broken with cross compilers,
9636  # most powerpc-linux boxes support dynamic linking these days and
9637  # people can always --disable-shared, the test was removed, and we
9638  # assume the GNU/Linux dynamic linker is in use.
9639  dynamic_linker='GNU/Linux ld.so'
9640  ;;
9641
9642knetbsd*-gnu)
9643  version_type=linux
9644  need_lib_prefix=no
9645  need_version=no
9646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9647  soname_spec='${libname}${release}${shared_ext}$major'
9648  shlibpath_var=LD_LIBRARY_PATH
9649  shlibpath_overrides_runpath=no
9650  hardcode_into_libs=yes
9651  dynamic_linker='GNU ld.so'
9652  ;;
9653
9654netbsd*)
9655  version_type=sunos
9656  need_lib_prefix=no
9657  need_version=no
9658  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9659    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9660    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9661    dynamic_linker='NetBSD (a.out) ld.so'
9662  else
9663    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9664    soname_spec='${libname}${release}${shared_ext}$major'
9665    dynamic_linker='NetBSD ld.elf_so'
9666  fi
9667  shlibpath_var=LD_LIBRARY_PATH
9668  shlibpath_overrides_runpath=yes
9669  hardcode_into_libs=yes
9670  ;;
9671
9672newsos6)
9673  version_type=linux
9674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675  shlibpath_var=LD_LIBRARY_PATH
9676  shlibpath_overrides_runpath=yes
9677  ;;
9678
9679nto-qnx*)
9680  version_type=linux
9681  need_lib_prefix=no
9682  need_version=no
9683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684  soname_spec='${libname}${release}${shared_ext}$major'
9685  shlibpath_var=LD_LIBRARY_PATH
9686  shlibpath_overrides_runpath=yes
9687  ;;
9688
9689openbsd*)
9690  version_type=sunos
9691  sys_lib_dlsearch_path_spec="/usr/lib"
9692  need_lib_prefix=no
9693  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9694  case $host_os in
9695    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9696    *)                         need_version=no  ;;
9697  esac
9698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9699  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9700  shlibpath_var=LD_LIBRARY_PATH
9701  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9702    case $host_os in
9703      openbsd2.[89] | openbsd2.[89].*)
9704        shlibpath_overrides_runpath=no
9705        ;;
9706      *)
9707        shlibpath_overrides_runpath=yes
9708        ;;
9709      esac
9710  else
9711    shlibpath_overrides_runpath=yes
9712  fi
9713  ;;
9714
9715os2*)
9716  libname_spec='$name'
9717  shrext_cmds=".dll"
9718  need_lib_prefix=no
9719  library_names_spec='$libname${shared_ext} $libname.a'
9720  dynamic_linker='OS/2 ld.exe'
9721  shlibpath_var=LIBPATH
9722  ;;
9723
9724osf3* | osf4* | osf5*)
9725  version_type=osf
9726  need_lib_prefix=no
9727  need_version=no
9728  soname_spec='${libname}${release}${shared_ext}$major'
9729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730  shlibpath_var=LD_LIBRARY_PATH
9731  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9732  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9733  ;;
9734
9735solaris*)
9736  version_type=linux
9737  need_lib_prefix=no
9738  need_version=no
9739  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740  soname_spec='${libname}${release}${shared_ext}$major'
9741  shlibpath_var=LD_LIBRARY_PATH
9742  shlibpath_overrides_runpath=yes
9743  hardcode_into_libs=yes
9744  # ldd complains unless libraries are executable
9745  postinstall_cmds='chmod +x $lib'
9746  ;;
9747
9748sunos4*)
9749  version_type=sunos
9750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9751  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9752  shlibpath_var=LD_LIBRARY_PATH
9753  shlibpath_overrides_runpath=yes
9754  if test "$with_gnu_ld" = yes; then
9755    need_lib_prefix=no
9756  fi
9757  need_version=yes
9758  ;;
9759
9760sysv4 | sysv4.3*)
9761  version_type=linux
9762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763  soname_spec='${libname}${release}${shared_ext}$major'
9764  shlibpath_var=LD_LIBRARY_PATH
9765  case $host_vendor in
9766    sni)
9767      shlibpath_overrides_runpath=no
9768      need_lib_prefix=no
9769      export_dynamic_flag_spec='${wl}-Blargedynsym'
9770      runpath_var=LD_RUN_PATH
9771      ;;
9772    siemens)
9773      need_lib_prefix=no
9774      ;;
9775    motorola)
9776      need_lib_prefix=no
9777      need_version=no
9778      shlibpath_overrides_runpath=no
9779      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9780      ;;
9781  esac
9782  ;;
9783
9784sysv4*MP*)
9785  if test -d /usr/nec ;then
9786    version_type=linux
9787    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9788    soname_spec='$libname${shared_ext}.$major'
9789    shlibpath_var=LD_LIBRARY_PATH
9790  fi
9791  ;;
9792
9793sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9794  version_type=freebsd-elf
9795  need_lib_prefix=no
9796  need_version=no
9797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9798  soname_spec='${libname}${release}${shared_ext}$major'
9799  shlibpath_var=LD_LIBRARY_PATH
9800  hardcode_into_libs=yes
9801  if test "$with_gnu_ld" = yes; then
9802    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9803    shlibpath_overrides_runpath=no
9804  else
9805    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9806    shlibpath_overrides_runpath=yes
9807    case $host_os in
9808      sco3.2v5*)
9809        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9810        ;;
9811    esac
9812  fi
9813  sys_lib_dlsearch_path_spec='/usr/lib'
9814  ;;
9815
9816uts4*)
9817  version_type=linux
9818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819  soname_spec='${libname}${release}${shared_ext}$major'
9820  shlibpath_var=LD_LIBRARY_PATH
9821  ;;
9822
9823*)
9824  dynamic_linker=no
9825  ;;
9826esac
9827echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9828echo "${ECHO_T}$dynamic_linker" >&6
9829test "$dynamic_linker" = no && can_build_shared=no
9830
9831variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9832if test "$GCC" = yes; then
9833  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9834fi
9835
9836echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9837echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9838hardcode_action=
9839if test -n "$hardcode_libdir_flag_spec" || \
9840   test -n "$runpath_var" || \
9841   test "X$hardcode_automatic" = "Xyes" ; then
9842
9843  # We can hardcode non-existant directories.
9844  if test "$hardcode_direct" != no &&
9845     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9846     # have to relink, otherwise we might link with an installed library
9847     # when we should be linking with a yet-to-be-installed one
9848     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9849     test "$hardcode_minus_L" != no; then
9850    # Linking always hardcodes the temporary library directory.
9851    hardcode_action=relink
9852  else
9853    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9854    hardcode_action=immediate
9855  fi
9856else
9857  # We cannot hardcode anything, or else we can only hardcode existing
9858  # directories.
9859  hardcode_action=unsupported
9860fi
9861echo "$as_me:$LINENO: result: $hardcode_action" >&5
9862echo "${ECHO_T}$hardcode_action" >&6
9863
9864if test "$hardcode_action" = relink; then
9865  # Fast installation is not supported
9866  enable_fast_install=no
9867elif test "$shlibpath_overrides_runpath" = yes ||
9868     test "$enable_shared" = no; then
9869  # Fast installation is not necessary
9870  enable_fast_install=needless
9871fi
9872
9873striplib=
9874old_striplib=
9875echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9876echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9877if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9878  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9879  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9880  echo "$as_me:$LINENO: result: yes" >&5
9881echo "${ECHO_T}yes" >&6
9882else
9883# FIXME - insert some real tests, host_os isn't really good enough
9884  case $host_os in
9885   darwin*)
9886       if test -n "$STRIP" ; then
9887         striplib="$STRIP -x"
9888         echo "$as_me:$LINENO: result: yes" >&5
9889echo "${ECHO_T}yes" >&6
9890       else
9891  echo "$as_me:$LINENO: result: no" >&5
9892echo "${ECHO_T}no" >&6
9893fi
9894       ;;
9895   *)
9896  echo "$as_me:$LINENO: result: no" >&5
9897echo "${ECHO_T}no" >&6
9898    ;;
9899  esac
9900fi
9901
9902if test "x$enable_dlopen" != xyes; then
9903  enable_dlopen=unknown
9904  enable_dlopen_self=unknown
9905  enable_dlopen_self_static=unknown
9906else
9907  lt_cv_dlopen=no
9908  lt_cv_dlopen_libs=
9909
9910  case $host_os in
9911  beos*)
9912    lt_cv_dlopen="load_add_on"
9913    lt_cv_dlopen_libs=
9914    lt_cv_dlopen_self=yes
9915    ;;
9916
9917  mingw* | pw32*)
9918    lt_cv_dlopen="LoadLibrary"
9919    lt_cv_dlopen_libs=
9920   ;;
9921
9922  cygwin*)
9923    lt_cv_dlopen="dlopen"
9924    lt_cv_dlopen_libs=
9925   ;;
9926
9927  darwin*)
9928  # if libdl is installed we need to link against it
9929    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9930echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9931if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9932  echo $ECHO_N "(cached) $ECHO_C" >&6
9933else
9934  ac_check_lib_save_LIBS=$LIBS
9935LIBS="-ldl  $LIBS"
9936cat >conftest.$ac_ext <<_ACEOF
9937/* confdefs.h.  */
9938_ACEOF
9939cat confdefs.h >>conftest.$ac_ext
9940cat >>conftest.$ac_ext <<_ACEOF
9941/* end confdefs.h.  */
9942
9943/* Override any gcc2 internal prototype to avoid an error.  */
9944#ifdef __cplusplus
9945extern "C"
9946#endif
9947/* We use char because int might match the return type of a gcc2
9948   builtin and then its argument prototype would still apply.  */
9949char dlopen ();
9950int
9951main ()
9952{
9953dlopen ();
9954  ;
9955  return 0;
9956}
9957_ACEOF
9958rm -f conftest.$ac_objext conftest$ac_exeext
9959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9960  (eval $ac_link) 2>conftest.er1
9961  ac_status=$?
9962  grep -v '^ *+' conftest.er1 >conftest.err
9963  rm -f conftest.er1
9964  cat conftest.err >&5
9965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966  (exit $ac_status); } &&
9967         { ac_try='test -z "$ac_c_werror_flag"
9968                         || test ! -s conftest.err'
9969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970  (eval $ac_try) 2>&5
9971  ac_status=$?
9972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); }; } &&
9974         { ac_try='test -s conftest$ac_exeext'
9975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976  (eval $ac_try) 2>&5
9977  ac_status=$?
9978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979  (exit $ac_status); }; }; then
9980  ac_cv_lib_dl_dlopen=yes
9981else
9982  echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
9985ac_cv_lib_dl_dlopen=no
9986fi
9987rm -f conftest.err conftest.$ac_objext \
9988      conftest$ac_exeext conftest.$ac_ext
9989LIBS=$ac_check_lib_save_LIBS
9990fi
9991echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9992echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9993if test $ac_cv_lib_dl_dlopen = yes; then
9994  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9995else
9996
9997    lt_cv_dlopen="dyld"
9998    lt_cv_dlopen_libs=
9999    lt_cv_dlopen_self=yes
10000
10001fi
10002
10003   ;;
10004
10005  *)
10006    echo "$as_me:$LINENO: checking for shl_load" >&5
10007echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10008if test "${ac_cv_func_shl_load+set}" = set; then
10009  echo $ECHO_N "(cached) $ECHO_C" >&6
10010else
10011  cat >conftest.$ac_ext <<_ACEOF
10012/* confdefs.h.  */
10013_ACEOF
10014cat confdefs.h >>conftest.$ac_ext
10015cat >>conftest.$ac_ext <<_ACEOF
10016/* end confdefs.h.  */
10017/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10018   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10019#define shl_load innocuous_shl_load
10020
10021/* System header to define __stub macros and hopefully few prototypes,
10022    which can conflict with char shl_load (); below.
10023    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10024    <limits.h> exists even on freestanding compilers.  */
10025
10026#ifdef __STDC__
10027# include <limits.h>
10028#else
10029# include <assert.h>
10030#endif
10031
10032#undef shl_load
10033
10034/* Override any gcc2 internal prototype to avoid an error.  */
10035#ifdef __cplusplus
10036extern "C"
10037{
10038#endif
10039/* We use char because int might match the return type of a gcc2
10040   builtin and then its argument prototype would still apply.  */
10041char shl_load ();
10042/* The GNU C library defines this for functions which it implements
10043    to always fail with ENOSYS.  Some functions are actually named
10044    something starting with __ and the normal name is an alias.  */
10045#if defined (__stub_shl_load) || defined (__stub___shl_load)
10046choke me
10047#else
10048char (*f) () = shl_load;
10049#endif
10050#ifdef __cplusplus
10051}
10052#endif
10053
10054int
10055main ()
10056{
10057return f != shl_load;
10058  ;
10059  return 0;
10060}
10061_ACEOF
10062rm -f conftest.$ac_objext conftest$ac_exeext
10063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10064  (eval $ac_link) 2>conftest.er1
10065  ac_status=$?
10066  grep -v '^ *+' conftest.er1 >conftest.err
10067  rm -f conftest.er1
10068  cat conftest.err >&5
10069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070  (exit $ac_status); } &&
10071         { ac_try='test -z "$ac_c_werror_flag"
10072                         || test ! -s conftest.err'
10073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074  (eval $ac_try) 2>&5
10075  ac_status=$?
10076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077  (exit $ac_status); }; } &&
10078         { ac_try='test -s conftest$ac_exeext'
10079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080  (eval $ac_try) 2>&5
10081  ac_status=$?
10082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083  (exit $ac_status); }; }; then
10084  ac_cv_func_shl_load=yes
10085else
10086  echo "$as_me: failed program was:" >&5
10087sed 's/^/| /' conftest.$ac_ext >&5
10088
10089ac_cv_func_shl_load=no
10090fi
10091rm -f conftest.err conftest.$ac_objext \
10092      conftest$ac_exeext conftest.$ac_ext
10093fi
10094echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10095echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10096if test $ac_cv_func_shl_load = yes; then
10097  lt_cv_dlopen="shl_load"
10098else
10099  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10100echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10101if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10102  echo $ECHO_N "(cached) $ECHO_C" >&6
10103else
10104  ac_check_lib_save_LIBS=$LIBS
10105LIBS="-ldld  $LIBS"
10106cat >conftest.$ac_ext <<_ACEOF
10107/* confdefs.h.  */
10108_ACEOF
10109cat confdefs.h >>conftest.$ac_ext
10110cat >>conftest.$ac_ext <<_ACEOF
10111/* end confdefs.h.  */
10112
10113/* Override any gcc2 internal prototype to avoid an error.  */
10114#ifdef __cplusplus
10115extern "C"
10116#endif
10117/* We use char because int might match the return type of a gcc2
10118   builtin and then its argument prototype would still apply.  */
10119char shl_load ();
10120int
10121main ()
10122{
10123shl_load ();
10124  ;
10125  return 0;
10126}
10127_ACEOF
10128rm -f conftest.$ac_objext conftest$ac_exeext
10129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10130  (eval $ac_link) 2>conftest.er1
10131  ac_status=$?
10132  grep -v '^ *+' conftest.er1 >conftest.err
10133  rm -f conftest.er1
10134  cat conftest.err >&5
10135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136  (exit $ac_status); } &&
10137         { ac_try='test -z "$ac_c_werror_flag"
10138                         || test ! -s conftest.err'
10139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140  (eval $ac_try) 2>&5
10141  ac_status=$?
10142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143  (exit $ac_status); }; } &&
10144         { ac_try='test -s conftest$ac_exeext'
10145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146  (eval $ac_try) 2>&5
10147  ac_status=$?
10148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149  (exit $ac_status); }; }; then
10150  ac_cv_lib_dld_shl_load=yes
10151else
10152  echo "$as_me: failed program was:" >&5
10153sed 's/^/| /' conftest.$ac_ext >&5
10154
10155ac_cv_lib_dld_shl_load=no
10156fi
10157rm -f conftest.err conftest.$ac_objext \
10158      conftest$ac_exeext conftest.$ac_ext
10159LIBS=$ac_check_lib_save_LIBS
10160fi
10161echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10162echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10163if test $ac_cv_lib_dld_shl_load = yes; then
10164  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10165else
10166  echo "$as_me:$LINENO: checking for dlopen" >&5
10167echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10168if test "${ac_cv_func_dlopen+set}" = set; then
10169  echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171  cat >conftest.$ac_ext <<_ACEOF
10172/* confdefs.h.  */
10173_ACEOF
10174cat confdefs.h >>conftest.$ac_ext
10175cat >>conftest.$ac_ext <<_ACEOF
10176/* end confdefs.h.  */
10177/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10178   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10179#define dlopen innocuous_dlopen
10180
10181/* System header to define __stub macros and hopefully few prototypes,
10182    which can conflict with char dlopen (); below.
10183    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184    <limits.h> exists even on freestanding compilers.  */
10185
10186#ifdef __STDC__
10187# include <limits.h>
10188#else
10189# include <assert.h>
10190#endif
10191
10192#undef dlopen
10193
10194/* Override any gcc2 internal prototype to avoid an error.  */
10195#ifdef __cplusplus
10196extern "C"
10197{
10198#endif
10199/* We use char because int might match the return type of a gcc2
10200   builtin and then its argument prototype would still apply.  */
10201char dlopen ();
10202/* The GNU C library defines this for functions which it implements
10203    to always fail with ENOSYS.  Some functions are actually named
10204    something starting with __ and the normal name is an alias.  */
10205#if defined (__stub_dlopen) || defined (__stub___dlopen)
10206choke me
10207#else
10208char (*f) () = dlopen;
10209#endif
10210#ifdef __cplusplus
10211}
10212#endif
10213
10214int
10215main ()
10216{
10217return f != dlopen;
10218  ;
10219  return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext conftest$ac_exeext
10223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224  (eval $ac_link) 2>conftest.er1
10225  ac_status=$?
10226  grep -v '^ *+' conftest.er1 >conftest.err
10227  rm -f conftest.er1
10228  cat conftest.err >&5
10229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230  (exit $ac_status); } &&
10231         { ac_try='test -z "$ac_c_werror_flag"
10232                         || test ! -s conftest.err'
10233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234  (eval $ac_try) 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); }; } &&
10238         { ac_try='test -s conftest$ac_exeext'
10239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240  (eval $ac_try) 2>&5
10241  ac_status=$?
10242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243  (exit $ac_status); }; }; then
10244  ac_cv_func_dlopen=yes
10245else
10246  echo "$as_me: failed program was:" >&5
10247sed 's/^/| /' conftest.$ac_ext >&5
10248
10249ac_cv_func_dlopen=no
10250fi
10251rm -f conftest.err conftest.$ac_objext \
10252      conftest$ac_exeext conftest.$ac_ext
10253fi
10254echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10255echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10256if test $ac_cv_func_dlopen = yes; then
10257  lt_cv_dlopen="dlopen"
10258else
10259  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10260echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10261if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10262  echo $ECHO_N "(cached) $ECHO_C" >&6
10263else
10264  ac_check_lib_save_LIBS=$LIBS
10265LIBS="-ldl  $LIBS"
10266cat >conftest.$ac_ext <<_ACEOF
10267/* confdefs.h.  */
10268_ACEOF
10269cat confdefs.h >>conftest.$ac_ext
10270cat >>conftest.$ac_ext <<_ACEOF
10271/* end confdefs.h.  */
10272
10273/* Override any gcc2 internal prototype to avoid an error.  */
10274#ifdef __cplusplus
10275extern "C"
10276#endif
10277/* We use char because int might match the return type of a gcc2
10278   builtin and then its argument prototype would still apply.  */
10279char dlopen ();
10280int
10281main ()
10282{
10283dlopen ();
10284  ;
10285  return 0;
10286}
10287_ACEOF
10288rm -f conftest.$ac_objext conftest$ac_exeext
10289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290  (eval $ac_link) 2>conftest.er1
10291  ac_status=$?
10292  grep -v '^ *+' conftest.er1 >conftest.err
10293  rm -f conftest.er1
10294  cat conftest.err >&5
10295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); } &&
10297         { ac_try='test -z "$ac_c_werror_flag"
10298                         || test ! -s conftest.err'
10299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300  (eval $ac_try) 2>&5
10301  ac_status=$?
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); }; } &&
10304         { ac_try='test -s conftest$ac_exeext'
10305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306  (eval $ac_try) 2>&5
10307  ac_status=$?
10308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309  (exit $ac_status); }; }; then
10310  ac_cv_lib_dl_dlopen=yes
10311else
10312  echo "$as_me: failed program was:" >&5
10313sed 's/^/| /' conftest.$ac_ext >&5
10314
10315ac_cv_lib_dl_dlopen=no
10316fi
10317rm -f conftest.err conftest.$ac_objext \
10318      conftest$ac_exeext conftest.$ac_ext
10319LIBS=$ac_check_lib_save_LIBS
10320fi
10321echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10322echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10323if test $ac_cv_lib_dl_dlopen = yes; then
10324  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10325else
10326  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10327echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10328if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10329  echo $ECHO_N "(cached) $ECHO_C" >&6
10330else
10331  ac_check_lib_save_LIBS=$LIBS
10332LIBS="-lsvld  $LIBS"
10333cat >conftest.$ac_ext <<_ACEOF
10334/* confdefs.h.  */
10335_ACEOF
10336cat confdefs.h >>conftest.$ac_ext
10337cat >>conftest.$ac_ext <<_ACEOF
10338/* end confdefs.h.  */
10339
10340/* Override any gcc2 internal prototype to avoid an error.  */
10341#ifdef __cplusplus
10342extern "C"
10343#endif
10344/* We use char because int might match the return type of a gcc2
10345   builtin and then its argument prototype would still apply.  */
10346char dlopen ();
10347int
10348main ()
10349{
10350dlopen ();
10351  ;
10352  return 0;
10353}
10354_ACEOF
10355rm -f conftest.$ac_objext conftest$ac_exeext
10356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357  (eval $ac_link) 2>conftest.er1
10358  ac_status=$?
10359  grep -v '^ *+' conftest.er1 >conftest.err
10360  rm -f conftest.er1
10361  cat conftest.err >&5
10362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363  (exit $ac_status); } &&
10364         { ac_try='test -z "$ac_c_werror_flag"
10365                         || test ! -s conftest.err'
10366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367  (eval $ac_try) 2>&5
10368  ac_status=$?
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); }; } &&
10371         { ac_try='test -s conftest$ac_exeext'
10372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373  (eval $ac_try) 2>&5
10374  ac_status=$?
10375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376  (exit $ac_status); }; }; then
10377  ac_cv_lib_svld_dlopen=yes
10378else
10379  echo "$as_me: failed program was:" >&5
10380sed 's/^/| /' conftest.$ac_ext >&5
10381
10382ac_cv_lib_svld_dlopen=no
10383fi
10384rm -f conftest.err conftest.$ac_objext \
10385      conftest$ac_exeext conftest.$ac_ext
10386LIBS=$ac_check_lib_save_LIBS
10387fi
10388echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10389echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10390if test $ac_cv_lib_svld_dlopen = yes; then
10391  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10392else
10393  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10394echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10395if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10396  echo $ECHO_N "(cached) $ECHO_C" >&6
10397else
10398  ac_check_lib_save_LIBS=$LIBS
10399LIBS="-ldld  $LIBS"
10400cat >conftest.$ac_ext <<_ACEOF
10401/* confdefs.h.  */
10402_ACEOF
10403cat confdefs.h >>conftest.$ac_ext
10404cat >>conftest.$ac_ext <<_ACEOF
10405/* end confdefs.h.  */
10406
10407/* Override any gcc2 internal prototype to avoid an error.  */
10408#ifdef __cplusplus
10409extern "C"
10410#endif
10411/* We use char because int might match the return type of a gcc2
10412   builtin and then its argument prototype would still apply.  */
10413char dld_link ();
10414int
10415main ()
10416{
10417dld_link ();
10418  ;
10419  return 0;
10420}
10421_ACEOF
10422rm -f conftest.$ac_objext conftest$ac_exeext
10423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10424  (eval $ac_link) 2>conftest.er1
10425  ac_status=$?
10426  grep -v '^ *+' conftest.er1 >conftest.err
10427  rm -f conftest.er1
10428  cat conftest.err >&5
10429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430  (exit $ac_status); } &&
10431         { ac_try='test -z "$ac_c_werror_flag"
10432                         || test ! -s conftest.err'
10433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434  (eval $ac_try) 2>&5
10435  ac_status=$?
10436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437  (exit $ac_status); }; } &&
10438         { ac_try='test -s conftest$ac_exeext'
10439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440  (eval $ac_try) 2>&5
10441  ac_status=$?
10442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443  (exit $ac_status); }; }; then
10444  ac_cv_lib_dld_dld_link=yes
10445else
10446  echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
10449ac_cv_lib_dld_dld_link=no
10450fi
10451rm -f conftest.err conftest.$ac_objext \
10452      conftest$ac_exeext conftest.$ac_ext
10453LIBS=$ac_check_lib_save_LIBS
10454fi
10455echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10456echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10457if test $ac_cv_lib_dld_dld_link = yes; then
10458  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10459fi
10460
10461
10462fi
10463
10464
10465fi
10466
10467
10468fi
10469
10470
10471fi
10472
10473
10474fi
10475
10476    ;;
10477  esac
10478
10479  if test "x$lt_cv_dlopen" != xno; then
10480    enable_dlopen=yes
10481  else
10482    enable_dlopen=no
10483  fi
10484
10485  case $lt_cv_dlopen in
10486  dlopen)
10487    save_CPPFLAGS="$CPPFLAGS"
10488    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10489
10490    save_LDFLAGS="$LDFLAGS"
10491    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10492
10493    save_LIBS="$LIBS"
10494    LIBS="$lt_cv_dlopen_libs $LIBS"
10495
10496    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10497echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10498if test "${lt_cv_dlopen_self+set}" = set; then
10499  echo $ECHO_N "(cached) $ECHO_C" >&6
10500else
10501          if test "$cross_compiling" = yes; then :
10502  lt_cv_dlopen_self=cross
10503else
10504  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10505  lt_status=$lt_dlunknown
10506  cat > conftest.$ac_ext <<EOF
10507#line 10507 "configure"
10508#include "confdefs.h"
10509
10510#if HAVE_DLFCN_H
10511#include <dlfcn.h>
10512#endif
10513
10514#include <stdio.h>
10515
10516#ifdef RTLD_GLOBAL
10517#  define LT_DLGLOBAL           RTLD_GLOBAL
10518#else
10519#  ifdef DL_GLOBAL
10520#    define LT_DLGLOBAL         DL_GLOBAL
10521#  else
10522#    define LT_DLGLOBAL         0
10523#  endif
10524#endif
10525
10526/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10527   find out it does not work in some platform. */
10528#ifndef LT_DLLAZY_OR_NOW
10529#  ifdef RTLD_LAZY
10530#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10531#  else
10532#    ifdef DL_LAZY
10533#      define LT_DLLAZY_OR_NOW          DL_LAZY
10534#    else
10535#      ifdef RTLD_NOW
10536#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10537#      else
10538#        ifdef DL_NOW
10539#          define LT_DLLAZY_OR_NOW      DL_NOW
10540#        else
10541#          define LT_DLLAZY_OR_NOW      0
10542#        endif
10543#      endif
10544#    endif
10545#  endif
10546#endif
10547
10548#ifdef __cplusplus
10549extern "C" void exit (int);
10550#endif
10551
10552void fnord() { int i=42;}
10553int main ()
10554{
10555  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10556  int status = $lt_dlunknown;
10557
10558  if (self)
10559    {
10560      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10561      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10562      /* dlclose (self); */
10563    }
10564  else
10565    puts (dlerror ());
10566
10567    exit (status);
10568}
10569EOF
10570  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571  (eval $ac_link) 2>&5
10572  ac_status=$?
10573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10575    (./conftest; exit; ) >&5 2>/dev/null
10576    lt_status=$?
10577    case x$lt_status in
10578      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10579      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10580      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10581    esac
10582  else :
10583    # compilation failed
10584    lt_cv_dlopen_self=no
10585  fi
10586fi
10587rm -fr conftest*
10588
10589
10590fi
10591echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10592echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10593
10594    if test "x$lt_cv_dlopen_self" = xyes; then
10595      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10596      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10597echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10598if test "${lt_cv_dlopen_self_static+set}" = set; then
10599  echo $ECHO_N "(cached) $ECHO_C" >&6
10600else
10601          if test "$cross_compiling" = yes; then :
10602  lt_cv_dlopen_self_static=cross
10603else
10604  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10605  lt_status=$lt_dlunknown
10606  cat > conftest.$ac_ext <<EOF
10607#line 10607 "configure"
10608#include "confdefs.h"
10609
10610#if HAVE_DLFCN_H
10611#include <dlfcn.h>
10612#endif
10613
10614#include <stdio.h>
10615
10616#ifdef RTLD_GLOBAL
10617#  define LT_DLGLOBAL           RTLD_GLOBAL
10618#else
10619#  ifdef DL_GLOBAL
10620#    define LT_DLGLOBAL         DL_GLOBAL
10621#  else
10622#    define LT_DLGLOBAL         0
10623#  endif
10624#endif
10625
10626/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10627   find out it does not work in some platform. */
10628#ifndef LT_DLLAZY_OR_NOW
10629#  ifdef RTLD_LAZY
10630#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10631#  else
10632#    ifdef DL_LAZY
10633#      define LT_DLLAZY_OR_NOW          DL_LAZY
10634#    else
10635#      ifdef RTLD_NOW
10636#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10637#      else
10638#        ifdef DL_NOW
10639#          define LT_DLLAZY_OR_NOW      DL_NOW
10640#        else
10641#          define LT_DLLAZY_OR_NOW      0
10642#        endif
10643#      endif
10644#    endif
10645#  endif
10646#endif
10647
10648#ifdef __cplusplus
10649extern "C" void exit (int);
10650#endif
10651
10652void fnord() { int i=42;}
10653int main ()
10654{
10655  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10656  int status = $lt_dlunknown;
10657
10658  if (self)
10659    {
10660      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10661      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10662      /* dlclose (self); */
10663    }
10664  else
10665    puts (dlerror ());
10666
10667    exit (status);
10668}
10669EOF
10670  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10671  (eval $ac_link) 2>&5
10672  ac_status=$?
10673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10675    (./conftest; exit; ) >&5 2>/dev/null
10676    lt_status=$?
10677    case x$lt_status in
10678      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10679      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10680      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10681    esac
10682  else :
10683    # compilation failed
10684    lt_cv_dlopen_self_static=no
10685  fi
10686fi
10687rm -fr conftest*
10688
10689
10690fi
10691echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10692echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10693    fi
10694
10695    CPPFLAGS="$save_CPPFLAGS"
10696    LDFLAGS="$save_LDFLAGS"
10697    LIBS="$save_LIBS"
10698    ;;
10699  esac
10700
10701  case $lt_cv_dlopen_self in
10702  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10703  *) enable_dlopen_self=unknown ;;
10704  esac
10705
10706  case $lt_cv_dlopen_self_static in
10707  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10708  *) enable_dlopen_self_static=unknown ;;
10709  esac
10710fi
10711
10712
10713# Report which library types will actually be built
10714echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10715echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10716echo "$as_me:$LINENO: result: $can_build_shared" >&5
10717echo "${ECHO_T}$can_build_shared" >&6
10718
10719echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10720echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10721test "$can_build_shared" = "no" && enable_shared=no
10722
10723# On AIX, shared libraries and static libraries use the same namespace, and
10724# are all built from PIC.
10725case $host_os in
10726aix3*)
10727  test "$enable_shared" = yes && enable_static=no
10728  if test -n "$RANLIB"; then
10729    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10730    postinstall_cmds='$RANLIB $lib'
10731  fi
10732  ;;
10733
10734aix4* | aix5*)
10735  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10736    test "$enable_shared" = yes && enable_static=no
10737  fi
10738    ;;
10739esac
10740echo "$as_me:$LINENO: result: $enable_shared" >&5
10741echo "${ECHO_T}$enable_shared" >&6
10742
10743echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10744echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10745# Make sure either enable_shared or enable_static is yes.
10746test "$enable_shared" = yes || enable_static=yes
10747echo "$as_me:$LINENO: result: $enable_static" >&5
10748echo "${ECHO_T}$enable_static" >&6
10749
10750# The else clause should only fire when bootstrapping the
10751# libtool distribution, otherwise you forgot to ship ltmain.sh
10752# with your package, and you will get complaints that there are
10753# no rules to generate ltmain.sh.
10754if test -f "$ltmain"; then
10755  # See if we are running on zsh, and set the options which allow our commands through
10756  # without removal of \ escapes.
10757  if test -n "${ZSH_VERSION+set}" ; then
10758    setopt NO_GLOB_SUBST
10759  fi
10760  # Now quote all the things that may contain metacharacters while being
10761  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10762  # variables and quote the copies for generation of the libtool script.
10763  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10764    SED SHELL STRIP \
10765    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10766    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10767    deplibs_check_method reload_flag reload_cmds need_locks \
10768    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10769    lt_cv_sys_global_symbol_to_c_name_address \
10770    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10771    old_postinstall_cmds old_postuninstall_cmds \
10772    compiler \
10773    CC \
10774    LD \
10775    lt_prog_compiler_wl \
10776    lt_prog_compiler_pic \
10777    lt_prog_compiler_static \
10778    lt_prog_compiler_no_builtin_flag \
10779    export_dynamic_flag_spec \
10780    thread_safe_flag_spec \
10781    whole_archive_flag_spec \
10782    enable_shared_with_static_runtimes \
10783    old_archive_cmds \
10784    old_archive_from_new_cmds \