source: ThirdParty/Lapack/trunk/configure @ 1411

Last change on this file since 1411 was 1411, checked in by stefan, 11 years ago

revert my recent changes related to BSPsplit after copying them into branches

  • Property svn:executable set to *
File size: 834.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyLapack 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 DLAMCH_FFLAGS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS FLIBS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE COIN_HAS_LAPACK_TRUE COIN_HAS_LAPACK_FALSE COIN_BUILD_LAPACK_TRUE COIN_BUILD_LAPACK_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
977ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
978ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
979ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyLapack 0.0 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyLapack 0.0:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-lapack compile this project (Lapack) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095
1096Optional Packages:
1097  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1098  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1099  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1100  --with-lapack-checklevel
1101                          specify the sanity check level for project Lapack
1102  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1103  --with-pic              try to use only PIC/non-PIC objects [default=use
1104                          both]
1105  --with-tags[=TAGS]
1106                          include additional configurations [automatic]
1107  --with-blas             specify BLAS library (or BUILD for compilation)
1108  --with-lapack           specify LAPACK library (or BUILD for compilation)
1109
1110Some influential environment variables:
1111  CDEFS       Additional -D flags to be used when compiling C code.
1112  ADD_CFLAGS  Additional C compiler options
1113  DBG_CFLAGS  Debug C compiler options
1114  OPT_CFLAGS  Optimize C compiler options
1115  CC          C compiler command
1116  CFLAGS      C compiler flags
1117  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1118              nonstandard directory <lib dir>
1119  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1120              headers in a nonstandard directory <include dir>
1121  MPICC       C MPI Compiler
1122  ADD_FFLAGS  Additional Fortran compiler options
1123  DBG_FFLAGS  Debug Fortran compiler options
1124  OPT_FFLAGS  Optimize Fortran compiler options
1125  F77         Fortran 77 compiler command
1126  FFLAGS      Fortran 77 compiler flags
1127  MPIF77      Fortran MPI Compiler
1128  DLAMCH_FFLAGS
1129              Fortran compiler options for DLAMCH.F
1130  CPP         C preprocessor
1131  CXX         C++ compiler command
1132  CXXFLAGS    C++ compiler flags
1133  CXXCPP      C++ preprocessor
1134
1135Use these variables to override the choices made by `configure' or to help
1136it to find libraries and programs with nonstandard names/locations.
1137
1138Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1139_ACEOF
1140fi
1141
1142if test "$ac_init_help" = "recursive"; then
1143  # If there are subdirs, report their specific --help.
1144  ac_popdir=`pwd`
1145  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1146    test -d $ac_dir || continue
1147    ac_builddir=.
1148
1149if test "$ac_dir" != .; then
1150  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1151  # A "../" for each directory in $ac_dir_suffix.
1152  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1153else
1154  ac_dir_suffix= ac_top_builddir=
1155fi
1156
1157case $srcdir in
1158  .)  # No --srcdir option.  We are building in place.
1159    ac_srcdir=.
1160    if test -z "$ac_top_builddir"; then
1161       ac_top_srcdir=.
1162    else
1163       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1164    fi ;;
1165  [\\/]* | ?:[\\/]* )  # Absolute path.
1166    ac_srcdir=$srcdir$ac_dir_suffix;
1167    ac_top_srcdir=$srcdir ;;
1168  *) # Relative path.
1169    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1170    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1171esac
1172
1173# Do not use `cd foo && pwd` to compute absolute paths, because
1174# the directories may not exist.
1175case `pwd` in
1176.) ac_abs_builddir="$ac_dir";;
1177*)
1178  case "$ac_dir" in
1179  .) ac_abs_builddir=`pwd`;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1181  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1182  esac;;
1183esac
1184case $ac_abs_builddir in
1185.) ac_abs_top_builddir=${ac_top_builddir}.;;
1186*)
1187  case ${ac_top_builddir}. in
1188  .) ac_abs_top_builddir=$ac_abs_builddir;;
1189  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1190  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1191  esac;;
1192esac
1193case $ac_abs_builddir in
1194.) ac_abs_srcdir=$ac_srcdir;;
1195*)
1196  case $ac_srcdir in
1197  .) ac_abs_srcdir=$ac_abs_builddir;;
1198  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1199  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1200  esac;;
1201esac
1202case $ac_abs_builddir in
1203.) ac_abs_top_srcdir=$ac_top_srcdir;;
1204*)
1205  case $ac_top_srcdir in
1206  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1207  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1208  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1209  esac;;
1210esac
1211
1212    cd $ac_dir
1213    # Check for guested configure; otherwise get Cygnus style configure.
1214    if test -f $ac_srcdir/configure.gnu; then
1215      echo
1216      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1217    elif test -f $ac_srcdir/configure; then
1218      echo
1219      $SHELL $ac_srcdir/configure  --help=recursive
1220    elif test -f $ac_srcdir/configure.ac ||
1221           test -f $ac_srcdir/configure.in; then
1222      echo
1223      $ac_configure --help
1224    else
1225      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1226    fi
1227    cd $ac_popdir
1228  done
1229fi
1230
1231test -n "$ac_init_help" && exit 0
1232if $ac_init_version; then
1233  cat <<\_ACEOF
1234ThirdPartyLapack configure 0.0
1235generated by GNU Autoconf 2.59
1236
1237Copyright (C) 2003 Free Software Foundation, Inc.
1238This configure script is free software; the Free Software Foundation
1239gives unlimited permission to copy, distribute and modify it.
1240
1241
1242Copyright 2006 International Business Machines and others.
1243All Rights Reserved.
1244This file is part of the open source package Coin which is distributed
1245under the Common Public License.
1246_ACEOF
1247  exit 0
1248fi
1249exec 5>config.log
1250cat >&5 <<_ACEOF
1251This file contains any messages produced by compilers while
1252running configure, to aid debugging if configure makes a mistake.
1253
1254It was created by ThirdPartyLapack $as_me 0.0, which was
1255generated by GNU Autoconf 2.59.  Invocation command line was
1256
1257  $ $0 $@
1258
1259_ACEOF
1260{
1261cat <<_ASUNAME
1262## --------- ##
1263## Platform. ##
1264## --------- ##
1265
1266hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1267uname -m = `(uname -m) 2>/dev/null || echo unknown`
1268uname -r = `(uname -r) 2>/dev/null || echo unknown`
1269uname -s = `(uname -s) 2>/dev/null || echo unknown`
1270uname -v = `(uname -v) 2>/dev/null || echo unknown`
1271
1272/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1273/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1274
1275/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1276/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1277/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1278hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1279/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1280/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1281/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1282
1283_ASUNAME
1284
1285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1286for as_dir in $PATH
1287do
1288  IFS=$as_save_IFS
1289  test -z "$as_dir" && as_dir=.
1290  echo "PATH: $as_dir"
1291done
1292
1293} >&5
1294
1295cat >&5 <<_ACEOF
1296
1297
1298## ----------- ##
1299## Core tests. ##
1300## ----------- ##
1301
1302_ACEOF
1303
1304
1305# Keep a trace of the command line.
1306# Strip out --no-create and --no-recursion so they do not pile up.
1307# Strip out --silent because we don't want to record it for future runs.
1308# Also quote any args containing shell meta-characters.
1309# Make two passes to allow for proper duplicate-argument suppression.
1310ac_configure_args=
1311ac_configure_args0=
1312ac_configure_args1=
1313ac_sep=
1314ac_must_keep_next=false
1315for ac_pass in 1 2
1316do
1317  for ac_arg
1318  do
1319    case $ac_arg in
1320    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1321    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1322    | -silent | --silent | --silen | --sile | --sil)
1323      continue ;;
1324    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1326    esac
1327    case $ac_pass in
1328    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1329    2)
1330      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1331      if test $ac_must_keep_next = true; then
1332        ac_must_keep_next=false # Got value, back to normal.
1333      else
1334        case $ac_arg in
1335          *=* | --config-cache | -C | -disable-* | --disable-* \
1336          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1337          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1338          | -with-* | --with-* | -without-* | --without-* | --x)
1339            case "$ac_configure_args0 " in
1340              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1341            esac
1342            ;;
1343          -* ) ac_must_keep_next=true ;;
1344        esac
1345      fi
1346      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1347      # Get rid of the leading space.
1348      ac_sep=" "
1349      ;;
1350    esac
1351  done
1352done
1353$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1354$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1355
1356# When interrupted or exit'd, cleanup temporary files, and complete
1357# config.log.  We remove comments because anyway the quotes in there
1358# would cause problems or look ugly.
1359# WARNING: Be sure not to use single quotes in there, as some shells,
1360# such as our DU 5.0 friend, will then `close' the trap.
1361trap 'exit_status=$?
1362  # Save into config.log some information that might help in debugging.
1363  {
1364    echo
1365
1366    cat <<\_ASBOX
1367## ---------------- ##
1368## Cache variables. ##
1369## ---------------- ##
1370_ASBOX
1371    echo
1372    # The following way of writing the cache mishandles newlines in values,
1373{
1374  (set) 2>&1 |
1375    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1376    *ac_space=\ *)
1377      sed -n \
1378        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1379          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1380      ;;
1381    *)
1382      sed -n \
1383        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1384      ;;
1385    esac;
1386}
1387    echo
1388
1389    cat <<\_ASBOX
1390## ----------------- ##
1391## Output variables. ##
1392## ----------------- ##
1393_ASBOX
1394    echo
1395    for ac_var in $ac_subst_vars
1396    do
1397      eval ac_val=$`echo $ac_var`
1398      echo "$ac_var='"'"'$ac_val'"'"'"
1399    done | sort
1400    echo
1401
1402    if test -n "$ac_subst_files"; then
1403      cat <<\_ASBOX
1404## ------------- ##
1405## Output files. ##
1406## ------------- ##
1407_ASBOX
1408      echo
1409      for ac_var in $ac_subst_files
1410      do
1411        eval ac_val=$`echo $ac_var`
1412        echo "$ac_var='"'"'$ac_val'"'"'"
1413      done | sort
1414      echo
1415    fi
1416
1417    if test -s confdefs.h; then
1418      cat <<\_ASBOX
1419## ----------- ##
1420## confdefs.h. ##
1421## ----------- ##
1422_ASBOX
1423      echo
1424      sed "/^$/d" confdefs.h | sort
1425      echo
1426    fi
1427    test "$ac_signal" != 0 &&
1428      echo "$as_me: caught signal $ac_signal"
1429    echo "$as_me: exit $exit_status"
1430  } >&5
1431  rm -f core *.core &&
1432  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1433    exit $exit_status
1434     ' 0
1435for ac_signal in 1 2 13 15; do
1436  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1437done
1438ac_signal=0
1439
1440# confdefs.h avoids OS command line length limits that DEFS can exceed.
1441rm -rf conftest* confdefs.h
1442# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1443echo >confdefs.h
1444
1445# Predefined preprocessor variables.
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_NAME "$PACKAGE_NAME"
1449_ACEOF
1450
1451
1452cat >>confdefs.h <<_ACEOF
1453#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1454_ACEOF
1455
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_VERSION "$PACKAGE_VERSION"
1459_ACEOF
1460
1461
1462cat >>confdefs.h <<_ACEOF
1463#define PACKAGE_STRING "$PACKAGE_STRING"
1464_ACEOF
1465
1466
1467cat >>confdefs.h <<_ACEOF
1468#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1469_ACEOF
1470
1471
1472# Let the site file select an alternate cache file if it wants to.
1473# Prefer explicitly selected file to automatically selected ones.
1474if test -z "$CONFIG_SITE"; then
1475  if test "x$prefix" != xNONE; then
1476    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1477  else
1478    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1479  fi
1480fi
1481for ac_site_file in $CONFIG_SITE; do
1482  if test -r "$ac_site_file"; then
1483    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1484echo "$as_me: loading site script $ac_site_file" >&6;}
1485    sed 's/^/| /' "$ac_site_file" >&5
1486    . "$ac_site_file"
1487  fi
1488done
1489
1490if test -r "$cache_file"; then
1491  # Some versions of bash will fail to source /dev/null (special
1492  # files actually), so we avoid doing that.
1493  if test -f "$cache_file"; then
1494    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1495echo "$as_me: loading cache $cache_file" >&6;}
1496    case $cache_file in
1497      [\\/]* | ?:[\\/]* ) . $cache_file;;
1498      *)                      . ./$cache_file;;
1499    esac
1500  fi
1501else
1502  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1503echo "$as_me: creating cache $cache_file" >&6;}
1504  >$cache_file
1505fi
1506
1507# Check that the precious variables saved in the cache have kept the same
1508# value.
1509ac_cache_corrupted=false
1510for ac_var in `(set) 2>&1 |
1511               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1512  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1513  eval ac_new_set=\$ac_env_${ac_var}_set
1514  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1515  eval ac_new_val="\$ac_env_${ac_var}_value"
1516  case $ac_old_set,$ac_new_set in
1517    set,)
1518      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1519echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1520      ac_cache_corrupted=: ;;
1521    ,set)
1522      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1523echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1524      ac_cache_corrupted=: ;;
1525    ,);;
1526    *)
1527      if test "x$ac_old_val" != "x$ac_new_val"; then
1528        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1529echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1530        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1531echo "$as_me:   former value:  $ac_old_val" >&2;}
1532        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1533echo "$as_me:   current value: $ac_new_val" >&2;}
1534        ac_cache_corrupted=:
1535      fi;;
1536  esac
1537  # Pass precious variables to config.status.
1538  if test "$ac_new_set" = set; then
1539    case $ac_new_val in
1540    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1541      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1542    *) ac_arg=$ac_var=$ac_new_val ;;
1543    esac
1544    case " $ac_configure_args " in
1545      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1546      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1547    esac
1548  fi
1549done
1550if $ac_cache_corrupted; then
1551  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1552echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1553  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1554echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1555   { (exit 1); exit 1; }; }
1556fi
1557
1558ac_ext=c
1559ac_cpp='$CPP $CPPFLAGS'
1560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1562ac_compiler_gnu=$ac_cv_c_compiler_gnu
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593# List one file in the package so that the configure script can test
1594# whether the package is actually there
1595
1596
1597# Where should everything be installed by default?  Here, we want it
1598# to be installed directly in 'bin', 'lib', 'include' subdirectories
1599# of the directory where configure is run.  The default would be
1600# /usr/local.
1601
1602
1603# Initialize the ADDLIBS variable
1604ADDLIBS="-lm $LIBS"
1605
1606
1607# As backup, we make sure we don't loose an FLIBS if it has been set
1608# by the user
1609save_FLIBS="$FLIBS"
1610
1611# Initialize the FADDLIBS variable (which is to be used with a fortran
1612# compiler and will not include FLIBS)
1613FADDLIBS="$LIBS"
1614
1615
1616# A useful makefile conditional that is always false
1617
1618
1619if false; then
1620  ALWAYS_FALSE_TRUE=
1621  ALWAYS_FALSE_FALSE='#'
1622else
1623  ALWAYS_FALSE_TRUE='#'
1624  ALWAYS_FALSE_FALSE=
1625fi
1626
1627
1628# We set the following variable so that we know later in AC_COIN_FINALIZE
1629# that we are in a project main directory
1630coin_projectdir=yes
1631
1632# Check if a library version is set for libtool
1633
1634
1635
1636#############################################################################
1637#                         Standard build tool stuff                         #
1638#############################################################################
1639
1640# Get the system type
1641ac_aux_dir=
1642for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1643  if test -f $ac_dir/install-sh; then
1644    ac_aux_dir=$ac_dir
1645    ac_install_sh="$ac_aux_dir/install-sh -c"
1646    break
1647  elif test -f $ac_dir/install.sh; then
1648    ac_aux_dir=$ac_dir
1649    ac_install_sh="$ac_aux_dir/install.sh -c"
1650    break
1651  elif test -f $ac_dir/shtool; then
1652    ac_aux_dir=$ac_dir
1653    ac_install_sh="$ac_aux_dir/shtool install -c"
1654    break
1655  fi
1656done
1657if test -z "$ac_aux_dir"; then
1658  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1659echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1660   { (exit 1); exit 1; }; }
1661fi
1662ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1663ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1664ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1665
1666# Make sure we can run config.sub.
1667$ac_config_sub sun4 >/dev/null 2>&1 ||
1668  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1669echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1670   { (exit 1); exit 1; }; }
1671
1672echo "$as_me:$LINENO: checking build system type" >&5
1673echo $ECHO_N "checking build system type... $ECHO_C" >&6
1674if test "${ac_cv_build+set}" = set; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  ac_cv_build_alias=$build_alias
1678test -z "$ac_cv_build_alias" &&
1679  ac_cv_build_alias=`$ac_config_guess`
1680test -z "$ac_cv_build_alias" &&
1681  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1682echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1683   { (exit 1); exit 1; }; }
1684ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1685  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1686echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1687   { (exit 1); exit 1; }; }
1688
1689fi
1690echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1691echo "${ECHO_T}$ac_cv_build" >&6
1692build=$ac_cv_build
1693build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1694build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1695build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1696
1697
1698
1699#turn off warnings and pedantic mode since they could make trouble on some platforms,
1700#and we couldn't fix them anyway
1701coin_skip_warn_fflags=yes
1702
1703# Check if user wants to produce debugging code
1704
1705echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1706echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1707
1708# Check whether --enable-debug or --disable-debug was given.
1709if test "${enable_debug+set}" = set; then
1710  enableval="$enable_debug"
1711  case "${enableval}" in
1712   yes) coin_debug_compile=true
1713        if test "${enable_shared+set}" = set; then :; else
1714          enable_shared=no
1715        fi
1716        ;;
1717   no)  coin_debug_compile=false
1718        ;;
1719   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1720echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1721   { (exit 1); exit 1; }; }
1722        ;;
1723esac
1724else
1725  coin_debug_compile=false
1726fi;
1727
1728# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1729if test "${enable_debug_lapack+set}" = set; then
1730  enableval="$enable_debug_lapack"
1731  case "${enableval}" in
1732    yes) coin_debug_compile=true
1733         enable_shared=no
1734         ;;
1735    no)  coin_debug_compile=false
1736         ;;
1737    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1738echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1739   { (exit 1); exit 1; }; }
1740         ;;
1741 esac
1742else
1743  :
1744fi;
1745
1746 # m4_ifvaln([Lapack],
1747
1748if test $coin_debug_compile = true; then
1749  echo "$as_me:$LINENO: result: yes" >&5
1750echo "${ECHO_T}yes" >&6
1751else
1752  echo "$as_me:$LINENO: result: no" >&5
1753echo "${ECHO_T}no" >&6
1754fi
1755
1756
1757# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1758if test "${with_lapack_verbosity+set}" = set; then
1759  withval="$with_lapack_verbosity"
1760  if test "$withval" = yes; then
1761                withval=1
1762              fi
1763              coin_lapack_verbosity=$withval
1764else
1765  coin_lapack_verbosity=0
1766fi;
1767
1768cat >>confdefs.h <<_ACEOF
1769#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1770_ACEOF
1771
1772
1773
1774# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1775if test "${with_lapack_checklevel+set}" = set; then
1776  withval="$with_lapack_checklevel"
1777  if test "$withval" = yes; then
1778                withval=1
1779              fi
1780              coin_lapack_checklevel=$withval
1781else
1782  coin_lapack_checklevel=0
1783fi;
1784
1785cat >>confdefs.h <<_ACEOF
1786#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1787_ACEOF
1788
1789
1790# We use the following variable to have a string with the upper case
1791# version of the project name
1792COIN_PRJCT=LAPACK
1793
1794
1795 # m4_ifvaln([Lapack],
1796
1797
1798
1799# Get the name of the Fortran compiler and appropriate compiler options
1800case $build in
1801  *-mingw*)
1802    if test "${LD+set}" = set; then :; else
1803      LD=link
1804    fi
1805    ;;
1806 esac
1807 case $enable_doscompile in
1808   msvc)
1809     if test "x${LD+set}" = xset; then :; else
1810       LD=link
1811     fi
1812     ;;
1813 esac
1814
1815
1816 # Check whether --enable-doscompile or --disable-doscompile was given.
1817if test "${enable_doscompile+set}" = set; then
1818  enableval="$enable_doscompile"
1819  if test "$enable_doscompile" != no; then
1820     case $build in
1821       *-cygwin* | *-mingw*) ;;
1822       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1823echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1824   { (exit 1); exit 1; }; } ;;
1825     esac
1826   fi
1827else
1828  enable_doscompile=no
1829fi;
1830 case "$enable_doscompile" in
1831   mingw)
1832     case $build in
1833       *-mingw*) enable_doscompile=no ;;
1834     esac
1835     ;;
1836   msvc|no) ;;
1837   yes) enable_doscompile=mingw ;;
1838   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1839                    Try configure --help=recursive." >&5
1840echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1841                    Try configure --help=recursive." >&2;}
1842   { (exit 1); exit 1; }; }
1843      ;;
1844  esac
1845  if test "$enable_doscompile" != no ; then
1846    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1847echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1848  fi
1849
1850
1851
1852
1853ac_ext=c
1854ac_cpp='$CPP $CPPFLAGS'
1855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1857ac_compiler_gnu=$ac_cv_c_compiler_gnu
1858
1859
1860# For consistency, we set the C compiler to the same value of the C++
1861# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1862if test x"$CXX" != x; then
1863  case "$CXX" in
1864    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1865      if test x"$CC" = x; then
1866        CC="$CXX"
1867        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1868echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1869      fi
1870      ;;
1871  esac
1872fi
1873
1874
1875
1876
1877
1878
1879coin_has_cc=yes
1880
1881save_cflags="$CFLAGS"
1882
1883# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1884# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1885# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1886# compiler. In this case, put cc after gcc.
1887
1888case $build in
1889  *-cygwin* | *-mingw*)
1890             if test "$enable_doscompile" = msvc ; then
1891               comps="icl cl"
1892             else
1893               comps="gcc cl"
1894             fi ;;
1895  *-*-solaris*)
1896             # Extract the first word of "cc", so it can be a program name with args.
1897set dummy cc; ac_word=$2
1898echo "$as_me:$LINENO: checking for $ac_word" >&5
1899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1901  echo $ECHO_N "(cached) $ECHO_C" >&6
1902else
1903  if test -n "$sol_cc_compiler"; then
1904  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1905else
1906  ac_prog_rejected=no
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910  IFS=$as_save_IFS
1911  test -z "$as_dir" && as_dir=.
1912  for ac_exec_ext in '' $ac_executable_extensions; do
1913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1915       ac_prog_rejected=yes
1916       continue
1917     fi
1918    ac_cv_prog_sol_cc_compiler="cc"
1919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920    break 2
1921  fi
1922done
1923done
1924
1925if test $ac_prog_rejected = yes; then
1926  # We found a bogon in the path, so make sure we never use it.
1927  set dummy $ac_cv_prog_sol_cc_compiler
1928  shift
1929  if test $# != 0; then
1930    # We chose a different compiler from the bogus one.
1931    # However, it has the same basename, so the bogon will be chosen
1932    # first if we set sol_cc_compiler to just the basename; use the full file name.
1933    shift
1934    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1935  fi
1936fi
1937fi
1938fi
1939sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1940if test -n "$sol_cc_compiler"; then
1941  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1942echo "${ECHO_T}$sol_cc_compiler" >&6
1943else
1944  echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6
1946fi
1947
1948             if test "$sol_cc_compiler" = "cc" ; then
1949               comps="cc xlc gcc pgcc icc"
1950             else
1951               comps="xlc gcc pgcc icc cc"
1952             fi
1953             ;;
1954  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1955  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1956esac
1957
1958# We delete the cached value, since the test might not have been
1959# performed with our choice of compilers earlier
1960$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1961# AC_MSG_NOTICE([C compiler candidates: $comps])
1962ac_ext=c
1963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967if test -n "$ac_tool_prefix"; then
1968  for ac_prog in $comps
1969  do
1970    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1972echo "$as_me:$LINENO: checking for $ac_word" >&5
1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974if test "${ac_cv_prog_CC+set}" = set; then
1975  echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
1977  if test -n "$CC"; then
1978  ac_cv_prog_CC="$CC" # Let the user override the test.
1979else
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983  IFS=$as_save_IFS
1984  test -z "$as_dir" && as_dir=.
1985  for ac_exec_ext in '' $ac_executable_extensions; do
1986  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989    break 2
1990  fi
1991done
1992done
1993
1994fi
1995fi
1996CC=$ac_cv_prog_CC
1997if test -n "$CC"; then
1998  echo "$as_me:$LINENO: result: $CC" >&5
1999echo "${ECHO_T}$CC" >&6
2000else
2001  echo "$as_me:$LINENO: result: no" >&5
2002echo "${ECHO_T}no" >&6
2003fi
2004
2005    test -n "$CC" && break
2006  done
2007fi
2008if test -z "$CC"; then
2009  ac_ct_CC=$CC
2010  for ac_prog in $comps
2011do
2012  # Extract the first word of "$ac_prog", so it can be a program name with args.
2013set dummy $ac_prog; ac_word=$2
2014echo "$as_me:$LINENO: checking for $ac_word" >&5
2015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2017  echo $ECHO_N "(cached) $ECHO_C" >&6
2018else
2019  if test -n "$ac_ct_CC"; then
2020  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2021else
2022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023for as_dir in $PATH
2024do
2025  IFS=$as_save_IFS
2026  test -z "$as_dir" && as_dir=.
2027  for ac_exec_ext in '' $ac_executable_extensions; do
2028  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2029    ac_cv_prog_ac_ct_CC="$ac_prog"
2030    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031    break 2
2032  fi
2033done
2034done
2035
2036fi
2037fi
2038ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039if test -n "$ac_ct_CC"; then
2040  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041echo "${ECHO_T}$ac_ct_CC" >&6
2042else
2043  echo "$as_me:$LINENO: result: no" >&5
2044echo "${ECHO_T}no" >&6
2045fi
2046
2047  test -n "$ac_ct_CC" && break
2048done
2049
2050  CC=$ac_ct_CC
2051fi
2052
2053
2054test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2055See \`config.log' for more details." >&5
2056echo "$as_me: error: no acceptable C compiler found in \$PATH
2057See \`config.log' for more details." >&2;}
2058   { (exit 1); exit 1; }; }
2059
2060# Provide some information about the compiler.
2061echo "$as_me:$LINENO:" \
2062     "checking for C compiler version" >&5
2063ac_compiler=`set X $ac_compile; echo $2`
2064{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2065  (eval $ac_compiler --version </dev/null >&5) 2>&5
2066  ac_status=$?
2067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068  (exit $ac_status); }
2069{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2070  (eval $ac_compiler -v </dev/null >&5) 2>&5
2071  ac_status=$?
2072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073  (exit $ac_status); }
2074{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2075  (eval $ac_compiler -V </dev/null >&5) 2>&5
2076  ac_status=$?
2077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078  (exit $ac_status); }
2079
2080cat >conftest.$ac_ext <<_ACEOF
2081/* confdefs.h.  */
2082_ACEOF
2083cat confdefs.h >>conftest.$ac_ext
2084cat >>conftest.$ac_ext <<_ACEOF
2085/* end confdefs.h.  */
2086
2087int
2088main ()
2089{
2090
2091  ;
2092  return 0;
2093}
2094_ACEOF
2095ac_clean_files_save=$ac_clean_files
2096ac_clean_files="$ac_clean_files a.out a.exe b.out"
2097# Try to create an executable without -o first, disregard a.out.
2098# It will help us diagnose broken compilers, and finding out an intuition
2099# of exeext.
2100echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2101echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2102ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2103if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2104  (eval $ac_link_default) 2>&5
2105  ac_status=$?
2106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107  (exit $ac_status); }; then
2108  # Find the output, starting from the most likely.  This scheme is
2109# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2110# resort.
2111
2112# Be careful to initialize this variable, since it used to be cached.
2113# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2114ac_cv_exeext=
2115# b.out is created by i960 compilers.
2116for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2117do
2118  test -f "$ac_file" || continue
2119  case $ac_file in
2120    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2121        ;;
2122    conftest.$ac_ext )
2123        # This is the source file.
2124        ;;
2125    [ab].out )
2126        # We found the default executable, but exeext='' is most
2127        # certainly right.
2128        break;;
2129    *.* )
2130        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2131        # FIXME: I believe we export ac_cv_exeext for Libtool,
2132        # but it would be cool to find out if it's true.  Does anybody
2133        # maintain Libtool? --akim.
2134        export ac_cv_exeext
2135        break;;
2136    * )
2137        break;;
2138  esac
2139done
2140else
2141  echo "$as_me: failed program was:" >&5
2142sed 's/^/| /' conftest.$ac_ext >&5
2143
2144{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2145See \`config.log' for more details." >&5
2146echo "$as_me: error: C compiler cannot create executables
2147See \`config.log' for more details." >&2;}
2148   { (exit 77); exit 77; }; }
2149fi
2150
2151ac_exeext=$ac_cv_exeext
2152echo "$as_me:$LINENO: result: $ac_file" >&5
2153echo "${ECHO_T}$ac_file" >&6
2154
2155# Check the compiler produces executables we can run.  If not, either
2156# the compiler is broken, or we cross compile.
2157echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2158echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2159# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2160# If not cross compiling, check that we can run a simple program.
2161if test "$cross_compiling" != yes; then
2162  if { ac_try='./$ac_file'
2163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164  (eval $ac_try) 2>&5
2165  ac_status=$?
2166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167  (exit $ac_status); }; }; then
2168    cross_compiling=no
2169  else
2170    if test "$cross_compiling" = maybe; then
2171        cross_compiling=yes
2172    else
2173        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2174If you meant to cross compile, use \`--host'.
2175See \`config.log' for more details." >&5
2176echo "$as_me: error: cannot run C compiled programs.
2177If you meant to cross compile, use \`--host'.
2178See \`config.log' for more details." >&2;}
2179   { (exit 1); exit 1; }; }
2180    fi
2181  fi
2182fi
2183echo "$as_me:$LINENO: result: yes" >&5
2184echo "${ECHO_T}yes" >&6
2185
2186rm -f a.out a.exe conftest$ac_cv_exeext b.out
2187ac_clean_files=$ac_clean_files_save
2188# Check the compiler produces executables we can run.  If not, either
2189# the compiler is broken, or we cross compile.
2190echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2191echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2192echo "$as_me:$LINENO: result: $cross_compiling" >&5
2193echo "${ECHO_T}$cross_compiling" >&6
2194
2195echo "$as_me:$LINENO: checking for suffix of executables" >&5
2196echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2198  (eval $ac_link) 2>&5
2199  ac_status=$?
2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201  (exit $ac_status); }; then
2202  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2203# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2204# work properly (i.e., refer to `conftest.exe'), while it won't with
2205# `rm'.
2206for ac_file in conftest.exe conftest conftest.*; do
2207  test -f "$ac_file" || continue
2208  case $ac_file in
2209    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2210    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211          export ac_cv_exeext
2212          break;;
2213    * ) break;;
2214  esac
2215done
2216else
2217  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2218See \`config.log' for more details." >&5
2219echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2220See \`config.log' for more details." >&2;}
2221   { (exit 1); exit 1; }; }
2222fi
2223
2224rm -f conftest$ac_cv_exeext
2225echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2226echo "${ECHO_T}$ac_cv_exeext" >&6
2227
2228rm -f conftest.$ac_ext
2229EXEEXT=$ac_cv_exeext
2230ac_exeext=$EXEEXT
2231echo "$as_me:$LINENO: checking for suffix of object files" >&5
2232echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2233if test "${ac_cv_objext+set}" = set; then
2234  echo $ECHO_N "(cached) $ECHO_C" >&6
2235else
2236  cat >conftest.$ac_ext <<_ACEOF
2237/* confdefs.h.  */
2238_ACEOF
2239cat confdefs.h >>conftest.$ac_ext
2240cat >>conftest.$ac_ext <<_ACEOF
2241/* end confdefs.h.  */
2242
2243int
2244main ()
2245{
2246
2247  ;
2248  return 0;
2249}
2250_ACEOF
2251rm -f conftest.o conftest.obj
2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253  (eval $ac_compile) 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); }; then
2257  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2258  case $ac_file in
2259    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2260    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2261       break;;
2262  esac
2263done
2264else
2265  echo "$as_me: failed program was:" >&5
2266sed 's/^/| /' conftest.$ac_ext >&5
2267
2268{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2269See \`config.log' for more details." >&5
2270echo "$as_me: error: cannot compute suffix of object files: cannot compile
2271See \`config.log' for more details." >&2;}
2272   { (exit 1); exit 1; }; }
2273fi
2274
2275rm -f conftest.$ac_cv_objext conftest.$ac_ext
2276fi
2277echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2278echo "${ECHO_T}$ac_cv_objext" >&6
2279OBJEXT=$ac_cv_objext
2280ac_objext=$OBJEXT
2281echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2282echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2283if test "${ac_cv_c_compiler_gnu+set}" = set; then
2284  echo $ECHO_N "(cached) $ECHO_C" >&6
2285else
2286  cat >conftest.$ac_ext <<_ACEOF
2287/* confdefs.h.  */
2288_ACEOF
2289cat confdefs.h >>conftest.$ac_ext
2290cat >>conftest.$ac_ext <<_ACEOF
2291/* end confdefs.h.  */
2292
2293int
2294main ()
2295{
2296#ifndef __GNUC__
2297       choke me
2298#endif
2299
2300  ;
2301  return 0;
2302}
2303_ACEOF
2304rm -f conftest.$ac_objext
2305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306  (eval $ac_compile) 2>conftest.er1
2307  ac_status=$?
2308  grep -v '^ *+' conftest.er1 >conftest.err
2309  rm -f conftest.er1
2310  cat conftest.err >&5
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); } &&
2313         { ac_try='test -z "$ac_c_werror_flag"
2314                         || test ! -s conftest.err'
2315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316  (eval $ac_try) 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); }; } &&
2320         { ac_try='test -s conftest.$ac_objext'
2321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322  (eval $ac_try) 2>&5
2323  ac_status=$?
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); }; }; then
2326  ac_compiler_gnu=yes
2327else
2328  echo "$as_me: failed program was:" >&5
2329sed 's/^/| /' conftest.$ac_ext >&5
2330
2331ac_compiler_gnu=no
2332fi
2333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334ac_cv_c_compiler_gnu=$ac_compiler_gnu
2335
2336fi
2337echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2338echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2339GCC=`test $ac_compiler_gnu = yes && echo yes`
2340ac_test_CFLAGS=${CFLAGS+set}
2341ac_save_CFLAGS=$CFLAGS
2342CFLAGS="-g"
2343echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2344echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2345if test "${ac_cv_prog_cc_g+set}" = set; then
2346  echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348  cat >conftest.$ac_ext <<_ACEOF
2349/* confdefs.h.  */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
2353/* end confdefs.h.  */
2354
2355int
2356main ()
2357{
2358
2359  ;
2360  return 0;
2361}
2362_ACEOF
2363rm -f conftest.$ac_objext
2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365  (eval $ac_compile) 2>conftest.er1
2366  ac_status=$?
2367  grep -v '^ *+' conftest.er1 >conftest.err
2368  rm -f conftest.er1
2369  cat conftest.err >&5
2370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371  (exit $ac_status); } &&
2372         { ac_try='test -z "$ac_c_werror_flag"
2373                         || test ! -s conftest.err'
2374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375  (eval $ac_try) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; } &&
2379         { ac_try='test -s conftest.$ac_objext'
2380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381  (eval $ac_try) 2>&5
2382  ac_status=$?
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); }; }; then
2385  ac_cv_prog_cc_g=yes
2386else
2387  echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390ac_cv_prog_cc_g=no
2391fi
2392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2393fi
2394echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2395echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2396if test "$ac_test_CFLAGS" = set; then
2397  CFLAGS=$ac_save_CFLAGS
2398elif test $ac_cv_prog_cc_g = yes; then
2399  if test "$GCC" = yes; then
2400    CFLAGS="-g -O2"
2401  else
2402    CFLAGS="-g"
2403  fi
2404else
2405  if test "$GCC" = yes; then
2406    CFLAGS="-O2"
2407  else
2408    CFLAGS=
2409  fi
2410fi
2411echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2412echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2413if test "${ac_cv_prog_cc_stdc+set}" = set; then
2414  echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416  ac_cv_prog_cc_stdc=no
2417ac_save_CC=$CC
2418cat >conftest.$ac_ext <<_ACEOF
2419/* confdefs.h.  */
2420_ACEOF
2421cat confdefs.h >>conftest.$ac_ext
2422cat >>conftest.$ac_ext <<_ACEOF
2423/* end confdefs.h.  */
2424#include <stdarg.h>
2425#include <stdio.h>
2426#include <sys/types.h>
2427#include <sys/stat.h>
2428/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2429struct buf { int x; };
2430FILE * (*rcsopen) (struct buf *, struct stat *, int);
2431static char *e (p, i)
2432     char **p;
2433     int i;
2434{
2435  return p[i];
2436}
2437static char *f (char * (*g) (char **, int), char **p, ...)
2438{
2439  char *s;
2440  va_list v;
2441  va_start (v,p);
2442  s = g (p, va_arg (v,int));
2443  va_end (v);
2444  return s;
2445}
2446
2447/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2448   function prototypes and stuff, but not '\xHH' hex character constants.
2449   These don't provoke an error unfortunately, instead are silently treated
2450   as 'x'.  The following induces an error, until -std1 is added to get
2451   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2452   array size at least.  It's necessary to write '\x00'==0 to get something
2453   that's true only with -std1.  */
2454int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2455
2456int test (int i, double x);
2457struct s1 {int (*f) (int a);};
2458struct s2 {int (*f) (double a);};
2459int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2460int argc;
2461char **argv;
2462int
2463main ()
2464{
2465return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2466  ;
2467  return 0;
2468}
2469_ACEOF
2470# Don't try gcc -ansi; that turns off useful extensions and
2471# breaks some systems' header files.
2472# AIX                   -qlanglvl=ansi
2473# Ultrix and OSF/1      -std1
2474# HP-UX 10.20 and later -Ae
2475# HP-UX older versions  -Aa -D_HPUX_SOURCE
2476# SVR4                  -Xc -D__EXTENSIONS__
2477for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2478do
2479  CC="$ac_save_CC $ac_arg"
2480  rm -f conftest.$ac_objext
2481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2482  (eval $ac_compile) 2>conftest.er1
2483  ac_status=$?
2484  grep -v '^ *+' conftest.er1 >conftest.err
2485  rm -f conftest.er1
2486  cat conftest.err >&5
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); } &&
2489         { ac_try='test -z "$ac_c_werror_flag"
2490                         || test ! -s conftest.err'
2491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492  (eval $ac_try) 2>&5
2493  ac_status=$?
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); }; } &&
2496         { ac_try='test -s conftest.$ac_objext'
2497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498  (eval $ac_try) 2>&5
2499  ac_status=$?
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); }; }; then
2502  ac_cv_prog_cc_stdc=$ac_arg
2503break
2504else
2505  echo "$as_me: failed program was:" >&5
2506sed 's/^/| /' conftest.$ac_ext >&5
2507
2508fi
2509rm -f conftest.err conftest.$ac_objext
2510done
2511rm -f conftest.$ac_ext conftest.$ac_objext
2512CC=$ac_save_CC
2513
2514fi
2515
2516case "x$ac_cv_prog_cc_stdc" in
2517  x|xno)
2518    echo "$as_me:$LINENO: result: none needed" >&5
2519echo "${ECHO_T}none needed" >&6 ;;
2520  *)
2521    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2522echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2523    CC="$CC $ac_cv_prog_cc_stdc" ;;
2524esac
2525
2526# Some people use a C++ compiler to compile C.  Since we use `exit',
2527# in C++ we need to declare it.  In case someone uses the same compiler
2528# for both compiling C and C++ we need to have the C++ compiler decide
2529# the declaration of exit, since it's the most demanding environment.
2530cat >conftest.$ac_ext <<_ACEOF
2531#ifndef __cplusplus
2532  choke me
2533#endif
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  for ac_declaration in \
2558   '' \
2559   'extern "C" void std::exit (int) throw (); using std::exit;' \
2560   'extern "C" void std::exit (int); using std::exit;' \
2561   'extern "C" void exit (int) throw ();' \
2562   'extern "C" void exit (int);' \
2563   'void exit (int);'
2564do
2565  cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h.  */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h.  */
2571$ac_declaration
2572#include <stdlib.h>
2573int
2574main ()
2575{
2576exit (42);
2577  ;
2578  return 0;
2579}
2580_ACEOF
2581rm -f conftest.$ac_objext
2582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583  (eval $ac_compile) 2>conftest.er1
2584  ac_status=$?
2585  grep -v '^ *+' conftest.er1 >conftest.err
2586  rm -f conftest.er1
2587  cat conftest.err >&5
2588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589  (exit $ac_status); } &&
2590         { ac_try='test -z "$ac_c_werror_flag"
2591                         || test ! -s conftest.err'
2592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593  (eval $ac_try) 2>&5
2594  ac_status=$?
2595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); }; } &&
2597         { ac_try='test -s conftest.$ac_objext'
2598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599  (eval $ac_try) 2>&5
2600  ac_status=$?
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); }; }; then
2603  :
2604else
2605  echo "$as_me: failed program was:" >&5
2606sed 's/^/| /' conftest.$ac_ext >&5
2607
2608continue
2609fi
2610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2611  cat >conftest.$ac_ext <<_ACEOF
2612/* confdefs.h.  */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h.  */
2617$ac_declaration
2618int
2619main ()
2620{
2621exit (42);
2622  ;
2623  return 0;
2624}
2625_ACEOF
2626rm -f conftest.$ac_objext
2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628  (eval $ac_compile) 2>conftest.er1
2629  ac_status=$?
2630  grep -v '^ *+' conftest.er1 >conftest.err
2631  rm -f conftest.er1
2632  cat conftest.err >&5
2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634  (exit $ac_status); } &&
2635         { ac_try='test -z "$ac_c_werror_flag"
2636                         || test ! -s conftest.err'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; } &&
2642         { ac_try='test -s conftest.$ac_objext'
2643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644  (eval $ac_try) 2>&5
2645  ac_status=$?
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); }; }; then
2648  break
2649else
2650  echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653fi
2654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2655done
2656rm -f conftest*
2657if test -n "$ac_declaration"; then
2658  echo '#ifdef __cplusplus' >>confdefs.h
2659  echo $ac_declaration      >>confdefs.h
2660  echo '#endif'             >>confdefs.h
2661fi
2662
2663else
2664  echo "$as_me: failed program was:" >&5
2665sed 's/^/| /' conftest.$ac_ext >&5
2666
2667fi
2668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669ac_ext=c
2670ac_cpp='$CPP $CPPFLAGS'
2671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674
2675if test -z "$CC" ; then
2676  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2677echo "$as_me: error: Failed to find a C compiler!" >&2;}
2678   { (exit 1); exit 1; }; }
2679fi
2680# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2681case "$CC" in
2682  cl* | */cl* | CL* | */CL* )
2683    if test "$ac_cv_prog_cc_g" = yes ; then
2684      ac_cv_prog_cc_g=no
2685      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2686echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2687    fi ;;
2688esac
2689CFLAGS="$save_cflags"
2690
2691# Check if a project specific CFLAGS variable has been set
2692if test x$COIN_PRJCT != x; then
2693  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2694  if test x$coin_tmp = xset; then
2695    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2696  fi
2697fi
2698
2699if test x"$CFLAGS" = x; then
2700
2701  coin_add_cflags=
2702  coin_opt_cflags=
2703  coin_dbg_cflags=
2704  coin_warn_cflags=
2705
2706  if test "$GCC" = "yes"; then
2707    case "$CC" in
2708      icc* | */icc*)
2709        ;;
2710      *)
2711        coin_opt_cflags="-O3 -fomit-frame-pointer"
2712        coin_add_cflags="-pipe"
2713        coin_dbg_cflags="-g"
2714        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2715        case $build in
2716          *-darwin*)
2717            ;;
2718          *)
2719            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2720            ;;
2721        esac
2722        case $enable_doscompile in
2723          mingw)
2724            CFLAGS="-mno-cygwin"
2725            cat >conftest.$ac_ext <<_ACEOF
2726/* confdefs.h.  */
2727_ACEOF
2728cat confdefs.h >>conftest.$ac_ext
2729cat >>conftest.$ac_ext <<_ACEOF
2730/* end confdefs.h.  */
2731
2732int
2733main ()
2734{
2735int i=0; i++;
2736  ;
2737  return 0;
2738}
2739_ACEOF
2740rm -f conftest.$ac_objext conftest$ac_exeext
2741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2742  (eval $ac_link) 2>conftest.er1
2743  ac_status=$?
2744  grep -v '^ *+' conftest.er1 >conftest.err
2745  rm -f conftest.er1
2746  cat conftest.err >&5
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); } &&
2749         { ac_try='test -z "$ac_c_werror_flag"
2750                         || test ! -s conftest.err'
2751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752  (eval $ac_try) 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }; } &&
2756         { ac_try='test -s conftest$ac_exeext'
2757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758  (eval $ac_try) 2>&5
2759  ac_status=$?
2760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761  (exit $ac_status); }; }; then
2762  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2763else
2764  echo "$as_me: failed program was:" >&5
2765sed 's/^/| /' conftest.$ac_ext >&5
2766
2767fi
2768rm -f conftest.err conftest.$ac_objext \
2769      conftest$ac_exeext conftest.$ac_ext
2770            CFLAGS=
2771          ;;
2772        esac
2773    esac
2774  fi
2775  if test -z "$coin_opt_cflags"; then
2776    case $build in
2777      *-cygwin* | *-mingw*)
2778        case "$CC" in
2779          cl* | */cl* | CL* | */CL*)
2780            coin_opt_cflags='-MT -O2'
2781            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2782            coin_dbg_cflags='-MTd'
2783            ;;
2784          icl* | */icl* | ICL* | */ICL*)
2785            coin_opt_cflags='-MT -Ox'
2786            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2787            coin_dbg_cflags='-MTd -debug'
2788            ;;
2789        esac
2790        ;;
2791      *-linux-*)
2792        case "$CC" in
2793          icc* | */icc*)
2794            coin_opt_cflags="-O3 -ip -mp1"
2795            coin_add_cflags=""
2796            coin_dbg_cflags="-g"
2797            # Check if -i_dynamic is necessary (for new glibc library)
2798            CFLAGS=
2799            cat >conftest.$ac_ext <<_ACEOF
2800/* confdefs.h.  */
2801_ACEOF
2802cat confdefs.h >>conftest.$ac_ext
2803cat >>conftest.$ac_ext <<_ACEOF
2804/* end confdefs.h.  */
2805
2806int
2807main ()
2808{
2809int i=0; i++;
2810  ;
2811  return 0;
2812}
2813_ACEOF
2814rm -f conftest.$ac_objext conftest$ac_exeext
2815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2816  (eval $ac_link) 2>conftest.er1
2817  ac_status=$?
2818  grep -v '^ *+' conftest.er1 >conftest.err
2819  rm -f conftest.er1
2820  cat conftest.err >&5
2821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822  (exit $ac_status); } &&
2823         { ac_try='test -z "$ac_c_werror_flag"
2824                         || test ! -s conftest.err'
2825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826  (eval $ac_try) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); }; } &&
2830         { ac_try='test -s conftest$ac_exeext'
2831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832  (eval $ac_try) 2>&5
2833  ac_status=$?
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); }; }; then
2836  :
2837else
2838  echo "$as_me: failed program was:" >&5
2839sed 's/^/| /' conftest.$ac_ext >&5
2840
2841coin_add_cflags="-i_dynamic $coin_add_cflags"
2842fi
2843rm -f conftest.err conftest.$ac_objext \
2844      conftest$ac_exeext conftest.$ac_ext
2845            ;;
2846          pgcc* | */pgcc*)
2847            coin_opt_cflags="-fast"
2848            coin_add_cflags="-Kieee -pc 64"
2849            coin_dbg_cflags="-g"
2850            ;;
2851        esac
2852        ;;
2853      *-ibm-*)
2854        case "$CC" in
2855          xlc* | */xlc* | mpxlc* | */mpxlc*)
2856            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2857            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2858            coin_dbg_cflags="-g"
2859          ;;
2860        esac
2861        ;;
2862      *-hp-*)
2863        coin_opt_cflags="-O"
2864        coin_add_cflags="-Ae"
2865        coin_dbg_cflags="-g"
2866        ;;
2867      *-*-solaris*)
2868        coin_opt_cflags="-xO4"
2869        coin_dbg_cflags="-g"
2870        ;;
2871      *-sgi-*)
2872        coin_opt_cflags="-O -OPT:Olimit=0"
2873        coin_dbg_cflags="-g"
2874        ;;
2875    esac
2876  fi
2877
2878  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2879    coin_dbg_cflags="-g"
2880  fi
2881
2882  if test -z "$coin_opt_cflags"; then
2883    # Try if -O option works if nothing else is set
2884    CFLAGS="-O"
2885    cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h.  */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h.  */
2891
2892int
2893main ()
2894{
2895int i=0; i++;
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900rm -f conftest.$ac_objext conftest$ac_exeext
2901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2902  (eval $ac_link) 2>conftest.er1
2903  ac_status=$?
2904  grep -v '^ *+' conftest.er1 >conftest.err
2905  rm -f conftest.er1
2906  cat conftest.err >&5
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); } &&
2909         { ac_try='test -z "$ac_c_werror_flag"
2910                         || test ! -s conftest.err'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; } &&
2916         { ac_try='test -s conftest$ac_exeext'
2917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918  (eval $ac_try) 2>&5
2919  ac_status=$?
2920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921  (exit $ac_status); }; }; then
2922  coin_opt_cflags="-O"
2923else
2924  echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927fi
2928rm -f conftest.err conftest.$ac_objext \
2929      conftest$ac_exeext conftest.$ac_ext
2930  fi
2931
2932  # if PM doesn't want the warning messages, take them out
2933  if test x"$coin_skip_warn_cflags" = xyes; then
2934    coin_warn_cflags=
2935  fi
2936
2937  if test x${DBG_CFLAGS+set} != xset; then
2938    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2939  fi
2940  if test x${OPT_CFLAGS+set} != xset; then
2941    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2942  fi
2943
2944  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2945  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2946
2947  if test "$coin_debug_compile" = "true"; then
2948    CFLAGS="$DBG_CFLAGS"
2949  else
2950    CFLAGS="$OPT_CFLAGS"
2951  fi
2952else
2953  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2954  if test x${DBG_CFLAGS+set} != xset; then
2955    DBG_CFLAGS="$CFLAGS"
2956  fi
2957  if test x${OPT_CFLAGS+set} != xset; then
2958    OPT_CFLAGS="$CFLAGS"
2959  fi
2960fi
2961
2962# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2963
2964case "$CFLAGS" in
2965  *-mno-cygwin*)
2966    if test x${CPPFLAGS+set} != xset ; then
2967      CPPFLAGS="-mno-cygwin"
2968    else
2969      case "$CPPFLAGS" in
2970        *-mno-cygwin*)
2971          ;;
2972        *)
2973          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2974          ;;
2975      esac
2976    fi ;;
2977esac
2978
2979# Try if CFLAGS works
2980save_CFLAGS="$CFLAGS"
2981cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h.  */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h.  */
2987
2988int
2989main ()
2990{
2991int i=0; i++;
2992  ;
2993  return 0;
2994}
2995_ACEOF
2996rm -f conftest.$ac_objext conftest$ac_exeext
2997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2998  (eval $ac_link) 2>conftest.er1
2999  ac_status=$?
3000  grep -v '^ *+' conftest.er1 >conftest.err
3001  rm -f conftest.er1
3002  cat conftest.err >&5
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); } &&
3005         { ac_try='test -z "$ac_c_werror_flag"
3006                         || test ! -s conftest.err'
3007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008  (eval $ac_try) 2>&5
3009  ac_status=$?
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); }; } &&
3012         { ac_try='test -s conftest$ac_exeext'
3013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014  (eval $ac_try) 2>&5
3015  ac_status=$?
3016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017  (exit $ac_status); }; }; then
3018  :
3019else
3020  echo "$as_me: failed program was:" >&5
3021sed 's/^/| /' conftest.$ac_ext >&5
3022
3023CFLAGS=
3024fi
3025rm -f conftest.err conftest.$ac_objext \
3026      conftest$ac_exeext conftest.$ac_ext
3027if test -z "$CFLAGS"; then
3028  { 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
3029echo "$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;}
3030  CFLAGS='-O'
3031  cat >conftest.$ac_ext <<_ACEOF
3032/* confdefs.h.  */
3033_ACEOF
3034cat confdefs.h >>conftest.$ac_ext
3035cat >>conftest.$ac_ext <<_ACEOF
3036/* end confdefs.h.  */
3037
3038int
3039main ()
3040{
3041int i=0; i++;
3042  ;
3043  return 0;
3044}
3045_ACEOF
3046rm -f conftest.$ac_objext conftest$ac_exeext
3047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3048  (eval $ac_link) 2>conftest.er1
3049  ac_status=$?
3050  grep -v '^ *+' conftest.er1 >conftest.err
3051  rm -f conftest.er1
3052  cat conftest.err >&5
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); } &&
3055         { ac_try='test -z "$ac_c_werror_flag"
3056                         || test ! -s conftest.err'
3057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058  (eval $ac_try) 2>&5
3059  ac_status=$?
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); }; } &&
3062         { ac_try='test -s conftest$ac_exeext'
3063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064  (eval $ac_try) 2>&5
3065  ac_status=$?
3066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067  (exit $ac_status); }; }; then
3068  :
3069else
3070  echo "$as_me: failed program was:" >&5
3071sed 's/^/| /' conftest.$ac_ext >&5
3072
3073CFLAGS=
3074fi
3075rm -f conftest.err conftest.$ac_objext \
3076      conftest$ac_exeext conftest.$ac_ext
3077  if test -z "$CFLAGS"; then
3078    { 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
3079echo "$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;}
3080  fi
3081fi
3082
3083{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3084echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3085
3086
3087if test x"$MPICC" = x; then :; else
3088  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3089echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3090  CC="$MPICC"
3091fi
3092
3093# Correct ADDLIBS initialization if we are using the MS compiler
3094case "$CC" in
3095  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3096    ADDLIBS=
3097    case $build in
3098  *-mingw*)
3099    if test "${LD+set}" = set; then :; else
3100      LD=link
3101    fi
3102    ;;
3103 esac
3104 case $enable_doscompile in
3105   msvc)
3106     if test "x${LD+set}" = xset; then :; else
3107       LD=link
3108     fi
3109     ;;
3110 esac
3111
3112    ;;
3113esac
3114
3115ac_ext=c
3116ac_cpp='$CPP $CPPFLAGS'
3117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120
3121
3122case $build in
3123  *-cygwin* | *-mingw*)
3124     if test "$enable_doscompile" = msvc ; then
3125       coin_f77_comps="ifort fl32 compile_f2c"
3126     else
3127       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3128     fi ;;
3129  *-*-solaris*)
3130     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3131  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3132 esac
3133
3134
3135
3136
3137
3138
3139ac_ext=f
3140ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3141ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3143
3144
3145
3146
3147
3148
3149coin_has_f77=yes
3150
3151save_fflags="$FFLAGS"
3152
3153# We delete the cached value, since the test might not have been
3154# performed with our choice of compilers earlier
3155$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3156
3157# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3158# coin_f77_comps to see if there's a program that matches one of the names.
3159# If there's no such program, F77 = unavailable. If we match the name,
3160# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3161# compiler.
3162# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3163
3164
3165{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3166echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3167for ac_prog in $coin_f77_comps
3168do
3169  # Extract the first word of "$ac_prog", so it can be a program name with args.
3170set dummy $ac_prog; ac_word=$2
3171echo "$as_me:$LINENO: checking for $ac_word" >&5
3172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3173if test "${ac_cv_prog_F77+set}" = set; then
3174  echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176  if test -n "$F77"; then
3177  ac_cv_prog_F77="$F77" # Let the user override the test.
3178else
3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180for as_dir in $PATH
3181do
3182  IFS=$as_save_IFS
3183  test -z "$as_dir" && as_dir=.
3184  for ac_exec_ext in '' $ac_executable_extensions; do
3185  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186    ac_cv_prog_F77="$ac_prog"
3187    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3188    break 2
3189  fi
3190done
3191done
3192
3193fi
3194fi
3195F77=$ac_cv_prog_F77
3196if test -n "$F77"; then
3197  echo "$as_me:$LINENO: result: $F77" >&5
3198echo "${ECHO_T}$F77" >&6
3199else
3200  echo "$as_me:$LINENO: result: no" >&5
3201echo "${ECHO_T}no" >&6
3202fi
3203
3204  test -n "$F77" && break
3205done
3206test -n "$F77" || F77="unavailable"
3207
3208
3209if test "$F77" != "unavailable" ; then
3210  ac_ext=f
3211ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3212ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3214if test -n "$ac_tool_prefix"; then
3215  for ac_prog in $coin_f77_comps
3216  do
3217    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3218set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3219echo "$as_me:$LINENO: checking for $ac_word" >&5
3220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221if test "${ac_cv_prog_F77+set}" = set; then
3222  echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
3224  if test -n "$F77"; then
3225  ac_cv_prog_F77="$F77" # Let the user override the test.
3226else
3227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228for as_dir in $PATH
3229do
3230  IFS=$as_save_IFS
3231  test -z "$as_dir" && as_dir=.
3232  for ac_exec_ext in '' $ac_executable_extensions; do
3233  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3235    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236    break 2
3237  fi
3238done
3239done
3240
3241fi
3242fi
3243F77=$ac_cv_prog_F77
3244if test -n "$F77"; then
3245  echo "$as_me:$LINENO: result: $F77" >&5
3246echo "${ECHO_T}$F77" >&6
3247else
3248  echo "$as_me:$LINENO: result: no" >&5
3249echo "${ECHO_T}no" >&6
3250fi
3251
3252    test -n "$F77" && break
3253  done
3254fi
3255if test -z "$F77"; then
3256  ac_ct_F77=$F77
3257  for ac_prog in $coin_f77_comps
3258do
3259  # Extract the first word of "$ac_prog", so it can be a program name with args.
3260set dummy $ac_prog; ac_word=$2
3261echo "$as_me:$LINENO: checking for $ac_word" >&5
3262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3263if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3264  echo $ECHO_N "(cached) $ECHO_C" >&6
3265else
3266  if test -n "$ac_ct_F77"; then
3267  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272  IFS=$as_save_IFS
3273  test -z "$as_dir" && as_dir=.
3274  for ac_exec_ext in '' $ac_executable_extensions; do
3275  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276    ac_cv_prog_ac_ct_F77="$ac_prog"
3277    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278    break 2
3279  fi
3280done
3281done
3282
3283fi
3284fi
3285ac_ct_F77=$ac_cv_prog_ac_ct_F77
3286if test -n "$ac_ct_F77"; then
3287  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3288echo "${ECHO_T}$ac_ct_F77" >&6
3289else
3290  echo "$as_me:$LINENO: result: no" >&5
3291echo "${ECHO_T}no" >&6
3292fi
3293
3294  test -n "$ac_ct_F77" && break
3295done
3296
3297  F77=$ac_ct_F77
3298fi
3299
3300
3301# Provide some information about the compiler.
3302echo "$as_me:3302:" \
3303     "checking for Fortran 77 compiler version" >&5
3304ac_compiler=`set X $ac_compile; echo $2`
3305{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3306  (eval $ac_compiler --version </dev/null >&5) 2>&5
3307  ac_status=$?
3308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309  (exit $ac_status); }
3310{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3311  (eval $ac_compiler -v </dev/null >&5) 2>&5
3312  ac_status=$?
3313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314  (exit $ac_status); }
3315{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3316  (eval $ac_compiler -V </dev/null >&5) 2>&5
3317  ac_status=$?
3318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319  (exit $ac_status); }
3320rm -f a.out
3321
3322# If we don't use `.F' as extension, the preprocessor is not run on the
3323# input file.  (Note that this only needs to work for GNU compilers.)
3324ac_save_ext=$ac_ext
3325ac_ext=F
3326echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3327echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3328if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3329  echo $ECHO_N "(cached) $ECHO_C" >&6
3330else
3331  cat >conftest.$ac_ext <<_ACEOF
3332      program main
3333#ifndef __GNUC__
3334       choke me
3335#endif
3336
3337      end
3338_ACEOF
3339rm -f conftest.$ac_objext
3340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3341  (eval $ac_compile) 2>conftest.er1
3342  ac_status=$?
3343  grep -v '^ *+' conftest.er1 >conftest.err
3344  rm -f conftest.er1
3345  cat conftest.err >&5
3346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347  (exit $ac_status); } &&
3348         { ac_try='test -z "$ac_f77_werror_flag"
3349                         || test ! -s conftest.err'
3350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351  (eval $ac_try) 2>&5
3352  ac_status=$?
3353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); }; } &&
3355         { ac_try='test -s conftest.$ac_objext'
3356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357  (eval $ac_try) 2>&5
3358  ac_status=$?
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); }; }; then
3361  ac_compiler_gnu=yes
3362else
3363  echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
3366ac_compiler_gnu=no
3367fi
3368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3369ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3370
3371fi
3372echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3373echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3374ac_ext=$ac_save_ext
3375ac_test_FFLAGS=${FFLAGS+set}
3376ac_save_FFLAGS=$FFLAGS
3377FFLAGS=
3378echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3379echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3380if test "${ac_cv_prog_f77_g+set}" = set; then
3381  echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383  FFLAGS=-g
3384cat >conftest.$ac_ext <<_ACEOF
3385      program main
3386
3387      end
3388_ACEOF
3389rm -f conftest.$ac_objext
3390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391  (eval $ac_compile) 2>conftest.er1
3392  ac_status=$?
3393  grep -v '^ *+' conftest.er1 >conftest.err
3394  rm -f conftest.er1
3395  cat conftest.err >&5
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); } &&
3398         { ac_try='test -z "$ac_f77_werror_flag"
3399                         || test ! -s conftest.err'
3400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401  (eval $ac_try) 2>&5
3402  ac_status=$?
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }; } &&
3405         { ac_try='test -s conftest.$ac_objext'
3406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407  (eval $ac_try) 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); }; }; then
3411  ac_cv_prog_f77_g=yes
3412else
3413  echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416ac_cv_prog_f77_g=no
3417fi
3418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3419
3420fi
3421echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3422echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3423if test "$ac_test_FFLAGS" = set; then
3424  FFLAGS=$ac_save_FFLAGS
3425elif test $ac_cv_prog_f77_g = yes; then
3426  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3427    FFLAGS="-g -O2"
3428  else
3429    FFLAGS="-g"
3430  fi
3431else
3432  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3433    FFLAGS="-O2"
3434  else
3435    FFLAGS=
3436  fi
3437fi
3438
3439G77=`test $ac_compiler_gnu = yes && echo yes`
3440ac_ext=f
3441ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3442ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3444
3445else
3446  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3447echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3448fi
3449
3450FFLAGS="$save_fflags"
3451
3452# Check if a project specific FFLAGS variable has been set
3453if test x$COIN_PRJCT != x; then
3454  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3455  if test x$coin_tmp = xset; then
3456    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3457  fi
3458fi
3459
3460if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3461
3462  coin_add_fflags=
3463  coin_opt_fflags=
3464  coin_dbg_fflags=
3465  coin_warn_fflags=
3466
3467  if test "$G77" = "yes"; then
3468    coin_opt_fflags="-O3 -fomit-frame-pointer"
3469    coin_add_fflags="-pipe"
3470    coin_dbg_fflags="-g"
3471    case $enable_doscompile in
3472      mingw)
3473        FFLAGS="-mno-cygwin"
3474        cat >conftest.$ac_ext <<_ACEOF
3475      program main
3476      write(*,*) 'Hello world'
3477      end
3478_ACEOF
3479rm -f conftest.$ac_objext conftest$ac_exeext
3480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3481  (eval $ac_link) 2>conftest.er1
3482  ac_status=$?
3483  grep -v '^ *+' conftest.er1 >conftest.err
3484  rm -f conftest.er1
3485  cat conftest.err >&5
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); } &&
3488         { ac_try='test -z "$ac_f77_werror_flag"
3489                         || test ! -s conftest.err'
3490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491  (eval $ac_try) 2>&5
3492  ac_status=$?
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); }; } &&
3495         { ac_try='test -s conftest$ac_exeext'
3496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497  (eval $ac_try) 2>&5
3498  ac_status=$?
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); }; }; then
3501  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3502else
3503  echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506fi
3507rm -f conftest.err conftest.$ac_objext \
3508      conftest$ac_exeext conftest.$ac_ext
3509        FFLAGS=
3510      ;;
3511    esac
3512  else
3513    case $build in
3514      *-cygwin* | *-mingw*)
3515        case $F77 in
3516          ifort* | */ifort* | IFORT* | */IFORT* )
3517            coin_opt_fflags='-MT -O3'
3518            coin_add_fflags='-fpp -nologo'
3519            coin_dbg_fflags='-MTd -debug'
3520          ;;
3521          compile_f2c*)
3522            coin_opt_fflags='-MT -O2'
3523            coin_add_fflags='-nologo -wd4996'
3524            coin_dbg_fflags='-MTd'
3525          ;;
3526        esac
3527        ;;
3528      *-linux-*)
3529        case $F77 in
3530          ifc* | */ifc* | ifort* | */ifort*)
3531            coin_opt_fflags="-O3 -ip"
3532            coin_add_fflags="-cm -w90 -w95"
3533            coin_dbg_fflags="-g -CA -CB -CS"
3534            # Check if -i_dynamic is necessary (for new glibc library)
3535            FFLAGS=
3536            cat >conftest.$ac_ext <<_ACEOF
3537      program main
3538      write(*,*) 'Hello world'
3539      end
3540_ACEOF
3541rm -f conftest.$ac_objext conftest$ac_exeext
3542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3543  (eval $ac_link) 2>conftest.er1
3544  ac_status=$?
3545  grep -v '^ *+' conftest.er1 >conftest.err
3546  rm -f conftest.er1
3547  cat conftest.err >&5
3548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549  (exit $ac_status); } &&
3550         { ac_try='test -z "$ac_f77_werror_flag"
3551                         || test ! -s conftest.err'
3552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553  (eval $ac_try) 2>&5
3554  ac_status=$?
3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); }; } &&
3557         { ac_try='test -s conftest$ac_exeext'
3558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559  (eval $ac_try) 2>&5
3560  ac_status=$?
3561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562  (exit $ac_status); }; }; then
3563  :
3564else
3565  echo "$as_me: failed program was:" >&5
3566sed 's/^/| /' conftest.$ac_ext >&5
3567
3568coin_add_fflags="-i_dynamic $coin_add_fflags"
3569fi
3570rm -f conftest.err conftest.$ac_objext \
3571      conftest$ac_exeext conftest.$ac_ext
3572            ;;
3573          pgf77* | */pgf77* | pgf90* | */pgf90*)
3574            coin_opt_fflags="-fast"
3575            coin_add_fflags="-Kieee -pc 64"
3576            coin_dbg_fflags="-g"
3577          ;;
3578        esac
3579        ;;
3580      *-ibm-*)
3581        case "$F77" in
3582          xlf* | */xlf* | mpxlf* | */mpxlf* )
3583            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3584            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3585            coin_dbg_fflags="-g -C"
3586            ;;
3587        esac
3588        ;;
3589      *-hp-*)
3590        coin_opt_fflags="+O3"
3591        coin_add_fflags="+U77"
3592        coin_dbg_fflags="-C -g"
3593        ;;
3594      *-*-solaris*)
3595        coin_opt_fflags="-O4"
3596        coin_dbg_fflags="-g"
3597        ;;
3598      *-sgi-*)
3599        coin_opt_fflags="-O5 -OPT:Olimit=0"
3600        coin_dbg_fflags="-g"
3601        ;;
3602    esac
3603  fi
3604
3605  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3606    coin_dbg_fflags="-g"
3607  fi
3608
3609  if test -z "$coin_opt_fflags"; then
3610    # Try if -O option works if nothing else is set
3611    FFLAGS=-O
3612    cat >conftest.$ac_ext <<_ACEOF
3613      program main
3614      integer i
3615      end
3616_ACEOF
3617rm -f conftest.$ac_objext conftest$ac_exeext
3618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619  (eval $ac_link) 2>conftest.er1
3620  ac_status=$?
3621  grep -v '^ *+' conftest.er1 >conftest.err
3622  rm -f conftest.er1
3623  cat conftest.err >&5
3624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625  (exit $ac_status); } &&
3626         { ac_try='test -z "$ac_f77_werror_flag"
3627                         || test ! -s conftest.err'
3628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629  (eval $ac_try) 2>&5
3630  ac_status=$?
3631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632  (exit $ac_status); }; } &&
3633         { ac_try='test -s conftest$ac_exeext'
3634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635  (eval $ac_try) 2>&5
3636  ac_status=$?
3637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638  (exit $ac_status); }; }; then
3639  coin_opt_fflags="-O"
3640else
3641  echo "$as_me: failed program was:" >&5
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644fi
3645rm -f conftest.err conftest.$ac_objext \
3646      conftest$ac_exeext conftest.$ac_ext
3647  fi
3648
3649  # if PM doesn't want the warning messages, take them out
3650  if test x"$coin_skip_warn_fflags" = xyes; then
3651    coin_warn_fflags=
3652  fi
3653
3654  if test x${DBG_FFLAGS+set} != xset; then
3655    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3656  fi
3657  if test x${OPT_FFLAGS+set} != xset; then
3658    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3659  fi
3660
3661  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3662  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3663
3664  if test "$coin_debug_compile" = "true"; then
3665    FFLAGS="$DBG_FFLAGS"
3666  else
3667    FFLAGS="$OPT_FFLAGS"
3668  fi
3669else
3670  FFLAGS="$FFLAGS $ADD_FFLAGS"
3671  if test x${DBG_FFLAGS+set} != xset; then
3672    DBG_FFLAGS="$FFLAGS"
3673  fi
3674  if test x${OPT_FFLAGS+set} != xset; then
3675    OPT_FFLAGS="$FFLAGS"
3676  fi
3677fi
3678
3679# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3680case "$FFLAGS" in
3681  *-mno-cygwin*)
3682    if test x${CPPFLAGS+set} != xset ; then
3683      CPPFLAGS="-mno-cygwin"
3684    else
3685      case "$CPPFLAGS" in
3686        *-mno-cygwin*)
3687          ;;
3688        *)
3689          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3690          ;;
3691      esac
3692    fi ;;
3693esac
3694
3695# Try if FFLAGS works
3696if test "$F77" != "unavailable" ; then
3697  cat >conftest.$ac_ext <<_ACEOF
3698      program main
3699      integer i
3700      end
3701_ACEOF
3702rm -f conftest.$ac_objext conftest$ac_exeext
3703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3704  (eval $ac_link) 2>conftest.er1
3705  ac_status=$?
3706  grep -v '^ *+' conftest.er1 >conftest.err
3707  rm -f conftest.er1
3708  cat conftest.err >&5
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); } &&
3711         { ac_try='test -z "$ac_f77_werror_flag"
3712                         || test ! -s conftest.err'
3713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714  (eval $ac_try) 2>&5
3715  ac_status=$?
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); }; } &&
3718         { ac_try='test -s conftest$ac_exeext'
3719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720  (eval $ac_try) 2>&5
3721  ac_status=$?
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); }; }; then
3724  :
3725else
3726  echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729FFLAGS=
3730fi
3731rm -f conftest.err conftest.$ac_objext \
3732      conftest$ac_exeext conftest.$ac_ext
3733  if test -z "$FFLAGS"; then
3734    { 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
3735echo "$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;}
3736    FFLAGS='-O'
3737    cat >conftest.$ac_ext <<_ACEOF
3738      program main
3739      integer i
3740      end
3741_ACEOF
3742rm -f conftest.$ac_objext conftest$ac_exeext
3743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3744  (eval $ac_link) 2>conftest.er1
3745  ac_status=$?
3746  grep -v '^ *+' conftest.er1 >conftest.err
3747  rm -f conftest.er1
3748  cat conftest.err >&5
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); } &&
3751         { ac_try='test -z "$ac_f77_werror_flag"
3752                         || test ! -s conftest.err'
3753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754  (eval $ac_try) 2>&5
3755  ac_status=$?
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); }; } &&
3758         { ac_try='test -s conftest$ac_exeext'
3759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760  (eval $ac_try) 2>&5
3761  ac_status=$?
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); }; }; then
3764  :
3765else
3766  echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769FFLAGS=
3770fi
3771rm -f conftest.err conftest.$ac_objext \
3772      conftest$ac_exeext conftest.$ac_ext
3773    if test -z "$FFLAGS"; then
3774      { 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
3775echo "$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;}
3776    fi
3777  fi
3778fi
3779
3780{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3781echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3782
3783
3784if test x"$MPIF77" = x; then :; else
3785  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3786echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3787  F77="$MPIF77"
3788fi
3789
3790case "$F77" in
3791  ifort* | */ifort* | IFORT* | */IFORT*)
3792    case $build in
3793  *-mingw*)
3794    if test "${LD+set}" = set; then :; else
3795      LD=link
3796    fi
3797    ;;
3798 esac
3799 case $enable_doscompile in
3800   msvc)
3801     if test "x${LD+set}" = xset; then :; else
3802       LD=link
3803     fi
3804     ;;
3805 esac
3806
3807    ;;
3808esac
3809
3810ac_ext=c
3811ac_cpp='$CPP $CPPFLAGS'
3812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815
3816
3817
3818# Take care that optimization is disbled for DLAMCH.F
3819
3820if test "x$DLAMCH_FFLAGS" = x ; then
3821  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
3822  case $F77 in
3823    ifort* | */ifort* | IFORT* | */IFORT* )
3824      case $build in
3825        *-cygwin* | *-mingw*)
3826          DLAMCH_FFLAGS="$FFLAGS -Od"
3827          ;;
3828        *)
3829          DLAMCH_FFLAGS="$FFLAGS -O0"
3830          ;;
3831      esac
3832      ;;
3833    compile_f2c*)
3834      case "$CC" in
3835        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3836          DLAMCH_FFLAGS="$FFLAGS -Od"
3837        ;;
3838        *)
3839          DLAMCH_FFLAGS="$FFLAGS -O0"
3840        ;;
3841      esac
3842      ;;
3843    *)
3844      DLAMCH_FFLAGS="$FFLAGS -O0"
3845      ;;
3846  esac
3847fi
3848
3849
3850# Initialize autotools
3851{
3852
3853
3854
3855# START
3856
3857# Test if force_shared has been set
3858if test "x" = xforce_shared; then
3859  if test x$enable_shared = xno; then
3860    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3861echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3862   { (exit 1); exit 1; }; }
3863  fi
3864  enable_shared=yes;
3865else
3866  # On Cygwin and AIX, building DLLs doesn't work
3867  case $build in
3868    *-cygwin*)
3869      coin_disable_shared=yes
3870      platform=Cygwin
3871    ;;
3872    *-aix*)
3873      coin_disable_shared=yes
3874      platform=AIX
3875    ;;
3876    *-mingw*)
3877      coin_disable_shared=yes
3878      platform="Msys"
3879#      case "$CXX" in
3880#        cl*)
3881#          coin_disable_shared=yes
3882#          platform="Msys with cl"
3883#      ;;
3884#      esac
3885    ;;
3886  esac
3887fi
3888if test x"$coin_disable_shared" = xyes; then
3889  if test x"$enable_shared" = xyes; then
3890    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3891echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3892  fi
3893  enable_shared=no
3894fi
3895# By default, we only want the shared objects to be compiled
3896# Check whether --enable-static or --disable-static was given.
3897if test "${enable_static+set}" = set; then
3898  enableval="$enable_static"
3899  p=${PACKAGE-default}
3900    case $enableval in
3901    yes) enable_static=yes ;;
3902    no) enable_static=no ;;
3903    *)
3904     enable_static=no
3905      # Look at the argument we got.  We use all the common list separators.
3906      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3907      for pkg in $enableval; do
3908        IFS="$lt_save_ifs"
3909        if test "X$pkg" = "X$p"; then
3910          enable_static=yes
3911        fi
3912      done
3913      IFS="$lt_save_ifs"
3914      ;;
3915    esac
3916else
3917  enable_static=no
3918fi;
3919
3920
3921
3922
3923# Initialize automake
3924echo "$as_me:$LINENO: checking for egrep" >&5
3925echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3926if test "${ac_cv_prog_egrep+set}" = set; then
3927  echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3930    then ac_cv_prog_egrep='grep -E'
3931    else ac_cv_prog_egrep='egrep'
3932    fi
3933fi
3934echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3935echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3936 EGREP=$ac_cv_prog_egrep
3937
3938
3939am__api_version="1.9"
3940# Find a good install program.  We prefer a C program (faster),
3941# so one script is as good as another.  But avoid the broken or
3942# incompatible versions:
3943# SysV /etc/install, /usr/sbin/install
3944# SunOS /usr/etc/install
3945# IRIX /sbin/install
3946# AIX /bin/install
3947# AmigaOS /C/install, which installs bootblocks on floppy discs
3948# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3949# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3950# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3951# OS/2's system install, which has a completely different semantic
3952# ./install, which can be erroneously created by make from ./install.sh.
3953echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3954echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3955if test -z "$INSTALL"; then
3956if test "${ac_cv_path_install+set}" = set; then
3957  echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
3959  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962  IFS=$as_save_IFS
3963  test -z "$as_dir" && as_dir=.
3964  # Account for people who put trailing slashes in PATH elements.
3965case $as_dir/ in
3966  ./ | .// | /cC/* | \
3967  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3968  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3969  /usr/ucb/* ) ;;
3970  *)
3971    # OSF1 and SCO ODT 3.0 have their own names for install.
3972    # Don't use installbsd from OSF since it installs stuff as root
3973    # by default.
3974    for ac_prog in ginstall scoinst install; do
3975      for ac_exec_ext in '' $ac_executable_extensions; do
3976        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3977          if test $ac_prog = install &&
3978            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3979            # AIX install.  It has an incompatible calling convention.
3980            :
3981          elif test $ac_prog = install &&
3982            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3983            # program-specific install script used by HP pwplus--don't use.
3984            :
3985          else
3986            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3987            break 3
3988          fi
3989        fi
3990      done
3991    done
3992    ;;
3993esac
3994done
3995
3996
3997fi
3998  if test "${ac_cv_path_install+set}" = set; then
3999    INSTALL=$ac_cv_path_install
4000  else
4001    # As a last resort, use the slow shell script.  We don't cache a
4002    # path for INSTALL within a source directory, because that will
4003    # break other packages using the cache if that directory is
4004    # removed, or if the path is relative.
4005    INSTALL=$ac_install_sh
4006  fi
4007fi
4008echo "$as_me:$LINENO: result: $INSTALL" >&5
4009echo "${ECHO_T}$INSTALL" >&6
4010
4011# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4012# It thinks the first close brace ends the variable substitution.
4013test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4014
4015test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4016
4017test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4018
4019echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4020echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4021# Just in case
4022sleep 1
4023echo timestamp > conftest.file
4024# Do `set' in a subshell so we don't clobber the current shell's
4025# arguments.  Must try -L first in case configure is actually a
4026# symlink; some systems play weird games with the mod time of symlinks
4027# (eg FreeBSD returns the mod time of the symlink's containing
4028# directory).
4029if (
4030   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4031   if test "$*" = "X"; then
4032      # -L didn't work.
4033      set X `ls -t $srcdir/configure conftest.file`
4034   fi
4035   rm -f conftest.file
4036   if test "$*" != "X $srcdir/configure conftest.file" \
4037      && test "$*" != "X conftest.file $srcdir/configure"; then
4038
4039      # If neither matched, then we have a broken ls.  This can happen
4040      # if, for instance, CONFIG_SHELL is bash and it inherits a
4041      # broken ls alias from the environment.  This has actually
4042      # happened.  Such a system could not be considered "sane".
4043      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4044alias in your environment" >&5
4045echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4046alias in your environment" >&2;}
4047   { (exit 1); exit 1; }; }
4048   fi
4049
4050   test "$2" = conftest.file
4051   )
4052then
4053   # Ok.
4054   :
4055else
4056   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4057Check your system clock" >&5
4058echo "$as_me: error: newly created file is older than distributed files!
4059Check your system clock" >&2;}
4060   { (exit 1); exit 1; }; }
4061fi
4062echo "$as_me:$LINENO: result: yes" >&5
4063echo "${ECHO_T}yes" >&6
4064test "$program_prefix" != NONE &&
4065  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4066# Use a double $ so make ignores it.
4067test "$program_suffix" != NONE &&
4068  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4069# Double any \ or $.  echo might interpret backslashes.
4070# By default was `s,x,x', remove it if useless.
4071cat <<\_ACEOF >conftest.sed
4072s/[\\$]/&&/g;s/;s,x,x,$//
4073_ACEOF
4074program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4075rm conftest.sed
4076
4077# expand $ac_aux_dir to an absolute path
4078am_aux_dir=`cd $ac_aux_dir && pwd`
4079
4080test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4081# Use eval to expand $SHELL
4082if eval "$MISSING --run true"; then
4083  am_missing_run="$MISSING --run "
4084else
4085  am_missing_run=
4086  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4087echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4088fi
4089
4090if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4091  # We used to keeping the `.' as first argument, in order to
4092  # allow $(mkdir_p) to be used without argument.  As in
4093  #   $(mkdir_p) $(somedir)
4094  # where $(somedir) is conditionally defined.  However this is wrong
4095  # for two reasons:
4096  #  1. if the package is installed by a user who cannot write `.'
4097  #     make install will fail,
4098  #  2. the above comment should most certainly read
4099  #     $(mkdir_p) $(DESTDIR)$(somedir)
4100  #     so it does not work when $(somedir) is undefined and
4101  #     $(DESTDIR) is not.
4102  #  To support the latter case, we have to write
4103  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4104  #  so the `.' trick is pointless.
4105  mkdir_p='mkdir -p --'
4106else
4107  # On NextStep and OpenStep, the `mkdir' command does not
4108  # recognize any option.  It will interpret all options as
4109  # directories to create, and then abort because `.' already
4110  # exists.
4111  for d in ./-p ./--version;
4112  do
4113    test -d $d && rmdir $d
4114  done
4115  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4116  if test -f "$ac_aux_dir/mkinstalldirs"; then
4117    mkdir_p='$(mkinstalldirs)'
4118  else
4119    mkdir_p='$(install_sh) -d'
4120  fi
4121fi
4122
4123for ac_prog in gawk mawk nawk awk
4124do
4125  # Extract the first word of "$ac_prog", so it can be a program name with args.
4126set dummy $ac_prog; ac_word=$2
4127echo "$as_me:$LINENO: checking for $ac_word" >&5
4128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129if test "${ac_cv_prog_AWK+set}" = set; then
4130  echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132  if test -n "$AWK"; then
4133  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4134else
4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138  IFS=$as_save_IFS
4139  test -z "$as_dir" && as_dir=.
4140  for ac_exec_ext in '' $ac_executable_extensions; do
4141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142    ac_cv_prog_AWK="$ac_prog"
4143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144    break 2
4145  fi
4146done
4147done
4148
4149fi
4150fi
4151AWK=$ac_cv_prog_AWK
4152if test -n "$AWK"; then
4153  echo "$as_me:$LINENO: result: $AWK" >&5
4154echo "${ECHO_T}$AWK" >&6
4155else
4156  echo "$as_me:$LINENO: result: no" >&5
4157echo "${ECHO_T}no" >&6
4158fi
4159
4160  test -n "$AWK" && break
4161done
4162
4163echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4164echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4165set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4166if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4167  echo $ECHO_N "(cached) $ECHO_C" >&6
4168else
4169  cat >conftest.make <<\_ACEOF
4170all:
4171        @echo 'ac_maketemp="$(MAKE)"'
4172_ACEOF
4173# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4174eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4175if test -n "$ac_maketemp"; then
4176  eval ac_cv_prog_make_${ac_make}_set=yes
4177else
4178  eval ac_cv_prog_make_${ac_make}_set=no
4179fi
4180rm -f conftest.make
4181fi
4182if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4183  echo "$as_me:$LINENO: result: yes" >&5
4184echo "${ECHO_T}yes" >&6
4185  SET_MAKE=
4186else
4187  echo "$as_me:$LINENO: result: no" >&5
4188echo "${ECHO_T}no" >&6
4189  SET_MAKE="MAKE=${MAKE-make}"
4190fi
4191
4192rm -rf .tst 2>/dev/null
4193mkdir .tst 2>/dev/null
4194if test -d .tst; then
4195  am__leading_dot=.
4196else
4197  am__leading_dot=_
4198fi
4199rmdir .tst 2>/dev/null
4200
4201DEPDIR="${am__leading_dot}deps"
4202
4203          ac_config_commands="$ac_config_commands depfiles"
4204
4205
4206am_make=${MAKE-make}
4207cat > confinc << 'END'
4208am__doit:
4209        @echo done
4210.PHONY: am__doit
4211END
4212# If we don't find an include directive, just comment out the code.
4213echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4214echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4215am__include="#"
4216am__quote=
4217_am_result=none
4218# First try GNU make style include.
4219echo "include confinc" > confmf
4220# We grep out `Entering directory' and `Leaving directory'
4221# messages which can occur if `w' ends up in MAKEFLAGS.
4222# In particular we don't look at `^make:' because GNU make might
4223# be invoked under some other name (usually "gmake"), in which
4224# case it prints its new name instead of `make'.
4225if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4226   am__include=include
4227   am__quote=
4228   _am_result=GNU
4229fi
4230# Now try BSD make style include.
4231if test "$am__include" = "#"; then
4232   echo '.include "confinc"' > confmf
4233   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4234      am__include=.include
4235      am__quote="\""
4236      _am_result=BSD
4237   fi
4238fi
4239
4240
4241echo "$as_me:$LINENO: result: $_am_result" >&5
4242echo "${ECHO_T}$_am_result" >&6
4243rm -f confinc confmf
4244
4245# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4246if test "${enable_dependency_tracking+set}" = set; then
4247  enableval="$enable_dependency_tracking"
4248
4249fi;
4250if test "x$enable_dependency_tracking" != xno; then
4251  am_depcomp="$ac_aux_dir/depcomp"
4252  AMDEPBACKSLASH='\'
4253fi
4254
4255
4256if test "x$enable_dependency_tracking" != xno; then
4257  AMDEP_TRUE=
4258  AMDEP_FALSE='#'
4259else
4260  AMDEP_TRUE='#'
4261  AMDEP_FALSE=
4262fi
4263
4264
4265
4266
4267
4268# AC_MSG_NOTICE([Beginning automake initialisation.])
4269# Stuff for automake
4270# test to see if srcdir already configured
4271if test "`cd $srcdir && pwd`" != "`pwd`" &&
4272   test -f $srcdir/config.status; then
4273  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4274echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4275   { (exit 1); exit 1; }; }
4276fi
4277
4278# test whether we have cygpath
4279if test -z "$CYGPATH_W"; then
4280  if (cygpath --version) >/dev/null 2>/dev/null; then
4281    CYGPATH_W='cygpath -w'
4282  else
4283    CYGPATH_W=echo
4284  fi
4285fi
4286
4287
4288# Define the identity of the package.
4289 PACKAGE='thirdpartylapack'
4290 VERSION='0.0'
4291
4292
4293cat >>confdefs.h <<_ACEOF
4294#define PACKAGE "$PACKAGE"
4295_ACEOF
4296
4297
4298cat >>confdefs.h <<_ACEOF
4299#define VERSION "$VERSION"
4300_ACEOF
4301
4302# Some tools Automake needs.
4303
4304ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4305
4306
4307AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4308
4309
4310AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4311
4312
4313AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4314
4315
4316MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4317
4318install_sh=${install_sh-"$am_aux_dir/install-sh"}
4319
4320# Installed binaries are usually stripped using `strip' when the user
4321# run `make install-strip'.  However `strip' might not be the right
4322# tool to use in cross-compilation environments, therefore Automake
4323# will honor the `STRIP' environment variable to overrule this program.
4324if test "$cross_compiling" != no; then
4325  if test -n "$ac_tool_prefix"; then
4326  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4327set dummy ${ac_tool_prefix}strip; ac_word=$2
4328echo "$as_me:$LINENO: checking for $ac_word" >&5
4329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330if test "${ac_cv_prog_STRIP+set}" = set; then
4331  echo $ECHO_N "(cached) $ECHO_C" >&6
4332else
4333  if test -n "$STRIP"; then
4334  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4335else
4336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337for as_dir in $PATH
4338do
4339  IFS=$as_save_IFS
4340  test -z "$as_dir" && as_dir=.
4341  for ac_exec_ext in '' $ac_executable_extensions; do
4342  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4344    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345    break 2
4346  fi
4347done
4348done
4349
4350fi
4351fi
4352STRIP=$ac_cv_prog_STRIP
4353if test -n "$STRIP"; then
4354  echo "$as_me:$LINENO: result: $STRIP" >&5
4355echo "${ECHO_T}$STRIP" >&6
4356else
4357  echo "$as_me:$LINENO: result: no" >&5
4358echo "${ECHO_T}no" >&6
4359fi
4360
4361fi
4362if test -z "$ac_cv_prog_STRIP"; then
4363  ac_ct_STRIP=$STRIP
4364  # Extract the first word of "strip", so it can be a program name with args.
4365set dummy strip; ac_word=$2
4366echo "$as_me:$LINENO: checking for $ac_word" >&5
4367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4368if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4369  echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371  if test -n "$ac_ct_STRIP"; then
4372  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4373else
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377  IFS=$as_save_IFS
4378  test -z "$as_dir" && as_dir=.
4379  for ac_exec_ext in '' $ac_executable_extensions; do
4380  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381    ac_cv_prog_ac_ct_STRIP="strip"
4382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4383    break 2
4384  fi
4385done
4386done
4387
4388  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4389fi
4390fi
4391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4392if test -n "$ac_ct_STRIP"; then
4393  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4394echo "${ECHO_T}$ac_ct_STRIP" >&6
4395else
4396  echo "$as_me:$LINENO: result: no" >&5
4397echo "${ECHO_T}no" >&6
4398fi
4399
4400  STRIP=$ac_ct_STRIP
4401else
4402  STRIP="$ac_cv_prog_STRIP"
4403fi
4404
4405fi
4406INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4407
4408# We need awk for the "check" target.  The system "awk" is bad on
4409# some platforms.
4410# Always define AMTAR for backward compatibility.
4411
4412AMTAR=${AMTAR-"${am_missing_run}tar"}
4413
4414am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4415
4416
4417
4418
4419depcc="$CC"   am_compiler_list=
4420
4421echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4422echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4423if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4424  echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4427  # We make a subdir and do the tests there.  Otherwise we can end up
4428  # making bogus files that we don't know about and never remove.  For
4429  # instance it was reported that on HP-UX the gcc test will end up
4430  # making a dummy file named `D' -- because `-MD' means `put the output
4431  # in D'.
4432  mkdir conftest.dir
4433  # Copy depcomp to subdir because otherwise we won't find it if we're
4434  # using a relative directory.
4435  cp "$am_depcomp" conftest.dir
4436  cd conftest.dir
4437  # We will build objects and dependencies in a subdirectory because
4438  # it helps to detect inapplicable dependency modes.  For instance
4439  # both Tru64's cc and ICC support -MD to output dependencies as a
4440  # side effect of compilation, but ICC will put the dependencies in
4441  # the current directory while Tru64 will put them in the object
4442  # directory.
4443  mkdir sub
4444
4445  am_cv_CC_dependencies_compiler_type=none
4446  if test "$am_compiler_list" = ""; then
4447     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4448  fi
4449  for depmode in $am_compiler_list; do
4450    # Setup a source with many dependencies, because some compilers
4451    # like to wrap large dependency lists on column 80 (with \), and
4452    # we should not choose a depcomp mode which is confused by this.
4453    #
4454    # We need to recreate these files for each test, as the compiler may
4455    # overwrite some of them when testing with obscure command lines.
4456    # This happens at least with the AIX C compiler.
4457    : > sub/conftest.c
4458    for i in 1 2 3 4 5 6; do
4459      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4460      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4461      # Solaris 8's {/usr,}/bin/sh.
4462      touch sub/conftst$i.h
4463    done
4464    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4465
4466    case $depmode in
4467    nosideeffect)
4468      # after this tag, mechanisms are not by side-effect, so they'll
4469      # only be used when explicitly requested
4470      if test "x$enable_dependency_tracking" = xyes; then
4471        continue
4472      else
4473        break
4474      fi
4475      ;;
4476    none) break ;;
4477    esac
4478    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4479    # mode.  It turns out that the SunPro C++ compiler does not properly
4480    # handle `-M -o', and we need to detect this.
4481    if depmode=$depmode \
4482       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4483       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4484       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4485         >/dev/null 2>conftest.err &&
4486       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4487       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4488       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4489      # icc doesn't choke on unknown options, it will just issue warnings
4490      # or remarks (even with -Werror).  So we grep stderr for any message
4491      # that says an option was ignored or not supported.
4492      # When given -MP, icc 7.0 and 7.1 complain thusly:
4493      #   icc: Command line warning: ignoring option '-M'; no argument required
4494      # The diagnosis changed in icc 8.0:
4495      #   icc: Command line remark: option '-MP' not supported
4496      if (grep 'ignoring option' conftest.err ||
4497          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4498        am_cv_CC_dependencies_compiler_type=$depmode
4499        break
4500      fi
4501    fi
4502  done
4503
4504  cd ..
4505  rm -rf conftest.dir
4506else
4507  am_cv_CC_dependencies_compiler_type=none
4508fi
4509
4510fi
4511echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4512echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4513CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4514
4515
4516
4517if
4518  test "x$enable_dependency_tracking" != xno \
4519  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4520  am__fastdepCC_TRUE=
4521  am__fastdepCC_FALSE='#'
4522else
4523  am__fastdepCC_TRUE='#'
4524  am__fastdepCC_FALSE=
4525fi
4526
4527
4528
4529echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4530echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4531    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4532if test "${enable_maintainer_mode+set}" = set; then
4533  enableval="$enable_maintainer_mode"
4534  USE_MAINTAINER_MODE=$enableval
4535else
4536  USE_MAINTAINER_MODE=no
4537fi;
4538  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4539echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4540
4541
4542if test $USE_MAINTAINER_MODE = yes; then
4543  MAINTAINER_MODE_TRUE=
4544  MAINTAINER_MODE_FALSE='#'
4545else
4546  MAINTAINER_MODE_TRUE='#'
4547  MAINTAINER_MODE_FALSE=
4548fi
4549
4550  MAINT=$MAINTAINER_MODE_TRUE
4551
4552
4553
4554coin_have_externals=no
4555if test "$enable_maintainer_mode" = yes; then
4556
4557  # If maintainer mode is chosen, we make sure that the correct versions
4558  # of the tools are used, and that we know where libtool.m4 is (to
4559  # recreate acinclude.m4)
4560
4561
4562  LIBTOOLM4=
4563  # Normally, $HOME
4564  AUTOTOOLS_DFLT=$HOME
4565
4566  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4567echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4568if test "${ac_cv_use_correct_autotools+set}" = set; then
4569  echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571  ac_cv_use_correct_autotools=check
4572fi
4573echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4574echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4575
4576  if test $ac_cv_use_correct_autotools = check; then
4577    ac_cv_use_correct_autotools=yes
4578    # Check if we have autoconf
4579    # Extract the first word of "autoconf", so it can be a program name with args.
4580set dummy autoconf; ac_word=$2
4581echo "$as_me:$LINENO: checking for $ac_word" >&5
4582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4583if test "${ac_cv_prog_have_autoconf+set}" = set; then
4584  echo $ECHO_N "(cached) $ECHO_C" >&6
4585else
4586  if test -n "$have_autoconf"; then
4587  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4588else
4589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
4592  IFS=$as_save_IFS
4593  test -z "$as_dir" && as_dir=.
4594  for ac_exec_ext in '' $ac_executable_extensions; do
4595  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596    ac_cv_prog_have_autoconf="yes"
4597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598    break 2
4599  fi
4600done
4601done
4602
4603  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4604fi
4605fi
4606have_autoconf=$ac_cv_prog_have_autoconf
4607if test -n "$have_autoconf"; then
4608  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4609echo "${ECHO_T}$have_autoconf" >&6
4610else
4611  echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6
4613fi
4614
4615    if test $have_autoconf = no; then
4616      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4617echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4618   { (exit 1); exit 1; }; }
4619    fi
4620
4621    # Check whether autoconf is the correct version
4622    correct_version='2.59'
4623    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4624    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4625echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4626    autoconf --version > confauto.out 2>&1
4627    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4628      echo "$as_me:$LINENO: result: yes" >&5
4629echo "${ECHO_T}yes" >&6
4630    else
4631      rm -f confauto.out
4632      echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6
4634      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4635echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4636   { (exit 1); exit 1; }; }
4637    fi
4638    rm -f confauto.out
4639
4640    # Check if the executable autoconf is picked up from the correct location
4641    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4642echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4643    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4644    autoconf_dir=`cd $autoconf_dir; pwd`
4645    if test x$AUTOTOOLS_DIR = x; then
4646      want_dir=$AUTOTOOLS_DFLT/bin
4647    else
4648      want_dir=$AUTOTOOLS_DIR/bin
4649    fi
4650    if test $autoconf_dir = `cd $want_dir; pwd`; then
4651      echo "$as_me:$LINENO: result: yes" >&5
4652echo "${ECHO_T}yes" >&6
4653    else
4654      rm -f confauto.out
4655      echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6
4657      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4658echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4659   { (exit 1); exit 1; }; }
4660    fi
4661
4662    # Check if we have automake
4663    # Extract the first word of "automake", so it can be a program name with args.
4664set dummy automake; ac_word=$2
4665echo "$as_me:$LINENO: checking for $ac_word" >&5
4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4667if test "${ac_cv_prog_have_automake+set}" = set; then
4668  echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670  if test -n "$have_automake"; then
4671  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4672else
4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676  IFS=$as_save_IFS
4677  test -z "$as_dir" && as_dir=.
4678  for ac_exec_ext in '' $ac_executable_extensions; do
4679  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680    ac_cv_prog_have_automake="yes"
4681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682    break 2
4683  fi
4684done
4685done
4686
4687  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4688fi
4689fi
4690have_automake=$ac_cv_prog_have_automake
4691if test -n "$have_automake"; then
4692  echo "$as_me:$LINENO: result: $have_automake" >&5
4693echo "${ECHO_T}$have_automake" >&6
4694else
4695  echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
4697fi
4698
4699    if test $have_automake = no; then
4700      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4701echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4702   { (exit 1); exit 1; }; }
4703    fi
4704
4705    # Check whether automake is the correct version
4706    correct_version='1.9.6'
4707    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4708    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4709echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4710    automake --version > confauto.out 2>&1
4711    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4712      echo "$as_me:$LINENO: result: yes" >&5
4713echo "${ECHO_T}yes" >&6
4714    else
4715      rm -f confauto.out
4716      echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6
4718      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4719echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4720   { (exit 1); exit 1; }; }
4721    fi
4722    rm -f confauto.out
4723
4724    # Check if the executable automake is picked up from the correct location
4725    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4726echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4727    automake_dir=`which automake | sed -e 's=/automake=='`
4728    automake_dir=`cd $automake_dir; pwd`
4729    if test x$AUTOTOOLS_DIR = x; then
4730      want_dir=$AUTOTOOLS_DFLT/bin
4731    else
4732      want_dir=$AUTOTOOLS_DIR/bin
4733    fi
4734    if test $automake_dir = `cd $want_dir; pwd`; then
4735      echo "$as_me:$LINENO: result: yes" >&5
4736echo "${ECHO_T}yes" >&6
4737    else
4738      rm -f confauto.out
4739      echo "$as_me:$LINENO: result: no" >&5
4740echo "${ECHO_T}no" >&6
4741      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4742echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4743   { (exit 1); exit 1; }; }
4744    fi
4745
4746    # Check if this is the correct version of libtool (with escaped dots)
4747    if test x$AUTOTOOLS_DIR = x; then
4748      want_dir=$AUTOTOOLS_DFLT/share
4749    else
4750      want_dir=$AUTOTOOLS_DIR/share
4751    fi
4752    correct_version='1.5.22'
4753    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4754    if test -r $want_dir/libtool/ltmain.sh; then
4755  have_ltmain=yes
4756  :
4757else
4758  have_ltmain=no
4759  :
4760fi
4761
4762    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4763echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4764    if test $have_ltmain = yes; then
4765    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4766        echo "$as_me:$LINENO: result: yes" >&5
4767echo "${ECHO_T}yes" >&6
4768      else
4769        echo "$as_me:$LINENO: result: no" >&5
4770echo "${ECHO_T}no" >&6
4771        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4772echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4773   { (exit 1); exit 1; }; }
4774      fi
4775    else
4776      echo "$as_me:$LINENO: result: no" >&5
4777echo "${ECHO_T}no" >&6
4778      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4779echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4780   { (exit 1); exit 1; }; }
4781    fi
4782  fi
4783
4784  # Check if we can find the libtool file
4785  if test x$AUTOTOOLS_DIR = x; then
4786    want_dir=$AUTOTOOLS_DFLT/share
4787  else
4788    want_dir=$AUTOTOOLS_DIR/share
4789  fi
4790  if test -r $want_dir/aclocal/libtool.m4; then
4791  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4792  :
4793else
4794  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4795echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4796   { (exit 1); exit 1; }; }
4797  :
4798fi
4799
4800
4801  # Check if we have an Externals file
4802  if test -r $srcdir/Externals; then
4803    coin_have_externals=yes
4804  fi
4805  # Check if subversion is installed and understands https
4806  # Extract the first word of "svn", so it can be a program name with args.
4807set dummy svn; ac_word=$2
4808echo "$as_me:$LINENO: checking for $ac_word" >&5
4809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4810if test "${ac_cv_prog_have_svn+set}" = set; then
4811  echo $ECHO_N "(cached) $ECHO_C" >&6
4812else
4813  if test -n "$have_svn"; then
4814  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819  IFS=$as_save_IFS
4820  test -z "$as_dir" && as_dir=.
4821  for ac_exec_ext in '' $ac_executable_extensions; do
4822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823    ac_cv_prog_have_svn="yes"
4824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825    break 2
4826  fi
4827done
4828done
4829
4830  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4831fi
4832fi
4833have_svn=$ac_cv_prog_have_svn
4834if test -n "$have_svn"; then
4835  echo "$as_me:$LINENO: result: $have_svn" >&5
4836echo "${ECHO_T}$have_svn" >&6
4837else
4838  echo "$as_me:$LINENO: result: no" >&5
4839echo "${ECHO_T}no" >&6
4840fi
4841
4842  if test x$have_svn = xyes; then
4843    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4844echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4845if test "${ac_cv_svn_understands_https+set}" = set; then
4846  echo $ECHO_N "(cached) $ECHO_C" >&6
4847else
4848  svn --version > confauto.out 2>&1
4849                    if $EGREP https confauto.out >/dev/null 2>&1; then
4850                      ac_cv_svn_understands_https=yes
4851                    else
4852                      ac_cv_svn_understands_https=no
4853                      have_svn=no
4854                      ac_cv_prog_have_svn=no
4855                    fi
4856                    rm -f confauto.out
4857fi
4858echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4859echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4860  fi
4861
4862  # Find the location of the BuildTools directory
4863  BUILDTOOLSDIR=
4864  if test -r $srcdir/BuildTools/coin.m4; then
4865    BUILDTOOLSDIR=$srcdir/BuildTools
4866  else
4867    if test -r $srcdir/../BuildTools/coin.m4; then
4868      BUILDTOOLSDIR=$srcdir/../BuildTools
4869    else
4870      if test -r $srcdir/../../BuildTools/coin.m4; then
4871        BUILDTOOLSDIR=$srcdir/../../BuildTools
4872      else
4873        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4874echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4875   { (exit 1); exit 1; }; }
4876      fi
4877    fi
4878  fi
4879
4880
4881  # The following variable is set to the name of the directory where
4882  # the autotool scripts are located
4883
4884  AUX_DIR=$ac_aux_dir
4885fi
4886
4887# helpful variable for the base directory of this package
4888abs_source_dir=`cd $srcdir; pwd`
4889
4890
4891# Stuff for example Makefiles
4892if test x$prefix = xNONE; then
4893  full_prefix=$ac_default_prefix
4894else
4895  full_prefix=$prefix
4896fi
4897full_prefix=`cd $full_prefix ; pwd`
4898
4899abs_lib_dir=$full_prefix/lib
4900
4901abs_include_dir=$full_prefix/include
4902
4903abs_bin_dir=$full_prefix/bin
4904
4905
4906
4907if test $coin_have_externals = yes && test x$have_svn = xyes; then
4908  HAVE_EXTERNALS_TRUE=
4909  HAVE_EXTERNALS_FALSE='#'
4910else
4911  HAVE_EXTERNALS_TRUE='#'
4912  HAVE_EXTERNALS_FALSE=
4913fi
4914
4915
4916# AC_MSG_NOTICE([End automake initialisation.])
4917
4918
4919
4920LIBTOOL=
4921if test -r ../libtool; then
4922  coin_config_dir=..
4923  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4924fi
4925if test "x$LIBTOOL" = x; then
4926  if test -r ../../libtool; then
4927    coin_config_dir=../..
4928    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4929  fi
4930fi
4931
4932if test "x$LIBTOOL" = x; then
4933# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4934  # Stuff for libtool
4935  # Check whether --enable-shared or --disable-shared was given.
4936if test "${enable_shared+set}" = set; then
4937  enableval="$enable_shared"
4938  p=${PACKAGE-default}
4939    case $enableval in
4940    yes) enable_shared=yes ;;
4941    no) enable_shared=no ;;
4942    *)
4943      enable_shared=no
4944      # Look at the argument we got.  We use all the common list separators.
4945      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4946      for pkg in $enableval; do
4947        IFS="$lt_save_ifs"
4948        if test "X$pkg" = "X$p"; then
4949          enable_shared=yes
4950        fi
4951      done
4952      IFS="$lt_save_ifs"
4953      ;;
4954    esac
4955else
4956  enable_shared=yes
4957fi;
4958
4959# Check whether --enable-fast-install or --disable-fast-install was given.
4960if test "${enable_fast_install+set}" = set; then
4961  enableval="$enable_fast_install"
4962  p=${PACKAGE-default}
4963    case $enableval in
4964    yes) enable_fast_install=yes ;;
4965    no) enable_fast_install=no ;;
4966    *)
4967      enable_fast_install=no
4968      # Look at the argument we got.  We use all the common list separators.
4969      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4970      for pkg in $enableval; do
4971        IFS="$lt_save_ifs"
4972        if test "X$pkg" = "X$p"; then
4973          enable_fast_install=yes
4974        fi
4975      done
4976      IFS="$lt_save_ifs"
4977      ;;
4978    esac
4979else
4980  enable_fast_install=yes
4981fi;
4982
4983echo "$as_me:$LINENO: checking host system type" >&5
4984echo $ECHO_N "checking host system type... $ECHO_C" >&6
4985if test "${ac_cv_host+set}" = set; then
4986  echo $ECHO_N "(cached) $ECHO_C" >&6
4987else
4988  ac_cv_host_alias=$host_alias
4989test -z "$ac_cv_host_alias" &&
4990  ac_cv_host_alias=$ac_cv_build_alias
4991ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4992  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4993echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4994   { (exit 1); exit 1; }; }
4995
4996fi
4997echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4998echo "${ECHO_T}$ac_cv_host" >&6
4999host=$ac_cv_host
5000host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5001host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5002host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5003
5004
5005echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5006echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5007if test "${lt_cv_path_SED+set}" = set; then
5008  echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010  # Loop through the user's path and test for sed and gsed.
5011# Then use that list of sed's as ones to test for truncation.
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015  IFS=$as_save_IFS
5016  test -z "$as_dir" && as_dir=.
5017  for lt_ac_prog in sed gsed; do
5018    for ac_exec_ext in '' $ac_executable_extensions; do
5019      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5020        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5021      fi
5022    done
5023  done
5024done
5025lt_ac_max=0
5026lt_ac_count=0
5027# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5028# along with /bin/sed that truncates output.
5029for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5030  test ! -f $lt_ac_sed && continue
5031  cat /dev/null > conftest.in
5032  lt_ac_count=0
5033  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5034  # Check for GNU sed and select it if it is found.
5035  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5036    lt_cv_path_SED=$lt_ac_sed
5037    break
5038  fi
5039  while true; do
5040    cat conftest.in conftest.in >conftest.tmp
5041    mv conftest.tmp conftest.in
5042    cp conftest.in conftest.nl
5043    echo >>conftest.nl
5044    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5045    cmp -s conftest.out conftest.nl || break
5046    # 10000 chars as input seems more than enough
5047    test $lt_ac_count -gt 10 && break
5048    lt_ac_count=`expr $lt_ac_count + 1`
5049    if test $lt_ac_count -gt $lt_ac_max; then
5050      lt_ac_max=$lt_ac_count
5051      lt_cv_path_SED=$lt_ac_sed
5052    fi
5053  done
5054done
5055
5056fi
5057
5058SED=$lt_cv_path_SED
5059echo "$as_me:$LINENO: result: $SED" >&5
5060echo "${ECHO_T}$SED" >&6
5061
5062
5063# Check whether --with-gnu-ld or --without-gnu-ld was given.
5064if test "${with_gnu_ld+set}" = set; then
5065  withval="$with_gnu_ld"
5066  test "$withval" = no || with_gnu_ld=yes
5067else
5068  with_gnu_ld=no
5069fi;
5070ac_prog=ld
5071if test "$GCC" = yes; then
5072  # Check if gcc -print-prog-name=ld gives a path.
5073  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5074echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5075  case $host in
5076  *-*-mingw*)
5077    # gcc leaves a trailing carriage return which upsets mingw
5078    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5079  *)
5080    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5081  esac
5082  case $ac_prog in
5083    # Accept absolute paths.
5084    [\\/]* | ?:[\\/]*)
5085      re_direlt='/[^/][^/]*/\.\./'
5086      # Canonicalize the pathname of ld
5087      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5088      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5089        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5090      done
5091      test -z "$LD" && LD="$ac_prog"
5092      ;;
5093  "")
5094    # If it fails, then pretend we aren't using GCC.
5095    ac_prog=ld
5096    ;;
5097  *)
5098    # If it is relative, then search for the first ld in PATH.
5099    with_gnu_ld=unknown
5100    ;;
5101  esac
5102elif test "$with_gnu_ld" = yes; then
5103  echo "$as_me:$LINENO: checking for GNU ld" >&5
5104echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5105else
5106  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5107echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5108fi
5109if test "${lt_cv_path_LD+set}" = set; then
5110  echo $ECHO_N "(cached) $ECHO_C" >&6
5111else
5112  if test -z "$LD"; then
5113  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5114  for ac_dir in $PATH; do
5115    IFS="$lt_save_ifs"
5116    test -z "$ac_dir" && ac_dir=.
5117    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5118      lt_cv_path_LD="$ac_dir/$ac_prog"
5119      # Check to see if the program is GNU ld.  I'd rather use --version,
5120      # but apparently some variants of GNU ld only accept -v.
5121      # Break only if it was the GNU/non-GNU ld that we prefer.
5122      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5123      *GNU* | *'with BFD'*)
5124        test "$with_gnu_ld" != no && break
5125        ;;
5126      *)
5127        test "$with_gnu_ld" != yes && break
5128        ;;
5129      esac
5130    fi
5131  done
5132  IFS="$lt_save_ifs"
5133else
5134  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5135fi
5136fi
5137
5138LD="$lt_cv_path_LD"
5139if test -n "$LD"; then
5140  echo "$as_me:$LINENO: result: $LD" >&5
5141echo "${ECHO_T}$LD" >&6
5142else
5143  echo "$as_me:$LINENO: result: no" >&5
5144echo "${ECHO_T}no" >&6
5145fi
5146test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5147echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5148   { (exit 1); exit 1; }; }
5149echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5150echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5151if test "${lt_cv_prog_gnu_ld+set}" = set; then
5152  echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5155case `$LD -v 2>&1 </dev/null` in
5156*GNU* | *'with BFD'*)
5157  lt_cv_prog_gnu_ld=yes
5158  ;;
5159*)
5160  lt_cv_prog_gnu_ld=no
5161  ;;
5162esac
5163fi
5164echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5165echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5166with_gnu_ld=$lt_cv_prog_gnu_ld
5167
5168
5169echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5170echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5171if test "${lt_cv_ld_reload_flag+set}" = set; then
5172  echo $ECHO_N "(cached) $ECHO_C" >&6
5173else
5174  lt_cv_ld_reload_flag='-r'
5175fi
5176echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5177echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5178reload_flag=$lt_cv_ld_reload_flag
5179case $reload_flag in
5180"" | " "*) ;;
5181*) reload_flag=" $reload_flag" ;;
5182esac
5183reload_cmds='$LD$reload_flag -o $output$reload_objs'
5184case $host_os in
5185  darwin*)
5186    if test "$GCC" = yes; then
5187      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5188    else
5189      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5190    fi
5191    ;;
5192esac
5193
5194echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5195echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5196if test "${lt_cv_path_NM+set}" = set; then
5197  echo $ECHO_N "(cached) $ECHO_C" >&6
5198else
5199  if test -n "$NM"; then
5200  # Let the user override the test.
5201  lt_cv_path_NM="$NM"
5202else
5203  lt_nm_to_check="${ac_tool_prefix}nm"
5204  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5205    lt_nm_to_check="$lt_nm_to_check nm"
5206  fi
5207  for lt_tmp_nm in $lt_nm_to_check; do
5208    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5209    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5210      IFS="$lt_save_ifs"
5211      test -z "$ac_dir" && ac_dir=.
5212      tmp_nm="$ac_dir/$lt_tmp_nm"
5213      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5214        # Check to see if the nm accepts a BSD-compat flag.
5215        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5216        #   nm: unknown option "B" ignored
5217        # Tru64's nm complains that /dev/null is an invalid object file
5218        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5219        */dev/null* | *'Invalid file or object type'*)
5220          lt_cv_path_NM="$tmp_nm -B"
5221          break
5222          ;;
5223        *)
5224          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5225          */dev/null*)
5226            lt_cv_path_NM="$tmp_nm -p"
5227            break
5228            ;;
5229          *)
5230            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5231            continue # so that we can try to find one that supports BSD flags
5232            ;;
5233          esac
5234          ;;
5235        esac
5236      fi
5237    done
5238    IFS="$lt_save_ifs"
5239  done
5240  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5241fi
5242fi
5243echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5244echo "${ECHO_T}$lt_cv_path_NM" >&6
5245NM="$lt_cv_path_NM"
5246
5247echo "$as_me:$LINENO: checking whether ln -s works" >&5
5248echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5249LN_S=$as_ln_s
5250if test "$LN_S" = "ln -s"; then
5251  echo "$as_me:$LINENO: result: yes" >&5
5252echo "${ECHO_T}yes" >&6
5253else
5254  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5255echo "${ECHO_T}no, using $LN_S" >&6
5256fi
5257
5258echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5259echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5260if test "${lt_cv_deplibs_check_method+set}" = set; then
5261  echo $ECHO_N "(cached) $ECHO_C" >&6
5262else
5263  lt_cv_file_magic_cmd='$MAGIC_CMD'
5264lt_cv_file_magic_test_file=
5265lt_cv_deplibs_check_method='unknown'
5266# Need to set the preceding variable on all platforms that support
5267# interlibrary dependencies.
5268# 'none' -- dependencies not supported.
5269# `unknown' -- same as none, but documents that we really don't know.
5270# 'pass_all' -- all dependencies passed with no checks.
5271# 'test_compile' -- check by making test program.
5272# 'file_magic [[regex]]' -- check by looking for files in library path
5273# which responds to the $file_magic_cmd with a given extended regex.
5274# If you have `file' or equivalent on your system and you're not sure
5275# whether `pass_all' will *always* work, you probably want this one.
5276
5277case $host_os in
5278aix4* | aix5*)
5279  lt_cv_deplibs_check_method=pass_all
5280  ;;
5281
5282beos*)
5283  lt_cv_deplibs_check_method=pass_all
5284  ;;
5285
5286bsdi[45]*)
5287  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5288  lt_cv_file_magic_cmd='/usr/bin/file -L'
5289  lt_cv_file_magic_test_file=/shlib/libc.so
5290  ;;
5291
5292cygwin*)
5293  # func_win32_libid is a shell function defined in ltmain.sh
5294  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5295  lt_cv_file_magic_cmd='func_win32_libid'
5296  ;;
5297
5298mingw* | pw32*)
5299  # Base MSYS/MinGW do not provide the 'file' command needed by
5300  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5301  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5302  lt_cv_file_magic_cmd='$OBJDUMP -f'
5303  ;;
5304
5305darwin* | rhapsody*)
5306  lt_cv_deplibs_check_method=pass_all
5307  ;;
5308
5309freebsd* | kfreebsd*-gnu | dragonfly*)
5310  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5311    case $host_cpu in
5312    i*86 )
5313      # Not sure whether the presence of OpenBSD here was a mistake.
5314      # Let's accept both of them until this is cleared up.
5315      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5316      lt_cv_file_magic_cmd=/usr/bin/file
5317      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5318      ;;
5319    esac
5320  else
5321    lt_cv_deplibs_check_method=pass_all
5322  fi
5323  ;;
5324
5325gnu*)
5326  lt_cv_deplibs_check_method=pass_all
5327  ;;
5328
5329hpux10.20* | hpux11*)
5330  lt_cv_file_magic_cmd=/usr/bin/file
5331  case $host_cpu in
5332  ia64*)
5333    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5334    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5335    ;;
5336  hppa*64*)
5337    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]'
5338    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5339    ;;
5340  *)
5341    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5342    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5343    ;;
5344  esac
5345  ;;
5346
5347interix3*)
5348  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5349  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5350  ;;
5351
5352irix5* | irix6* | nonstopux*)
5353  case $LD in
5354  *-32|*"-32 ") libmagic=32-bit;;
5355  *-n32|*"-n32 ") libmagic=N32;;
5356  *-64|*"-64 ") libmagic=64-bit;;
5357  *) libmagic=never-match;;
5358  esac
5359  lt_cv_deplibs_check_method=pass_all
5360  ;;
5361
5362# This must be Linux ELF.
5363linux*)
5364  lt_cv_deplibs_check_method=pass_all
5365  ;;
5366
5367netbsd*)
5368  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5369    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5370  else
5371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5372  fi
5373  ;;
5374
5375newos6*)
5376  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5377  lt_cv_file_magic_cmd=/usr/bin/file
5378  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5379  ;;
5380
5381nto-qnx*)
5382  lt_cv_deplibs_check_method=unknown
5383  ;;
5384
5385openbsd*)
5386  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5387    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5388  else
5389    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5390  fi
5391  ;;
5392
5393osf3* | osf4* | osf5*)
5394  lt_cv_deplibs_check_method=pass_all
5395  ;;
5396
5397solaris*)
5398  lt_cv_deplibs_check_method=pass_all
5399  ;;
5400
5401sysv4 | sysv4.3*)
5402  case $host_vendor in
5403  motorola)
5404    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]'
5405    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5406    ;;
5407  ncr)
5408    lt_cv_deplibs_check_method=pass_all
5409    ;;
5410  sequent)
5411    lt_cv_file_magic_cmd='/bin/file'
5412    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5413    ;;
5414  sni)
5415    lt_cv_file_magic_cmd='/bin/file'
5416    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5417    lt_cv_file_magic_test_file=/lib/libc.so
5418    ;;
5419  siemens)
5420    lt_cv_deplibs_check_method=pass_all
5421    ;;
5422  pc)
5423    lt_cv_deplibs_check_method=pass_all
5424    ;;
5425  esac
5426  ;;
5427
5428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5429  lt_cv_deplibs_check_method=pass_all
5430  ;;
5431esac
5432
5433fi
5434echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5435echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5436file_magic_cmd=$lt_cv_file_magic_cmd
5437deplibs_check_method=$lt_cv_deplibs_check_method
5438test -z "$deplibs_check_method" && deplibs_check_method=unknown
5439
5440
5441
5442
5443# If no C compiler was specified, use CC.
5444LTCC=${LTCC-"$CC"}
5445
5446# If no C compiler flags were specified, use CFLAGS.
5447LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5448
5449# Allow CC to be a program name with arguments.
5450compiler=$CC
5451
5452# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5453if test "${enable_libtool_lock+set}" = set; then
5454  enableval="$enable_libtool_lock"
5455
5456fi;
5457test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5458
5459# Some flags need to be propagated to the compiler or linker for good
5460# libtool support.
5461case $host in
5462ia64-*-hpux*)
5463  # Find out which ABI we are using.
5464  echo 'int i;' > conftest.$ac_ext
5465  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466  (eval $ac_compile) 2>&5
5467  ac_status=$?
5468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469  (exit $ac_status); }; then
5470    case `/usr/bin/file conftest.$ac_objext` in
5471    *ELF-32*)
5472      HPUX_IA64_MODE="32"
5473      ;;
5474    *ELF-64*)
5475      HPUX_IA64_MODE="64"
5476      ;;
5477    esac
5478  fi
5479  rm -rf conftest*
5480  ;;
5481*-*-irix6*)
5482  # Find out which ABI we are using.
5483  echo '#line 5483 "configure"' > conftest.$ac_ext
5484  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485  (eval $ac_compile) 2>&5
5486  ac_status=$?
5487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488  (exit $ac_status); }; then
5489   if test "$lt_cv_prog_gnu_ld" = yes; then
5490    case `/usr/bin/file conftest.$ac_objext` in
5491    *32-bit*)
5492      LD="${LD-ld} -melf32bsmip"
5493      ;;
5494    *N32*)
5495      LD="${LD-ld} -melf32bmipn32"
5496      ;;
5497    *64-bit*)
5498      LD="${LD-ld} -melf64bmip"
5499      ;;
5500    esac
5501   else
5502    case `/usr/bin/file conftest.$ac_objext` in
5503    *32-bit*)
5504      LD="${LD-ld} -32"
5505      ;;
5506    *N32*)
5507      LD="${LD-ld} -n32"
5508      ;;
5509    *64-bit*)
5510      LD="${LD-ld} -64"
5511      ;;
5512    esac
5513   fi
5514  fi
5515  rm -rf conftest*
5516  ;;
5517
5518x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5519  # Find out which ABI we are using.
5520  echo 'int i;' > conftest.$ac_ext
5521  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5522  (eval $ac_compile) 2>&5
5523  ac_status=$?
5524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525  (exit $ac_status); }; then
5526    case `/usr/bin/file conftest.o` in
5527    *32-bit*)
5528      case $host in
5529        x86_64-*linux*)
5530          LD="${LD-ld} -m elf_i386"
5531          ;;
5532        ppc64-*linux*|powerpc64-*linux*)
5533          LD="${LD-ld} -m elf32ppclinux"
5534          ;;
5535        s390x-*linux*)
5536          LD="${LD-ld} -m elf_s390"
5537          ;;
5538        sparc64-*linux*)
5539          LD="${LD-ld} -m elf32_sparc"
5540          ;;
5541      esac
5542      ;;
5543    *64-bit*)
5544      case $host in
5545        x86_64-*linux*)
5546          LD="${LD-ld} -m elf_x86_64"
5547          ;;
5548        ppc*-*linux*|powerpc*-*linux*)
5549          LD="${LD-ld} -m elf64ppc"
5550          ;;
5551        s390*-*linux*)
5552          LD="${LD-ld} -m elf64_s390"
5553          ;;
5554        sparc*-*linux*)
5555          LD="${LD-ld} -m elf64_sparc"
5556          ;;
5557      esac
5558      ;;
5559    esac
5560  fi
5561  rm -rf conftest*
5562  ;;
5563
5564*-*-sco3.2v5*)
5565  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5566  SAVE_CFLAGS="$CFLAGS"
5567  CFLAGS="$CFLAGS -belf"
5568  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5569echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5570if test "${lt_cv_cc_needs_belf+set}" = set; then
5571  echo $ECHO_N "(cached) $ECHO_C" >&6
5572else
5573  ac_ext=c
5574ac_cpp='$CPP $CPPFLAGS'
5575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5577ac_compiler_gnu=$ac_cv_c_compiler_gnu
5578
5579     cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h.  */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h.  */
5585
5586int
5587main ()
5588{
5589
5590  ;
5591  return 0;
5592}
5593_ACEOF
5594rm -f conftest.$ac_objext conftest$ac_exeext
5595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596  (eval $ac_link) 2>conftest.er1
5597  ac_status=$?
5598  grep -v '^ *+' conftest.er1 >conftest.err
5599  rm -f conftest.er1
5600  cat conftest.err >&5
5601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602  (exit $ac_status); } &&
5603         { ac_try='test -z "$ac_c_werror_flag"
5604                         || test ! -s conftest.err'
5605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606  (eval $ac_try) 2>&5
5607  ac_status=$?
5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609  (exit $ac_status); }; } &&
5610         { ac_try='test -s conftest$ac_exeext'
5611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612  (eval $ac_try) 2>&5
5613  ac_status=$?
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); }; }; then
5616  lt_cv_cc_needs_belf=yes
5617else
5618  echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
5621lt_cv_cc_needs_belf=no
5622fi
5623rm -f conftest.err conftest.$ac_objext \
5624      conftest$ac_exeext conftest.$ac_ext
5625     ac_ext=c
5626ac_cpp='$CPP $CPPFLAGS'
5627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5629ac_compiler_gnu=$ac_cv_c_compiler_gnu
5630
5631fi
5632echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5633echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5634  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5635    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5636    CFLAGS="$SAVE_CFLAGS"
5637  fi
5638  ;;
5639sparc*-*solaris*)
5640  # Find out which ABI we are using.
5641  echo 'int i;' > conftest.$ac_ext
5642  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643  (eval $ac_compile) 2>&5
5644  ac_status=$?
5645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646  (exit $ac_status); }; then
5647    case `/usr/bin/file conftest.o` in
5648    *64-bit*)
5649      case $lt_cv_prog_gnu_ld in
5650      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5651      *)    LD="${LD-ld} -64" ;;
5652      esac
5653      ;;
5654    esac
5655  fi
5656  rm -rf conftest*
5657  ;;
5658
5659
5660esac
5661
5662need_locks="$enable_libtool_lock"
5663
5664
5665ac_ext=c
5666ac_cpp='$CPP $CPPFLAGS'
5667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5669ac_compiler_gnu=$ac_cv_c_compiler_gnu
5670echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5671echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5672# On Suns, sometimes $CPP names a directory.
5673if test -n "$CPP" && test -d "$CPP"; then
5674  CPP=
5675fi
5676if test -z "$CPP"; then
5677  if test "${ac_cv_prog_CPP+set}" = set; then
5678  echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680      # Double quotes because CPP needs to be expanded
5681    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5682    do
5683      ac_preproc_ok=false
5684for ac_c_preproc_warn_flag in '' yes
5685do
5686  # Use a header file that comes with gcc, so configuring glibc
5687  # with a fresh cross-compiler works.
5688  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5689  # <limits.h> exists even on freestanding compilers.
5690  # On the NeXT, cc -E runs the code through the compiler's parser,
5691  # not just through cpp. "Syntax error" is here to catch this case.
5692  cat >conftest.$ac_ext <<_ACEOF
5693/* confdefs.h.  */
5694_ACEOF
5695cat confdefs.h >>conftest.$ac_ext
5696cat >>conftest.$ac_ext <<_ACEOF
5697/* end confdefs.h.  */
5698#ifdef __STDC__
5699# include <limits.h>
5700#else
5701# include <assert.h>
5702#endif
5703                     Syntax error
5704_ACEOF
5705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5706  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5707  ac_status=$?
5708  grep -v '^ *+' conftest.er1 >conftest.err
5709  rm -f conftest.er1
5710  cat conftest.err >&5
5711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712  (exit $ac_status); } >/dev/null; then
5713  if test -s conftest.err; then
5714    ac_cpp_err=$ac_c_preproc_warn_flag
5715    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5716  else
5717    ac_cpp_err=
5718  fi
5719else
5720  ac_cpp_err=yes
5721fi
5722if test -z "$ac_cpp_err"; then
5723  :
5724else
5725  echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728  # Broken: fails on valid input.
5729continue
5730fi
5731rm -f conftest.err conftest.$ac_ext
5732
5733  # OK, works on sane cases.  Now check whether non-existent headers
5734  # can be detected and how.
5735  cat >conftest.$ac_ext <<_ACEOF
5736/* confdefs.h.  */
5737_ACEOF
5738cat confdefs.h >>conftest.$ac_ext
5739cat >>conftest.$ac_ext <<_ACEOF
5740/* end confdefs.h.  */
5741#include <ac_nonexistent.h>
5742_ACEOF
5743if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5744  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5745  ac_status=$?
5746  grep -v '^ *+' conftest.er1 >conftest.err
5747  rm -f conftest.er1
5748  cat conftest.err >&5
5749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750  (exit $ac_status); } >/dev/null; then
5751  if test -s conftest.err; then
5752    ac_cpp_err=$ac_c_preproc_warn_flag
5753    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5754  else
5755    ac_cpp_err=
5756  fi
5757else
5758  ac_cpp_err=yes
5759fi
5760if test -z "$ac_cpp_err"; then
5761  # Broken: success on invalid input.
5762continue
5763else
5764  echo "$as_me: failed program was:" >&5
5765sed 's/^/| /' conftest.$ac_ext >&5
5766
5767  # Passes both tests.
5768ac_preproc_ok=:
5769break
5770fi
5771rm -f conftest.err conftest.$ac_ext
5772
5773done
5774# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5775rm -f conftest.err conftest.$ac_ext
5776if $ac_preproc_ok; then
5777  break
5778fi
5779
5780    done
5781    ac_cv_prog_CPP=$CPP
5782
5783fi
5784  CPP=$ac_cv_prog_CPP
5785else
5786  ac_cv_prog_CPP=$CPP
5787fi
5788echo "$as_me:$LINENO: result: $CPP" >&5
5789echo "${ECHO_T}$CPP" >&6
5790ac_preproc_ok=false
5791for ac_c_preproc_warn_flag in '' yes
5792do
5793  # Use a header file that comes with gcc, so configuring glibc
5794  # with a fresh cross-compiler works.
5795  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5796  # <limits.h> exists even on freestanding compilers.
5797  # On the NeXT, cc -E runs the code through the compiler's parser,
5798  # not just through cpp. "Syntax error" is here to catch this case.
5799  cat >conftest.$ac_ext <<_ACEOF
5800/* confdefs.h.  */
5801_ACEOF
5802cat confdefs.h >>conftest.$ac_ext
5803cat >>conftest.$ac_ext <<_ACEOF
5804/* end confdefs.h.  */
5805#ifdef __STDC__
5806# include <limits.h>
5807#else
5808# include <assert.h>
5809#endif
5810                     Syntax error
5811_ACEOF
5812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5813  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5814  ac_status=$?
5815  grep -v '^ *+' conftest.er1 >conftest.err
5816  rm -f conftest.er1
5817  cat conftest.err >&5
5818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819  (exit $ac_status); } >/dev/null; then
5820  if test -s conftest.err; then
5821    ac_cpp_err=$ac_c_preproc_warn_flag
5822    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5823  else
5824    ac_cpp_err=
5825  fi
5826else
5827  ac_cpp_err=yes
5828fi
5829if test -z "$ac_cpp_err"; then
5830  :
5831else
5832  echo "$as_me: failed program was:" >&5
5833sed 's/^/| /' conftest.$ac_ext >&5
5834
5835  # Broken: fails on valid input.
5836continue
5837fi
5838rm -f conftest.err conftest.$ac_ext
5839
5840  # OK, works on sane cases.  Now check whether non-existent headers
5841  # can be detected and how.
5842  cat >conftest.$ac_ext <<_ACEOF
5843/* confdefs.h.  */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5847/* end confdefs.h.  */
5848#include <ac_nonexistent.h>
5849_ACEOF
5850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5851  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5852  ac_status=$?
5853  grep -v '^ *+' conftest.er1 >conftest.err
5854  rm -f conftest.er1
5855  cat conftest.err >&5
5856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857  (exit $ac_status); } >/dev/null; then
5858  if test -s conftest.err; then
5859    ac_cpp_err=$ac_c_preproc_warn_flag
5860    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5861  else
5862    ac_cpp_err=
5863  fi
5864else
5865  ac_cpp_err=yes
5866fi
5867if test -z "$ac_cpp_err"; then
5868  # Broken: success on invalid input.
5869continue
5870else
5871  echo "$as_me: failed program was:" >&5
5872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874  # Passes both tests.
5875ac_preproc_ok=:
5876break
5877fi
5878rm -f conftest.err conftest.$ac_ext
5879
5880done
5881# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5882rm -f conftest.err conftest.$ac_ext
5883if $ac_preproc_ok; then
5884  :
5885else
5886  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5887See \`config.log' for more details." >&5
5888echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5889See \`config.log' for more details." >&2;}
5890   { (exit 1); exit 1; }; }
5891fi
5892
5893ac_ext=c
5894ac_cpp='$CPP $CPPFLAGS'
5895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5897ac_compiler_gnu=$ac_cv_c_compiler_gnu
5898
5899
5900echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5901echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5902if test "${ac_cv_header_stdc+set}" = set; then
5903  echo $ECHO_N "(cached) $ECHO_C" >&6
5904else
5905  cat >conftest.$ac_ext <<_ACEOF
5906/* confdefs.h.  */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
5910/* end confdefs.h.  */
5911#include <stdlib.h>
5912#include <stdarg.h>
5913#include <string.h>
5914#include <float.h>
5915
5916int
5917main ()
5918{
5919
5920  ;
5921  return 0;
5922}
5923_ACEOF
5924rm -f conftest.$ac_objext
5925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926  (eval $ac_compile) 2>conftest.er1
5927  ac_status=$?
5928  grep -v '^ *+' conftest.er1 >conftest.err
5929  rm -f conftest.er1
5930  cat conftest.err >&5
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); } &&
5933         { ac_try='test -z "$ac_c_werror_flag"
5934                         || test ! -s conftest.err'
5935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936  (eval $ac_try) 2>&5
5937  ac_status=$?
5938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939  (exit $ac_status); }; } &&
5940         { ac_try='test -s conftest.$ac_objext'
5941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942  (eval $ac_try) 2>&5
5943  ac_status=$?
5944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945  (exit $ac_status); }; }; then
5946  ac_cv_header_stdc=yes
5947else
5948  echo "$as_me: failed program was:" >&5
5949sed 's/^/| /' conftest.$ac_ext >&5
5950
5951ac_cv_header_stdc=no
5952fi
5953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5954
5955if test $ac_cv_header_stdc = yes; then
5956  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5957  cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h.  */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h.  */
5963#include <string.h>
5964
5965_ACEOF
5966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5967  $EGREP "memchr" >/dev/null 2>&1; then
5968  :
5969else
5970  ac_cv_header_stdc=no
5971fi
5972rm -f conftest*
5973
5974fi
5975
5976if test $ac_cv_header_stdc = yes; then
5977  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5978  cat >conftest.$ac_ext <<_ACEOF
5979/* confdefs.h.  */
5980_ACEOF
5981cat confdefs.h >>conftest.$ac_ext
5982cat >>conftest.$ac_ext <<_ACEOF
5983/* end confdefs.h.  */
5984#include <stdlib.h>
5985
5986_ACEOF
5987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5988  $EGREP "free" >/dev/null 2>&1; then
5989  :
5990else
5991  ac_cv_header_stdc=no
5992fi
5993rm -f conftest*
5994
5995fi
5996
5997if test $ac_cv_header_stdc = yes; then
5998  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5999  if test "$cross_compiling" = yes; then
6000  :
6001else
6002  cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h.  */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h.  */
6008#include <ctype.h>
6009#if ((' ' & 0x0FF) == 0x020)
6010# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6011# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6012#else
6013# define ISLOWER(c) \
6014                   (('a' <= (c) && (c) <= 'i') \
6015                     || ('j' <= (c) && (c) <= 'r') \
6016                     || ('s' <= (c) && (c) <= 'z'))
6017# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6018#endif
6019
6020#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6021int
6022main ()
6023{
6024  int i;
6025  for (i = 0; i < 256; i++)
6026    if (XOR (islower (i), ISLOWER (i))
6027        || toupper (i) != TOUPPER (i))
6028      exit(2);
6029  exit (0);
6030}
6031_ACEOF
6032rm -f conftest$ac_exeext
6033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034  (eval $ac_link) 2>&5
6035  ac_status=$?
6036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039  (eval $ac_try) 2>&5
6040  ac_status=$?
6041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042  (exit $ac_status); }; }; then
6043  :
6044else
6045  echo "$as_me: program exited with status $ac_status" >&5
6046echo "$as_me: failed program was:" >&5
6047sed 's/^/| /' conftest.$ac_ext >&5
6048
6049( exit $ac_status )
6050ac_cv_header_stdc=no
6051fi
6052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6053fi
6054fi
6055fi
6056echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6057echo "${ECHO_T}$ac_cv_header_stdc" >&6
6058if test $ac_cv_header_stdc = yes; then
6059
6060cat >>confdefs.h <<\_ACEOF
6061#define STDC_HEADERS 1
6062_ACEOF
6063
6064fi
6065
6066# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6077                  inttypes.h stdint.h unistd.h
6078do
6079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6080echo "$as_me:$LINENO: checking for $ac_header" >&5
6081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6082if eval "test \"\${$as_ac_Header+set}\" = set"; then
6083  echo $ECHO_N "(cached) $ECHO_C" >&6
6084else
6085  cat >conftest.$ac_ext <<_ACEOF
6086/* confdefs.h.  */
6087_ACEOF
6088cat confdefs.h >>conftest.$ac_ext
6089cat >>conftest.$ac_ext <<_ACEOF
6090/* end confdefs.h.  */
6091$ac_includes_default
6092
6093#include <$ac_header>
6094_ACEOF
6095rm -f conftest.$ac_objext
6096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097  (eval $ac_compile) 2>conftest.er1
6098  ac_status=$?
6099  grep -v '^ *+' conftest.er1 >conftest.err
6100  rm -f conftest.er1
6101  cat conftest.err >&5
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); } &&
6104         { ac_try='test -z "$ac_c_werror_flag"
6105                         || test ! -s conftest.err'
6106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107  (eval $ac_try) 2>&5
6108  ac_status=$?
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); }; } &&
6111         { ac_try='test -s conftest.$ac_objext'
6112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113  (eval $ac_try) 2>&5
6114  ac_status=$?
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); }; }; then
6117  eval "$as_ac_Header=yes"
6118else
6119  echo "$as_me: failed program was:" >&5
6120sed 's/^/| /' conftest.$ac_ext >&5
6121
6122eval "$as_ac_Header=no"
6123fi
6124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6125fi
6126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6128if test `eval echo '${'$as_ac_Header'}'` = yes; then
6129  cat >>confdefs.h <<_ACEOF
6130#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6131_ACEOF
6132
6133fi
6134
6135done
6136
6137
6138
6139for ac_header in dlfcn.h
6140do
6141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6142if eval "test \"\${$as_ac_Header+set}\" = set"; then
6143  echo "$as_me:$LINENO: checking for $ac_header" >&5
6144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6145if eval "test \"\${$as_ac_Header+set}\" = set"; then
6146  echo $ECHO_N "(cached) $ECHO_C" >&6
6147fi
6148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6150else
6151  # Is the header compilable?
6152echo "$as_me:$LINENO: checking $ac_header usability" >&5
6153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6154cat >conftest.$ac_ext <<_ACEOF
6155/* confdefs.h.  */
6156_ACEOF
6157cat confdefs.h >>conftest.$ac_ext
6158cat >>conftest.$ac_ext <<_ACEOF
6159/* end confdefs.h.  */
6160$ac_includes_default
6161#include <$ac_header>
6162_ACEOF
6163rm -f conftest.$ac_objext
6164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165  (eval $ac_compile) 2>conftest.er1
6166  ac_status=$?
6167  grep -v '^ *+' conftest.er1 >conftest.err
6168  rm -f conftest.er1
6169  cat conftest.err >&5
6170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171  (exit $ac_status); } &&
6172         { ac_try='test -z "$ac_c_werror_flag"
6173                         || test ! -s conftest.err'
6174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175  (eval $ac_try) 2>&5
6176  ac_status=$?
6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178  (exit $ac_status); }; } &&
6179         { ac_try='test -s conftest.$ac_objext'
6180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181  (eval $ac_try) 2>&5
6182  ac_status=$?
6183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184  (exit $ac_status); }; }; then
6185  ac_header_compiler=yes
6186else
6187  echo "$as_me: failed program was:" >&5
6188sed 's/^/| /' conftest.$ac_ext >&5
6189
6190ac_header_compiler=no
6191fi
6192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6193echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6194echo "${ECHO_T}$ac_header_compiler" >&6
6195
6196# Is the header present?
6197echo "$as_me:$LINENO: checking $ac_header presence" >&5
6198echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6199cat >conftest.$ac_ext <<_ACEOF
6200/* confdefs.h.  */
6201_ACEOF
6202cat confdefs.h >>conftest.$ac_ext
6203cat >>conftest.$ac_ext <<_ACEOF
6204/* end confdefs.h.  */
6205#include <$ac_header>
6206_ACEOF
6207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6208  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6209  ac_status=$?
6210  grep -v '^ *+' conftest.er1 >conftest.err
6211  rm -f conftest.er1
6212  cat conftest.err >&5
6213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214  (exit $ac_status); } >/dev/null; then
6215  if test -s conftest.err; then
6216    ac_cpp_err=$ac_c_preproc_warn_flag
6217    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6218  else
6219    ac_cpp_err=
6220  fi
6221else
6222  ac_cpp_err=yes
6223fi
6224if test -z "$ac_cpp_err"; then
6225  ac_header_preproc=yes
6226else
6227  echo "$as_me: failed program was:" >&5
6228sed 's/^/| /' conftest.$ac_ext >&5
6229
6230  ac_header_preproc=no
6231fi
6232rm -f conftest.err conftest.$ac_ext
6233echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6234echo "${ECHO_T}$ac_header_preproc" >&6
6235
6236# So?  What about this header?
6237case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6238  yes:no: )
6239    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6240echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6241    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6242echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6243    ac_header_preproc=yes
6244    ;;
6245  no:yes:* )
6246    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6247echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6248    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6249echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6250    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6251echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6252    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6253echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6254    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6256    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6257echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6258    (
6259      cat <<\_ASBOX
6260## --------------------------------------------------------------- ##
6261## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6262## --------------------------------------------------------------- ##
6263_ASBOX
6264    ) |
6265      sed "s/^/$as_me: WARNING:     /" >&2
6266    ;;
6267esac
6268echo "$as_me:$LINENO: checking for $ac_header" >&5
6269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6270if eval "test \"\${$as_ac_Header+set}\" = set"; then
6271  echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273  eval "$as_ac_Header=\$ac_header_preproc"
6274fi
6275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6277
6278fi
6279if test `eval echo '${'$as_ac_Header'}'` = yes; then
6280  cat >>confdefs.h <<_ACEOF
6281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6282_ACEOF
6283
6284fi
6285
6286done
6287
6288ac_ext=cc
6289ac_cpp='$CXXCPP $CPPFLAGS'
6290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6293if test -n "$ac_tool_prefix"; then
6294  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6295  do
6296    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6297set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6298echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300if test "${ac_cv_prog_CXX+set}" = set; then
6301  echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303  if test -n "$CXX"; then
6304  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309  IFS=$as_save_IFS
6310  test -z "$as_dir" && as_dir=.
6311  for ac_exec_ext in '' $ac_executable_extensions; do
6312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315    break 2
6316  fi
6317done
6318done
6319
6320fi
6321fi
6322CXX=$ac_cv_prog_CXX
6323if test -n "$CXX"; then
6324  echo "$as_me:$LINENO: result: $CXX" >&5
6325echo "${ECHO_T}$CXX" >&6
6326else
6327  echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6
6329fi
6330
6331    test -n "$CXX" && break
6332  done
6333fi
6334if test -z "$CXX"; then
6335  ac_ct_CXX=$CXX
6336  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6337do
6338  # Extract the first word of "$ac_prog", so it can be a program name with args.
6339set dummy $ac_prog; ac_word=$2
6340echo "$as_me:$LINENO: checking for $ac_word" >&5
6341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6342if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6343  echo $ECHO_N "(cached) $ECHO_C" >&6
6344else
6345  if test -n "$ac_ct_CXX"; then
6346  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6347else
6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
6350do
6351  IFS=$as_save_IFS
6352  test -z "$as_dir" && as_dir=.
6353  for ac_exec_ext in '' $ac_executable_extensions; do
6354  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355    ac_cv_prog_ac_ct_CXX="$ac_prog"
6356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357    break 2
6358  fi
6359done
6360done
6361
6362fi
6363fi
6364ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6365if test -n "$ac_ct_CXX"; then
6366  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6367echo "${ECHO_T}$ac_ct_CXX" >&6
6368else
6369  echo "$as_me:$LINENO: result: no" >&5
6370echo "${ECHO_T}no" >&6
6371fi
6372
6373  test -n "$ac_ct_CXX" && break
6374done
6375test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6376
6377  CXX=$ac_ct_CXX
6378fi
6379
6380
6381# Provide some information about the compiler.
6382echo "$as_me:$LINENO:" \
6383     "checking for C++ compiler version" >&5
6384ac_compiler=`set X $ac_compile; echo $2`
6385{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6386  (eval $ac_compiler --version </dev/null >&5) 2>&5
6387  ac_status=$?
6388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389  (exit $ac_status); }
6390{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6391  (eval $ac_compiler -v </dev/null >&5) 2>&5
6392  ac_status=$?
6393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394  (exit $ac_status); }
6395{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6396  (eval $ac_compiler -V </dev/null >&5) 2>&5
6397  ac_status=$?
6398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399  (exit $ac_status); }
6400
6401echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6402echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6403if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6404  echo $ECHO_N "(cached) $ECHO_C" >&6
6405else
6406  cat >conftest.$ac_ext <<_ACEOF
6407/* confdefs.h.  */
6408_ACEOF
6409cat confdefs.h >>conftest.$ac_ext
6410cat >>conftest.$ac_ext <<_ACEOF
6411/* end confdefs.h.  */
6412
6413int
6414main ()
6415{
6416#ifndef __GNUC__
6417       choke me
6418#endif
6419
6420  ;
6421  return 0;
6422}
6423_ACEOF
6424rm -f conftest.$ac_objext
6425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426  (eval $ac_compile) 2>conftest.er1
6427  ac_status=$?
6428  grep -v '^ *+' conftest.er1 >conftest.err
6429  rm -f conftest.er1
6430  cat conftest.err >&5
6431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432  (exit $ac_status); } &&
6433         { ac_try='test -z "$ac_cxx_werror_flag"
6434                         || test ! -s conftest.err'
6435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436  (eval $ac_try) 2>&5
6437  ac_status=$?
6438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439  (exit $ac_status); }; } &&
6440         { ac_try='test -s conftest.$ac_objext'
6441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442  (eval $ac_try) 2>&5
6443  ac_status=$?
6444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445  (exit $ac_status); }; }; then
6446  ac_compiler_gnu=yes
6447else
6448  echo "$as_me: failed program was:" >&5
6449sed 's/^/| /' conftest.$ac_ext >&5
6450
6451ac_compiler_gnu=no
6452fi
6453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6454ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6455
6456fi
6457echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6458echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6459GXX=`test $ac_compiler_gnu = yes && echo yes`
6460ac_test_CXXFLAGS=${CXXFLAGS+set}
6461ac_save_CXXFLAGS=$CXXFLAGS
6462CXXFLAGS="-g"
6463echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6464echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6465if test "${ac_cv_prog_cxx_g+set}" = set; then
6466  echo $ECHO_N "(cached) $ECHO_C" >&6
6467else
6468  cat >conftest.$ac_ext <<_ACEOF
6469/* confdefs.h.  */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h.  */
6474
6475int
6476main ()
6477{
6478
6479  ;
6480  return 0;
6481}
6482_ACEOF
6483rm -f conftest.$ac_objext
6484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485  (eval $ac_compile) 2>conftest.er1
6486  ac_status=$?
6487  grep -v '^ *+' conftest.er1 >conftest.err
6488  rm -f conftest.er1
6489  cat conftest.err >&5
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); } &&
6492         { ac_try='test -z "$ac_cxx_werror_flag"
6493                         || test ! -s conftest.err'
6494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495  (eval $ac_try) 2>&5
6496  ac_status=$?
6497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); }; } &&
6499         { ac_try='test -s conftest.$ac_objext'
6500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501  (eval $ac_try) 2>&5
6502  ac_status=$?
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); }; }; then
6505  ac_cv_prog_cxx_g=yes
6506else
6507  echo "$as_me: failed program was:" >&5
6508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510ac_cv_prog_cxx_g=no
6511fi
6512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6513fi
6514echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6515echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6516if test "$ac_test_CXXFLAGS" = set; then
6517  CXXFLAGS=$ac_save_CXXFLAGS
6518elif test $ac_cv_prog_cxx_g = yes; then
6519  if test "$GXX" = yes; then
6520    CXXFLAGS="-g -O2"
6521  else
6522    CXXFLAGS="-g"
6523  fi
6524else
6525  if test "$GXX" = yes; then
6526    CXXFLAGS="-O2"
6527  else
6528    CXXFLAGS=
6529  fi
6530fi
6531for ac_declaration in \
6532   '' \
6533   'extern "C" void std::exit (int) throw (); using std::exit;' \
6534   'extern "C" void std::exit (int); using std::exit;' \
6535   'extern "C" void exit (int) throw ();' \
6536   'extern "C" void exit (int);' \
6537   'void exit (int);'
6538do
6539  cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h.  */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h.  */
6545$ac_declaration
6546#include <stdlib.h>
6547int
6548main ()
6549{
6550exit (42);
6551  ;
6552  return 0;
6553}
6554_ACEOF
6555rm -f conftest.$ac_objext
6556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557  (eval $ac_compile) 2>conftest.er1
6558  ac_status=$?
6559  grep -v '^ *+' conftest.er1 >conftest.err
6560  rm -f conftest.er1
6561  cat conftest.err >&5
6562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563  (exit $ac_status); } &&
6564         { ac_try='test -z "$ac_cxx_werror_flag"
6565                         || test ! -s conftest.err'
6566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567  (eval $ac_try) 2>&5
6568  ac_status=$?
6569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570  (exit $ac_status); }; } &&
6571         { ac_try='test -s conftest.$ac_objext'
6572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573  (eval $ac_try) 2>&5
6574  ac_status=$?
6575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576  (exit $ac_status); }; }; then
6577  :
6578else
6579  echo "$as_me: failed program was:" >&5
6580sed 's/^/| /' conftest.$ac_ext >&5
6581
6582continue
6583fi
6584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585  cat >conftest.$ac_ext <<_ACEOF
6586/* confdefs.h.  */
6587_ACEOF
6588cat confdefs.h >>conftest.$ac_ext
6589cat >>conftest.$ac_ext <<_ACEOF
6590/* end confdefs.h.  */
6591$ac_declaration
6592int
6593main ()
6594{
6595exit (42);
6596  ;
6597  return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext
6601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602  (eval $ac_compile) 2>conftest.er1
6603  ac_status=$?
6604  grep -v '^ *+' conftest.er1 >conftest.err
6605  rm -f conftest.er1
6606  cat conftest.err >&5
6607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); } &&
6609         { ac_try='test -z "$ac_cxx_werror_flag"
6610                         || test ! -s conftest.err'
6611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612  (eval $ac_try) 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }; } &&
6616         { ac_try='test -s conftest.$ac_objext'
6617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618  (eval $ac_try) 2>&5
6619  ac_status=$?
6620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621  (exit $ac_status); }; }; then
6622  break
6623else
6624  echo "$as_me: failed program was:" >&5
6625sed 's/^/| /' conftest.$ac_ext >&5
6626
6627fi
6628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6629done
6630rm -f conftest*
6631if test -n "$ac_declaration"; then
6632  echo '#ifdef __cplusplus' >>confdefs.h
6633  echo $ac_declaration      >>confdefs.h
6634  echo '#endif'             >>confdefs.h
6635fi
6636
6637ac_ext=cc
6638ac_cpp='$CXXCPP $CPPFLAGS'
6639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6642
6643depcc="$CXX"  am_compiler_list=
6644
6645echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6646echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6647if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6648  echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6651  # We make a subdir and do the tests there.  Otherwise we can end up
6652  # making bogus files that we don't know about and never remove.  For
6653  # instance it was reported that on HP-UX the gcc test will end up
6654  # making a dummy file named `D' -- because `-MD' means `put the output
6655  # in D'.
6656  mkdir conftest.dir
6657  # Copy depcomp to subdir because otherwise we won't find it if we're
6658  # using a relative directory.
6659  cp "$am_depcomp" conftest.dir
6660  cd conftest.dir
6661  # We will build objects and dependencies in a subdirectory because
6662  # it helps to detect inapplicable dependency modes.  For instance
6663  # both Tru64's cc and ICC support -MD to output dependencies as a
6664  # side effect of compilation, but ICC will put the dependencies in
6665  # the current directory while Tru64 will put them in the object
6666  # directory.
6667  mkdir sub
6668
6669  am_cv_CXX_dependencies_compiler_type=none
6670  if test "$am_compiler_list" = ""; then
6671     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6672  fi
6673  for depmode in $am_compiler_list; do
6674    # Setup a source with many dependencies, because some compilers
6675    # like to wrap large dependency lists on column 80 (with \), and
6676    # we should not choose a depcomp mode which is confused by this.
6677    #
6678    # We need to recreate these files for each test, as the compiler may
6679    # overwrite some of them when testing with obscure command lines.
6680    # This happens at least with the AIX C compiler.
6681    : > sub/conftest.c
6682    for i in 1 2 3 4 5 6; do
6683      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6684      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6685      # Solaris 8's {/usr,}/bin/sh.
6686      touch sub/conftst$i.h
6687    done
6688    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6689
6690    case $depmode in
6691    nosideeffect)
6692      # after this tag, mechanisms are not by side-effect, so they'll
6693      # only be used when explicitly requested
6694      if test "x$enable_dependency_tracking" = xyes; then
6695        continue
6696      else
6697        break
6698      fi
6699      ;;
6700    none) break ;;
6701    esac
6702    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6703    # mode.  It turns out that the SunPro C++ compiler does not properly
6704    # handle `-M -o', and we need to detect this.
6705    if depmode=$depmode \
6706       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6707       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6708       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6709         >/dev/null 2>conftest.err &&
6710       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6711       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6712       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6713      # icc doesn't choke on unknown options, it will just issue warnings
6714      # or remarks (even with -Werror).  So we grep stderr for any message
6715      # that says an option was ignored or not supported.
6716      # When given -MP, icc 7.0 and 7.1 complain thusly:
6717      #   icc: Command line warning: ignoring option '-M'; no argument required
6718      # The diagnosis changed in icc 8.0:
6719      #   icc: Command line remark: option '-MP' not supported
6720      if (grep 'ignoring option' conftest.err ||
6721          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6722        am_cv_CXX_dependencies_compiler_type=$depmode
6723        break
6724      fi
6725    fi
6726  done
6727
6728  cd ..
6729  rm -rf conftest.dir
6730else
6731  am_cv_CXX_dependencies_compiler_type=none
6732fi
6733
6734fi
6735echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6736echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6737CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6738
6739
6740
6741if
6742  test "x$enable_dependency_tracking" != xno \
6743  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6744  am__fastdepCXX_TRUE=
6745  am__fastdepCXX_FALSE='#'
6746else
6747  am__fastdepCXX_TRUE='#'
6748  am__fastdepCXX_FALSE=
6749fi
6750
6751
6752
6753
6754if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6755    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6756    (test "X$CXX" != "Xg++"))) ; then
6757  ac_ext=cc
6758ac_cpp='$CXXCPP $CPPFLAGS'
6759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6762echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6763echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6764if test -z "$CXXCPP"; then
6765  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6766  echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
6768      # Double quotes because CXXCPP needs to be expanded
6769    for CXXCPP in "$CXX -E" "/lib/cpp"
6770    do
6771      ac_preproc_ok=false
6772for ac_cxx_preproc_warn_flag in '' yes
6773do
6774  # Use a header file that comes with gcc, so configuring glibc
6775  # with a fresh cross-compiler works.
6776  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6777  # <limits.h> exists even on freestanding compilers.
6778  # On the NeXT, cc -E runs the code through the compiler's parser,
6779  # not just through cpp. "Syntax error" is here to catch this case.
6780  cat >conftest.$ac_ext <<_ACEOF
6781/* confdefs.h.  */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h.  */
6786#ifdef __STDC__
6787# include <limits.h>
6788#else
6789# include <assert.h>
6790#endif
6791                     Syntax error
6792_ACEOF
6793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6794  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6795  ac_status=$?
6796  grep -v '^ *+' conftest.er1 >conftest.err
6797  rm -f conftest.er1
6798  cat conftest.err >&5
6799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800  (exit $ac_status); } >/dev/null; then
6801  if test -s conftest.err; then
6802    ac_cpp_err=$ac_cxx_preproc_warn_flag
6803    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6804  else
6805    ac_cpp_err=
6806  fi
6807else
6808  ac_cpp_err=yes
6809fi
6810if test -z "$ac_cpp_err"; then
6811  :
6812else
6813  echo "$as_me: failed program was:" >&5
6814sed 's/^/| /' conftest.$ac_ext >&5
6815
6816  # Broken: fails on valid input.
6817continue
6818fi
6819rm -f conftest.err conftest.$ac_ext
6820
6821  # OK, works on sane cases.  Now check whether non-existent headers
6822  # can be detected and how.
6823  cat >conftest.$ac_ext <<_ACEOF
6824/* confdefs.h.  */
6825_ACEOF
6826cat confdefs.h >>conftest.$ac_ext
6827cat >>conftest.$ac_ext <<_ACEOF
6828/* end confdefs.h.  */
6829#include <ac_nonexistent.h>
6830_ACEOF
6831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6832  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6833  ac_status=$?
6834  grep -v '^ *+' conftest.er1 >conftest.err
6835  rm -f conftest.er1
6836  cat conftest.err >&5
6837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838  (exit $ac_status); } >/dev/null; then
6839  if test -s conftest.err; then
6840    ac_cpp_err=$ac_cxx_preproc_warn_flag
6841    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6842  else
6843    ac_cpp_err=
6844  fi
6845else
6846  ac_cpp_err=yes
6847fi
6848if test -z "$ac_cpp_err"; then
6849  # Broken: success on invalid input.
6850continue
6851else
6852  echo "$as_me: failed program was:" >&5
6853sed 's/^/| /' conftest.$ac_ext >&5
6854
6855  # Passes both tests.
6856ac_preproc_ok=:
6857break
6858fi
6859rm -f conftest.err conftest.$ac_ext
6860
6861done
6862# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6863rm -f conftest.err conftest.$ac_ext
6864if $ac_preproc_ok; then
6865  break
6866fi
6867
6868    done
6869    ac_cv_prog_CXXCPP=$CXXCPP
6870
6871fi
6872  CXXCPP=$ac_cv_prog_CXXCPP
6873else
6874  ac_cv_prog_CXXCPP=$CXXCPP
6875fi
6876echo "$as_me:$LINENO: result: $CXXCPP" >&5
6877echo "${ECHO_T}$CXXCPP" >&6
6878ac_preproc_ok=false
6879for ac_cxx_preproc_warn_flag in '' yes
6880do
6881  # Use a header file that comes with gcc, so configuring glibc
6882  # with a fresh cross-compiler works.
6883  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6884  # <limits.h> exists even on freestanding compilers.
6885  # On the NeXT, cc -E runs the code through the compiler's parser,
6886  # not just through cpp. "Syntax error" is here to catch this case.
6887  cat >conftest.$ac_ext <<_ACEOF
6888/* confdefs.h.  */
6889_ACEOF
6890cat confdefs.h >>conftest.$ac_ext
6891cat >>conftest.$ac_ext <<_ACEOF
6892/* end confdefs.h.  */
6893#ifdef __STDC__
6894# include <limits.h>
6895#else
6896# include <assert.h>
6897#endif
6898                     Syntax error
6899_ACEOF
6900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6901  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6902  ac_status=$?
6903  grep -v '^ *+' conftest.er1 >conftest.err
6904  rm -f conftest.er1
6905  cat conftest.err >&5
6906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907  (exit $ac_status); } >/dev/null; then
6908  if test -s conftest.err; then
6909    ac_cpp_err=$ac_cxx_preproc_warn_flag
6910    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6911  else
6912    ac_cpp_err=
6913  fi
6914else
6915  ac_cpp_err=yes
6916fi
6917if test -z "$ac_cpp_err"; then
6918  :
6919else
6920  echo "$as_me: failed program was:" >&5
6921sed 's/^/| /' conftest.$ac_ext >&5
6922
6923  # Broken: fails on valid input.
6924continue
6925fi
6926rm -f conftest.err conftest.$ac_ext
6927
6928  # OK, works on sane cases.  Now check whether non-existent headers
6929  # can be detected and how.
6930  cat >conftest.$ac_ext <<_ACEOF
6931/* confdefs.h.  */
6932_ACEOF
6933cat confdefs.h >>conftest.$ac_ext
6934cat >>conftest.$ac_ext <<_ACEOF
6935/* end confdefs.h.  */
6936#include <ac_nonexistent.h>
6937_ACEOF
6938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6939  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6940  ac_status=$?
6941  grep -v '^ *+' conftest.er1 >conftest.err
6942  rm -f conftest.er1
6943  cat conftest.err >&5
6944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); } >/dev/null; then
6946  if test -s conftest.err; then
6947    ac_cpp_err=$ac_cxx_preproc_warn_flag
6948    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6949  else
6950    ac_cpp_err=
6951  fi
6952else
6953  ac_cpp_err=yes
6954fi
6955if test -z "$ac_cpp_err"; then
6956  # Broken: success on invalid input.
6957continue
6958else
6959  echo "$as_me: failed program was:" >&5
6960sed 's/^/| /' conftest.$ac_ext >&5
6961
6962  # Passes both tests.
6963ac_preproc_ok=:
6964break
6965fi
6966rm -f conftest.err conftest.$ac_ext
6967
6968done
6969# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6970rm -f conftest.err conftest.$ac_ext
6971if $ac_preproc_ok; then
6972  :
6973else
6974  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6975See \`config.log' for more details." >&5
6976echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6977See \`config.log' for more details." >&2;}
6978   { (exit 1); exit 1; }; }
6979fi
6980
6981ac_ext=cc
6982ac_cpp='$CXXCPP $CPPFLAGS'
6983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6986
6987fi
6988
6989
6990
6991# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6992
6993# find the maximum length of command line arguments
6994echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6995echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6996if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6997  echo $ECHO_N "(cached) $ECHO_C" >&6
6998else
6999    i=0
7000  teststring="ABCD"
7001
7002  case $build_os in
7003  msdosdjgpp*)
7004    # On DJGPP, this test can blow up pretty badly due to problems in libc
7005    # (any single argument exceeding 2000 bytes causes a buffer overrun
7006    # during glob expansion).  Even if it were fixed, the result of this
7007    # check would be larger than it should be.
7008    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7009    ;;
7010
7011  gnu*)
7012    # Under GNU Hurd, this test is not required because there is
7013    # no limit to the length of command line arguments.
7014    # Libtool will interpret -1 as no limit whatsoever
7015    lt_cv_sys_max_cmd_len=-1;
7016    ;;
7017
7018  cygwin* | mingw*)
7019    # On Win9x/ME, this test blows up -- it succeeds, but takes
7020    # about 5 minutes as the teststring grows exponentially.
7021    # Worse, since 9x/ME are not pre-emptively multitasking,
7022    # you end up with a "frozen" computer, even though with patience
7023    # the test eventually succeeds (with a max line length of 256k).
7024    # Instead, let's just punt: use the minimum linelength reported by
7025    # all of the supported platforms: 8192 (on NT/2K/XP).
7026    lt_cv_sys_max_cmd_len=8192;
7027    ;;
7028
7029  amigaos*)
7030    # On AmigaOS with pdksh, this test takes hours, literally.
7031    # So we just punt and use a minimum line length of 8192.
7032    lt_cv_sys_max_cmd_len=8192;
7033    ;;
7034
7035  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7036    # This has been around since 386BSD, at least.  Likely further.
7037    if test -x /sbin/sysctl; then
7038      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7039    elif test -x /usr/sbin/sysctl; then
7040      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7041    else
7042      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7043    fi
7044    # And add a safety zone
7045    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7046    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7047    ;;
7048
7049  interix*)
7050    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7051    lt_cv_sys_max_cmd_len=196608
7052    ;;
7053
7054  osf*)
7055    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7056    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7057    # nice to cause kernel panics so lets avoid the loop below.
7058    # First set a reasonable default.
7059    lt_cv_sys_max_cmd_len=16384
7060    #
7061    if test -x /sbin/sysconfig; then
7062      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7063        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7064      esac
7065    fi
7066    ;;
7067  sco3.2v5*)
7068    lt_cv_sys_max_cmd_len=102400
7069    ;;
7070  sysv5* | sco5v6* | sysv4.2uw2*)
7071    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7072    if test -n "$kargmax"; then
7073      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7074    else
7075      lt_cv_sys_max_cmd_len=32768
7076    fi
7077    ;;
7078  *)
7079    # If test is not a shell built-in, we'll probably end up computing a
7080    # maximum length that is only half of the actual maximum length, but
7081    # we can't tell.
7082    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7083    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7084               = "XX$teststring") >/dev/null 2>&1 &&
7085            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7086            lt_cv_sys_max_cmd_len=$new_result &&
7087            test $i != 17 # 1/2 MB should be enough
7088    do
7089      i=`expr $i + 1`
7090      teststring=$teststring$teststring
7091    done
7092    teststring=
7093    # Add a significant safety factor because C++ compilers can tack on massive
7094    # amounts of additional arguments before passing them to the linker.
7095    # It appears as though 1/2 is a usable value.
7096    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7097    ;;
7098  esac
7099
7100fi
7101
7102if test -n $lt_cv_sys_max_cmd_len ; then
7103  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7104echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7105else
7106  echo "$as_me:$LINENO: result: none" >&5
7107echo "${ECHO_T}none" >&6
7108fi
7109
7110
7111
7112
7113# Check for command to grab the raw symbol name followed by C symbol from nm.
7114echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7115echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7116if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7117  echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119
7120# These are sane defaults that work on at least a few old systems.
7121# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7122
7123# Character class describing NM global symbol codes.
7124symcode='[BCDEGRST]'
7125
7126# Regexp to match symbols that can be accessed directly from C.
7127sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7128
7129# Transform an extracted symbol line into a proper C declaration
7130lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7131
7132# Transform an extracted symbol line into symbol name and symbol address
7133lt_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'"
7134
7135# Define system-specific variables.
7136case $host_os in
7137aix*)
7138  symcode='[BCDT]'
7139  ;;
7140cygwin* | mingw* | pw32*)
7141  symcode='[ABCDGISTW]'
7142  ;;
7143hpux*) # Its linker distinguishes data from code symbols
7144  if test "$host_cpu" = ia64; then
7145    symcode='[ABCDEGRST]'
7146  fi
7147  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7148  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'"
7149  ;;
7150linux*)
7151  if test "$host_cpu" = ia64; then
7152    symcode='[ABCDGIRSTW]'
7153    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7154    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'"
7155  fi
7156  ;;
7157irix* | nonstopux*)
7158  symcode='[BCDEGRST]'
7159  ;;
7160osf*)
7161  symcode='[BCDEGQRST]'
7162  ;;
7163solaris*)
7164  symcode='[BDRT]'
7165  ;;
7166sco3.2v5*)
7167  symcode='[DT]'
7168  ;;
7169sysv4.2uw2*)
7170  symcode='[DT]'
7171  ;;
7172sysv5* | sco5v6* | unixware* | OpenUNIX*)
7173  symcode='[ABDT]'
7174  ;;
7175sysv4)
7176  symcode='[DFNSTU]'
7177  ;;
7178esac
7179
7180# Handle CRLF in mingw tool chain
7181opt_cr=
7182case $build_os in
7183mingw*)
7184  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7185  ;;
7186esac
7187
7188# If we're using GNU nm, then use its standard symbol codes.
7189case `$NM -V 2>&1` in
7190*GNU* | *'with BFD'*)
7191  symcode='[ABCDGIRSTW]' ;;
7192esac
7193
7194# Try without a prefix undercore, then with it.
7195for ac_symprfx in "" "_"; do
7196
7197  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7198  symxfrm="\\1 $ac_symprfx\\2 \\2"
7199
7200  # Write the raw and C identifiers.
7201  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7202
7203  # Check to see that the pipe works correctly.
7204  pipe_works=no
7205
7206  rm -f conftest*
7207  cat > conftest.$ac_ext <<EOF
7208#ifdef __cplusplus
7209extern "C" {
7210#endif
7211char nm_test_var;
7212void nm_test_func(){}
7213#ifdef __cplusplus
7214}
7215#endif
7216int main(){nm_test_var='a';nm_test_func();return(0);}
7217EOF
7218
7219  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7220  (eval $ac_compile) 2>&5
7221  ac_status=$?
7222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223  (exit $ac_status); }; then
7224    # Now try to grab the symbols.
7225    nlist=conftest.nm
7226    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7227  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7228  ac_status=$?
7229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230  (exit $ac_status); } && test -s "$nlist"; then
7231      # Try sorting and uniquifying the output.
7232      if sort "$nlist" | uniq > "$nlist"T; then
7233        mv -f "$nlist"T "$nlist"
7234      else
7235        rm -f "$nlist"T
7236      fi
7237
7238      # Make sure that we snagged all the symbols we need.
7239      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7240        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7241          cat <<EOF > conftest.$ac_ext
7242#ifdef __cplusplus
7243extern "C" {
7244#endif
7245
7246EOF
7247          # Now generate the symbol file.
7248          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7249
7250          cat <<EOF >> conftest.$ac_ext
7251#if defined (__STDC__) && __STDC__
7252# define lt_ptr_t void *
7253#else
7254# define lt_ptr_t char *
7255# define const
7256#endif
7257
7258/* The mapping between symbol names and symbols. */
7259const struct {
7260  const char *name;
7261  lt_ptr_t address;
7262}
7263lt_preloaded_symbols[] =
7264{
7265EOF
7266          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7267          cat <<\EOF >> conftest.$ac_ext
7268  {0, (lt_ptr_t) 0}
7269};
7270
7271#ifdef __cplusplus
7272}
7273#endif
7274EOF
7275          # Now try linking the two files.
7276          mv conftest.$ac_objext conftstm.$ac_objext
7277          lt_save_LIBS="$LIBS"
7278          lt_save_CFLAGS="$CFLAGS"
7279          LIBS="conftstm.$ac_objext"
7280          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7281          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7282  (eval $ac_link) 2>&5
7283  ac_status=$?
7284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7286            pipe_works=yes
7287          fi
7288          LIBS="$lt_save_LIBS"
7289          CFLAGS="$lt_save_CFLAGS"
7290        else
7291          echo "cannot find nm_test_func in $nlist" >&5
7292        fi
7293      else
7294        echo "cannot find nm_test_var in $nlist" >&5
7295      fi
7296    else
7297      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7298    fi
7299  else
7300    echo "$progname: failed program was:" >&5
7301    cat conftest.$ac_ext >&5
7302  fi
7303  rm -f conftest* conftst*
7304
7305  # Do not use the global_symbol_pipe unless it works.
7306  if test "$pipe_works" = yes; then
7307    break
7308  else
7309    lt_cv_sys_global_symbol_pipe=
7310  fi
7311done
7312
7313fi
7314
7315if test -z "$lt_cv_sys_global_symbol_pipe"; then
7316  lt_cv_sys_global_symbol_to_cdecl=
7317fi
7318if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7319  echo "$as_me:$LINENO: result: failed" >&5
7320echo "${ECHO_T}failed" >&6
7321else
7322  echo "$as_me:$LINENO: result: ok" >&5
7323echo "${ECHO_T}ok" >&6
7324fi
7325
7326echo "$as_me:$LINENO: checking for objdir" >&5
7327echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7328if test "${lt_cv_objdir+set}" = set; then
7329  echo $ECHO_N "(cached) $ECHO_C" >&6
7330else
7331  rm -f .libs 2>/dev/null
7332mkdir .libs 2>/dev/null
7333if test -d .libs; then
7334  lt_cv_objdir=.libs
7335else
7336  # MS-DOS does not allow filenames that begin with a dot.
7337  lt_cv_objdir=_libs
7338fi
7339rmdir .libs 2>/dev/null
7340fi
7341echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7342echo "${ECHO_T}$lt_cv_objdir" >&6
7343objdir=$lt_cv_objdir
7344
7345
7346
7347
7348
7349case $host_os in
7350aix3*)
7351  # AIX sometimes has problems with the GCC collect2 program.  For some
7352  # reason, if we set the COLLECT_NAMES environment variable, the problems
7353  # vanish in a puff of smoke.
7354  if test "X${COLLECT_NAMES+set}" != Xset; then
7355    COLLECT_NAMES=
7356    export COLLECT_NAMES
7357  fi
7358  ;;
7359esac
7360
7361# Sed substitution that helps us do robust quoting.  It backslashifies
7362# metacharacters that are still active within double-quoted strings.
7363Xsed='sed -e 1s/^X//'
7364sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7365
7366# Same as above, but do not quote variable references.
7367double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7368
7369# Sed substitution to delay expansion of an escaped shell variable in a
7370# double_quote_subst'ed string.
7371delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7372
7373# Sed substitution to avoid accidental globbing in evaled expressions
7374no_glob_subst='s/\*/\\\*/g'
7375
7376# Constants:
7377rm="rm -f"
7378
7379# Global variables:
7380default_ofile=libtool
7381can_build_shared=yes
7382
7383# All known linkers require a `.a' archive for static linking (except MSVC,
7384# which needs '.lib').
7385libext=a
7386ltmain="$ac_aux_dir/ltmain.sh"
7387ofile="$default_ofile"
7388with_gnu_ld="$lt_cv_prog_gnu_ld"
7389
7390if test -n "$ac_tool_prefix"; then
7391  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7392set dummy ${ac_tool_prefix}ar; ac_word=$2
7393echo "$as_me:$LINENO: checking for $ac_word" >&5
7394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7395if test "${ac_cv_prog_AR+set}" = set; then
7396  echo $ECHO_N "(cached) $ECHO_C" >&6
7397else
7398  if test -n "$AR"; then
7399  ac_cv_prog_AR="$AR" # Let the user override the test.
7400else
7401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404  IFS=$as_save_IFS
7405  test -z "$as_dir" && as_dir=.
7406  for ac_exec_ext in '' $ac_executable_extensions; do
7407  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408    ac_cv_prog_AR="${ac_tool_prefix}ar"
7409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410    break 2
7411  fi
7412done
7413done
7414
7415fi
7416fi
7417AR=$ac_cv_prog_AR
7418if test -n "$AR"; then
7419  echo "$as_me:$LINENO: result: $AR" >&5
7420echo "${ECHO_T}$AR" >&6
7421else
7422  echo "$as_me:$LINENO: result: no" >&5
7423echo "${ECHO_T}no" >&6
7424fi
7425
7426fi
7427if test -z "$ac_cv_prog_AR"; then
7428  ac_ct_AR=$AR
7429  # Extract the first word of "ar", so it can be a program name with args.
7430set dummy ar; 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_ac_ct_AR+set}" = set; then
7434  echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436  if test -n "$ac_ct_AR"; then
7437  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
7447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448    break 2
7449  fi
7450done
7451done
7452
7453  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7454fi
7455fi
7456ac_ct_AR=$ac_cv_prog_ac_ct_AR
7457if test -n "$ac_ct_AR"; then
7458  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7459echo "${ECHO_T}$ac_ct_AR" >&6
7460else
7461  echo "$as_me:$LINENO: result: no" >&5
7462echo "${ECHO_T}no" >&6
7463fi
7464
7465  AR=$ac_ct_AR
7466else
7467  AR="$ac_cv_prog_AR"
7468fi
7469
7470if test -n "$ac_tool_prefix"; then
7471  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7472set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7473echo "$as_me:$LINENO: checking for $ac_word" >&5
7474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7475if test "${ac_cv_prog_RANLIB+set}" = set; then
7476  echo $ECHO_N "(cached) $ECHO_C" >&6
7477else
7478  if test -n "$RANLIB"; then
7479  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7480else
7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482for as_dir in $PATH
7483do
7484  IFS=$as_save_IFS
7485  test -z "$as_dir" && as_dir=.
7486  for ac_exec_ext in '' $ac_executable_extensions; do
7487  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7489    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490    break 2
7491  fi
7492done
7493done
7494
7495fi
7496fi
7497RANLIB=$ac_cv_prog_RANLIB
7498if test -n "$RANLIB"; then
7499  echo "$as_me:$LINENO: result: $RANLIB" >&5
7500echo "${ECHO_T}$RANLIB" >&6
7501else
7502  echo "$as_me:$LINENO: result: no" >&5
7503echo "${ECHO_T}no" >&6
7504fi
7505
7506fi
7507if test -z "$ac_cv_prog_RANLIB"; then
7508  ac_ct_RANLIB=$RANLIB
7509  # Extract the first word of "ranlib", so it can be a program name with args.
7510set dummy ranlib; ac_word=$2
7511echo "$as_me:$LINENO: checking for $ac_word" >&5
7512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7513if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7514  echo $ECHO_N "(cached) $ECHO_C" >&6
7515else
7516  if test -n "$ac_ct_RANLIB"; then
7517  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7518else
7519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522  IFS=$as_save_IFS
7523  test -z "$as_dir" && as_dir=.
7524  for ac_exec_ext in '' $ac_executable_extensions; do
7525  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526    ac_cv_prog_ac_ct_RANLIB="ranlib"
7527    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528    break 2
7529  fi
7530done
7531done
7532
7533  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7534fi
7535fi
7536ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7537if test -n "$ac_ct_RANLIB"; then
7538  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7539echo "${ECHO_T}$ac_ct_RANLIB" >&6
7540else
7541  echo "$as_me:$LINENO: result: no" >&5
7542echo "${ECHO_T}no" >&6
7543fi
7544
7545  RANLIB=$ac_ct_RANLIB
7546else
7547  RANLIB="$ac_cv_prog_RANLIB"
7548fi
7549
7550if test -n "$ac_tool_prefix"; then
7551  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7552set dummy ${ac_tool_prefix}strip; ac_word=$2
7553echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7555if test "${ac_cv_prog_STRIP+set}" = set; then
7556  echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558  if test -n "$STRIP"; then
7559  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564  IFS=$as_save_IFS
7565  test -z "$as_dir" && as_dir=.
7566  for ac_exec_ext in '' $ac_executable_extensions; do
7567  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570    break 2
7571  fi
7572done
7573done
7574
7575fi
7576fi
7577STRIP=$ac_cv_prog_STRIP
7578if test -n "$STRIP"; then
7579  echo "$as_me:$LINENO: result: $STRIP" >&5
7580echo "${ECHO_T}$STRIP" >&6
7581else
7582  echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6
7584fi
7585
7586fi
7587if test -z "$ac_cv_prog_STRIP"; then
7588  ac_ct_STRIP=$STRIP
7589  # Extract the first word of "strip", so it can be a program name with args.
7590set dummy strip; ac_word=$2
7591echo "$as_me:$LINENO: checking for $ac_word" >&5
7592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7594  echo $ECHO_N "(cached) $ECHO_C" >&6
7595else
7596  if test -n "$ac_ct_STRIP"; then
7597  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7598else
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602  IFS=$as_save_IFS
7603  test -z "$as_dir" && as_dir=.
7604  for ac_exec_ext in '' $ac_executable_extensions; do
7605  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606    ac_cv_prog_ac_ct_STRIP="strip"
7607    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608    break 2
7609  fi
7610done
7611done
7612
7613  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7614fi
7615fi
7616ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7617if test -n "$ac_ct_STRIP"; then
7618  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7619echo "${ECHO_T}$ac_ct_STRIP" >&6
7620else
7621  echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
7623fi
7624
7625  STRIP=$ac_ct_STRIP
7626else
7627  STRIP="$ac_cv_prog_STRIP"
7628fi
7629
7630
7631old_CC="$CC"
7632old_CFLAGS="$CFLAGS"
7633
7634# Set sane defaults for various variables
7635test -z "$AR" && AR=ar
7636test -z "$AR_FLAGS" && AR_FLAGS=cru
7637test -z "$AS" && AS=as
7638test -z "$CC" && CC=cc
7639test -z "$LTCC" && LTCC=$CC
7640test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7641test -z "$DLLTOOL" && DLLTOOL=dlltool
7642test -z "$LD" && LD=ld
7643test -z "$LN_S" && LN_S="ln -s"
7644test -z "$MAGIC_CMD" && MAGIC_CMD=file
7645test -z "$NM" && NM=nm
7646test -z "$SED" && SED=sed
7647test -z "$OBJDUMP" && OBJDUMP=objdump
7648test -z "$RANLIB" && RANLIB=:
7649test -z "$STRIP" && STRIP=:
7650test -z "$ac_objext" && ac_objext=o
7651
7652# Determine commands to create old-style static archives.
7653old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7654old_postinstall_cmds='chmod 644 $oldlib'
7655old_postuninstall_cmds=
7656
7657if test -n "$RANLIB"; then
7658  case $host_os in
7659  openbsd*)
7660    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7661    ;;
7662  *)
7663    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7664    ;;
7665  esac
7666  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7667fi
7668
7669for cc_temp in $compiler""; do
7670  case $cc_temp in
7671    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7672    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7673    \-*) ;;
7674    *) break;;
7675  esac
7676done
7677cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7678
7679
7680# Only perform the check for file, if the check method requires it
7681case $deplibs_check_method in
7682file_magic*)
7683  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7684    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7685echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7686if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7687  echo $ECHO_N "(cached) $ECHO_C" >&6
7688else
7689  case $MAGIC_CMD in
7690[\\/*] |  ?:[\\/]*)
7691  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7692  ;;
7693*)
7694  lt_save_MAGIC_CMD="$MAGIC_CMD"
7695  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7696  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7697  for ac_dir in $ac_dummy; do
7698    IFS="$lt_save_ifs"
7699    test -z "$ac_dir" && ac_dir=.
7700    if test -f $ac_dir/${ac_tool_prefix}file; then
7701      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7702      if test -n "$file_magic_test_file"; then
7703        case $deplibs_check_method in
7704        "file_magic "*)
7705          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7706          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7707          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7708            $EGREP "$file_magic_regex" > /dev/null; then
7709            :
7710          else
7711            cat <<EOF 1>&2
7712
7713*** Warning: the command libtool uses to detect shared libraries,
7714*** $file_magic_cmd, produces output that libtool cannot recognize.
7715*** The result is that libtool may fail to recognize shared libraries
7716*** as such.  This will affect the creation of libtool libraries that
7717*** depend on shared libraries, but programs linked with such libtool
7718*** libraries will work regardless of this problem.  Nevertheless, you
7719*** may want to report the problem to your system manager and/or to
7720*** bug-libtool@gnu.org
7721
7722EOF
7723          fi ;;
7724        esac
7725      fi
7726      break
7727    fi
7728  done
7729  IFS="$lt_save_ifs"
7730  MAGIC_CMD="$lt_save_MAGIC_CMD"
7731  ;;
7732esac
7733fi
7734
7735MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7736if test -n "$MAGIC_CMD"; then
7737  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7738echo "${ECHO_T}$MAGIC_CMD" >&6
7739else
7740  echo "$as_me:$LINENO: result: no" >&5
7741echo "${ECHO_T}no" >&6
7742fi
7743
7744if test -z "$lt_cv_path_MAGIC_CMD"; then
7745  if test -n "$ac_tool_prefix"; then
7746    echo "$as_me:$LINENO: checking for file" >&5
7747echo $ECHO_N "checking for file... $ECHO_C" >&6
7748if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7749  echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
7751  case $MAGIC_CMD in
7752[\\/*] |  ?:[\\/]*)
7753  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7754  ;;
7755*)
7756  lt_save_MAGIC_CMD="$MAGIC_CMD"
7757  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7758  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7759  for ac_dir in $ac_dummy; do
7760    IFS="$lt_save_ifs"
7761    test -z "$ac_dir" && ac_dir=.
7762    if test -f $ac_dir/file; then
7763      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7764      if test -n "$file_magic_test_file"; then
7765        case $deplibs_check_method in
7766        "file_magic "*)
7767          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7768          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7769          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7770            $EGREP "$file_magic_regex" > /dev/null; then
7771            :
7772          else
7773            cat <<EOF 1>&2
7774
7775*** Warning: the command libtool uses to detect shared libraries,
7776*** $file_magic_cmd, produces output that libtool cannot recognize.
7777*** The result is that libtool may fail to recognize shared libraries
7778*** as such.  This will affect the creation of libtool libraries that
7779*** depend on shared libraries, but programs linked with such libtool
7780*** libraries will work regardless of this problem.  Nevertheless, you
7781*** may want to report the problem to your system manager and/or to
7782*** bug-libtool@gnu.org
7783
7784EOF
7785          fi ;;
7786        esac
7787      fi
7788      break
7789    fi
7790  done
7791  IFS="$lt_save_ifs"
7792  MAGIC_CMD="$lt_save_MAGIC_CMD"
7793  ;;
7794esac
7795fi
7796
7797MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7798if test -n "$MAGIC_CMD"; then
7799  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7800echo "${ECHO_T}$MAGIC_CMD" >&6
7801else
7802  echo "$as_me:$LINENO: result: no" >&5
7803echo "${ECHO_T}no" >&6
7804fi
7805
7806  else
7807    MAGIC_CMD=:
7808  fi
7809fi
7810
7811  fi
7812  ;;
7813esac
7814
7815enable_dlopen=no
7816enable_win32_dll=no
7817
7818# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7819if test "${enable_libtool_lock+set}" = set; then
7820  enableval="$enable_libtool_lock"
7821
7822fi;
7823test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7824
7825
7826# Check whether --with-pic or --without-pic was given.
7827if test "${with_pic+set}" = set; then
7828  withval="$with_pic"
7829  pic_mode="$withval"
7830else
7831  pic_mode=default
7832fi;
7833test -z "$pic_mode" && pic_mode=default
7834
7835# Use C for the default configuration in the libtool script
7836tagname=
7837lt_save_CC="$CC"
7838ac_ext=c
7839ac_cpp='$CPP $CPPFLAGS'
7840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7842ac_compiler_gnu=$ac_cv_c_compiler_gnu
7843
7844
7845# Source file extension for C test sources.
7846ac_ext=c
7847
7848# Object file extension for compiled C test sources.
7849objext=o
7850objext=$objext
7851
7852# Code to be used in simple compile tests
7853lt_simple_compile_test_code="int some_variable = 0;\n"
7854
7855# Code to be used in simple link tests
7856lt_simple_link_test_code='int main(){return(0);}\n'
7857
7858
7859# If no C compiler was specified, use CC.
7860LTCC=${LTCC-"$CC"}
7861
7862# If no C compiler flags were specified, use CFLAGS.
7863LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7864
7865# Allow CC to be a program name with arguments.
7866compiler=$CC
7867
7868
7869# save warnings/boilerplate of simple test code
7870ac_outfile=conftest.$ac_objext
7871printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7872eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7873_lt_compiler_boilerplate=`cat conftest.err`
7874$rm conftest*
7875
7876ac_outfile=conftest.$ac_objext
7877printf "$lt_simple_link_test_code" >conftest.$ac_ext
7878eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7879_lt_linker_boilerplate=`cat conftest.err`
7880$rm conftest*
7881
7882
7883## CAVEAT EMPTOR:
7884## There is no encapsulation within the following macros, do not change
7885## the running order or otherwise move them around unless you know exactly
7886## what you are doing...
7887
7888lt_prog_compiler_no_builtin_flag=
7889
7890if test "$GCC" = yes; then
7891  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7892
7893
7894echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7895echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7896if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7897  echo $ECHO_N "(cached) $ECHO_C" >&6
7898else
7899  lt_cv_prog_compiler_rtti_exceptions=no
7900  ac_outfile=conftest.$ac_objext
7901   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7902   lt_compiler_flag="-fno-rtti -fno-exceptions"
7903   # Insert the option either (1) after the last *FLAGS variable, or
7904   # (2) before a word containing "conftest.", or (3) at the end.
7905   # Note that $ac_compile itself does not contain backslashes and begins
7906   # with a dollar sign (not a hyphen), so the echo should work correctly.
7907   # The option is referenced via a variable to avoid confusing sed.
7908   lt_compile=`echo "$ac_compile" | $SED \
7909   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7911   -e 's:$: $lt_compiler_flag:'`
7912   (eval echo "\"\$as_me:7912: $lt_compile\"" >&5)
7913   (eval "$lt_compile" 2>conftest.err)
7914   ac_status=$?
7915   cat conftest.err >&5
7916   echo "$as_me:7916: \$? = $ac_status" >&5
7917   if (exit $ac_status) && test -s "$ac_outfile"; then
7918     # The compiler can only warn and ignore the option if not recognized
7919     # So say no if there are warnings other than the usual output.
7920     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7921     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7922     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7923       lt_cv_prog_compiler_rtti_exceptions=yes
7924     fi
7925   fi
7926   $rm conftest*
7927
7928fi
7929echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7930echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7931
7932if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7933    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7934else
7935    :
7936fi
7937
7938fi
7939
7940lt_prog_compiler_wl=
7941lt_prog_compiler_pic=
7942lt_prog_compiler_static=
7943
7944echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7945echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7946
7947  if test "$GCC" = yes; then
7948    lt_prog_compiler_wl='-Wl,'
7949    lt_prog_compiler_static='-static'
7950
7951    case $host_os in
7952      aix*)
7953      # All AIX code is PIC.
7954      if test "$host_cpu" = ia64; then
7955        # AIX 5 now supports IA64 processor
7956        lt_prog_compiler_static='-Bstatic'
7957      fi
7958      ;;
7959
7960    amigaos*)
7961      # FIXME: we need at least 68020 code to build shared libraries, but
7962      # adding the `-m68020' flag to GCC prevents building anything better,
7963      # like `-m68040'.
7964      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7965      ;;
7966
7967    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7968      # PIC is the default for these OSes.
7969      ;;
7970
7971    mingw* | pw32* | os2*)
7972      # This hack is so that the source file can tell whether it is being
7973      # built for inclusion in a dll (and should export symbols for example).
7974      lt_prog_compiler_pic='-DDLL_EXPORT'
7975      ;;
7976
7977    darwin* | rhapsody*)
7978      # PIC is the default on this platform
7979      # Common symbols not allowed in MH_DYLIB files
7980      lt_prog_compiler_pic='-fno-common'
7981      ;;
7982
7983    interix3*)
7984      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7985      # Instead, we relocate shared libraries at runtime.
7986      ;;
7987
7988    msdosdjgpp*)
7989      # Just because we use GCC doesn't mean we suddenly get shared libraries
7990      # on systems that don't support them.
7991      lt_prog_compiler_can_build_shared=no
7992      enable_shared=no
7993      ;;
7994
7995    sysv4*MP*)
7996      if test -d /usr/nec; then
7997        lt_prog_compiler_pic=-Kconform_pic
7998      fi
7999      ;;
8000
8001    hpux*)
8002      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8003      # not for PA HP-UX.
8004      case $host_cpu in
8005      hppa*64*|ia64*)
8006        # +Z the default
8007        ;;
8008      *)
8009        lt_prog_compiler_pic='-fPIC'
8010        ;;
8011      esac
8012      ;;
8013
8014    *)
8015      lt_prog_compiler_pic='-fPIC'
8016      ;;
8017    esac
8018  else
8019    # PORTME Check for flag to pass linker flags through the system compiler.
8020    case $host_os in
8021    aix*)
8022      lt_prog_compiler_wl='-Wl,'
8023      if test "$host_cpu" = ia64; then
8024        # AIX 5 now supports IA64 processor
8025        lt_prog_compiler_static='-Bstatic'
8026      else
8027        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8028      fi
8029      ;;
8030      darwin*)
8031        # PIC is the default on this platform
8032        # Common symbols not allowed in MH_DYLIB files
8033       case $cc_basename in
8034         xlc*)
8035         lt_prog_compiler_pic='-qnocommon'
8036         lt_prog_compiler_wl='-Wl,'
8037         ;;
8038       esac
8039       ;;
8040
8041    mingw* | pw32* | os2*)
8042      # This hack is so that the source file can tell whether it is being
8043      # built for inclusion in a dll (and should export symbols for example).
8044      lt_prog_compiler_pic='-DDLL_EXPORT'
8045      ;;
8046
8047    hpux9* | hpux10* | hpux11*)
8048      lt_prog_compiler_wl='-Wl,'
8049      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8050      # not for PA HP-UX.
8051      case $host_cpu in
8052      hppa*64*|ia64*)
8053        # +Z the default
8054        ;;
8055      *)
8056        lt_prog_compiler_pic='+Z'
8057        ;;
8058      esac
8059      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8060      lt_prog_compiler_static='${wl}-a ${wl}archive'
8061      ;;
8062
8063    irix5* | irix6* | nonstopux*)
8064      lt_prog_compiler_wl='-Wl,'
8065      # PIC (with -KPIC) is the default.
8066      lt_prog_compiler_static='-non_shared'
8067      ;;
8068
8069    newsos6)
8070      lt_prog_compiler_pic='-KPIC'
8071      lt_prog_compiler_static='-Bstatic'
8072      ;;
8073
8074    linux*)
8075      case $cc_basename in
8076      icc* | ecc*)
8077        lt_prog_compiler_wl='-Wl,'
8078        lt_prog_compiler_pic='-KPIC'
8079        lt_prog_compiler_static='-static'
8080        ;;
8081      pgcc* | pgf77* | pgf90* | pgf95*)
8082        # Portland Group compilers (*not* the Pentium gcc compiler,
8083        # which looks to be a dead project)
8084        lt_prog_compiler_wl='-Wl,'
8085        lt_prog_compiler_pic='-fpic'
8086        lt_prog_compiler_static='-Bstatic'
8087        ;;
8088      ccc*)
8089        lt_prog_compiler_wl='-Wl,'
8090        # All Alpha code is PIC.
8091        lt_prog_compiler_static='-non_shared'
8092        ;;
8093      esac
8094      ;;
8095
8096    osf3* | osf4* | osf5*)
8097      lt_prog_compiler_wl='-Wl,'
8098      # All OSF/1 code is PIC.
8099      lt_prog_compiler_static='-non_shared'
8100      ;;
8101
8102    solaris*)
8103      lt_prog_compiler_pic='-KPIC'
8104      lt_prog_compiler_static='-Bstatic'
8105      case $cc_basename in
8106      f77* | f90* | f95*)
8107        lt_prog_compiler_wl='-Qoption ld ';;
8108      *)
8109        lt_prog_compiler_wl='-Wl,';;
8110      esac
8111      ;;
8112
8113    sunos4*)
8114      lt_prog_compiler_wl='-Qoption ld '
8115      lt_prog_compiler_pic='-PIC'
8116      lt_prog_compiler_static='-Bstatic'
8117      ;;
8118
8119    sysv4 | sysv4.2uw2* | sysv4.3*)
8120      lt_prog_compiler_wl='-Wl,'
8121      lt_prog_compiler_pic='-KPIC'
8122      lt_prog_compiler_static='-Bstatic'
8123      ;;
8124
8125    sysv4*MP*)
8126      if test -d /usr/nec ;then
8127        lt_prog_compiler_pic='-Kconform_pic'
8128        lt_prog_compiler_static='-Bstatic'
8129      fi
8130      ;;
8131
8132    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8133      lt_prog_compiler_wl='-Wl,'
8134      lt_prog_compiler_pic='-KPIC'
8135      lt_prog_compiler_static='-Bstatic'
8136      ;;
8137
8138    unicos*)
8139      lt_prog_compiler_wl='-Wl,'
8140      lt_prog_compiler_can_build_shared=no
8141      ;;
8142
8143    uts4*)
8144      lt_prog_compiler_pic='-pic'
8145      lt_prog_compiler_static='-Bstatic'
8146      ;;
8147
8148    *)
8149      lt_prog_compiler_can_build_shared=no
8150      ;;
8151    esac
8152  fi
8153
8154echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8155echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8156
8157#
8158# Check to make sure the PIC flag actually works.
8159#
8160if test -n "$lt_prog_compiler_pic"; then
8161
8162echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8163echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8164if test "${lt_prog_compiler_pic_works+set}" = set; then
8165  echo $ECHO_N "(cached) $ECHO_C" >&6
8166else
8167  lt_prog_compiler_pic_works=no
8168  ac_outfile=conftest.$ac_objext
8169   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8170   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8171   # Insert the option either (1) after the last *FLAGS variable, or
8172   # (2) before a word containing "conftest.", or (3) at the end.
8173   # Note that $ac_compile itself does not contain backslashes and begins
8174   # with a dollar sign (not a hyphen), so the echo should work correctly.
8175   # The option is referenced via a variable to avoid confusing sed.
8176   lt_compile=`echo "$ac_compile" | $SED \
8177   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8178   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8179   -e 's:$: $lt_compiler_flag:'`
8180   (eval echo "\"\$as_me:8180: $lt_compile\"" >&5)
8181   (eval "$lt_compile" 2>conftest.err)
8182   ac_status=$?
8183   cat conftest.err >&5
8184   echo "$as_me:8184: \$? = $ac_status" >&5
8185   if (exit $ac_status) && test -s "$ac_outfile"; then
8186     # The compiler can only warn and ignore the option if not recognized
8187     # So say no if there are warnings other than the usual output.
8188     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8189     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8190     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8191       lt_prog_compiler_pic_works=yes
8192     fi
8193   fi
8194   $rm conftest*
8195
8196fi
8197echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8198echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8199
8200if test x"$lt_prog_compiler_pic_works" = xyes; then
8201    case $lt_prog_compiler_pic in
8202     "" | " "*) ;;
8203     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8204     esac
8205else
8206    lt_prog_compiler_pic=
8207     lt_prog_compiler_can_build_shared=no
8208fi
8209
8210fi
8211case $host_os in
8212  # For platforms which do not support PIC, -DPIC is meaningless:
8213  *djgpp*)
8214    lt_prog_compiler_pic=
8215    ;;
8216  *)
8217    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8218    ;;
8219esac
8220
8221#
8222# Check to make sure the static flag actually works.
8223#
8224wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8225echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8226echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8227if test "${lt_prog_compiler_static_works+set}" = set; then
8228  echo $ECHO_N "(cached) $ECHO_C" >&6
8229else
8230  lt_prog_compiler_static_works=no
8231   save_LDFLAGS="$LDFLAGS"
8232   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8233   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8234   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8235     # The linker can only warn and ignore the option if not recognized
8236     # So say no if there are warnings
8237     if test -s conftest.err; then
8238       # Append any errors to the config.log.
8239       cat conftest.err 1>&5
8240       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8241       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8242       if diff conftest.exp conftest.er2 >/dev/null; then
8243         lt_prog_compiler_static_works=yes
8244       fi
8245     else
8246       lt_prog_compiler_static_works=yes
8247     fi
8248   fi
8249   $rm conftest*
8250   LDFLAGS="$save_LDFLAGS"
8251
8252fi
8253echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8254echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8255
8256if test x"$lt_prog_compiler_static_works" = xyes; then
8257    :
8258else
8259    lt_prog_compiler_static=
8260fi
8261
8262
8263echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8264echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8265if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8266  echo $ECHO_N "(cached) $ECHO_C" >&6
8267else
8268  lt_cv_prog_compiler_c_o=no
8269   $rm -r conftest 2>/dev/null
8270   mkdir conftest
8271   cd conftest
8272   mkdir out
8273   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8274
8275   lt_compiler_flag="-o out/conftest2.$ac_objext"
8276   # Insert the option either (1) after the last *FLAGS variable, or
8277   # (2) before a word containing "conftest.", or (3) at the end.
8278   # Note that $ac_compile itself does not contain backslashes and begins
8279   # with a dollar sign (not a hyphen), so the echo should work correctly.
8280   lt_compile=`echo "$ac_compile" | $SED \
8281   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8282   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8283   -e 's:$: $lt_compiler_flag:'`
8284   (eval echo "\"\$as_me:8284: $lt_compile\"" >&5)
8285   (eval "$lt_compile" 2>out/conftest.err)
8286   ac_status=$?
8287   cat out/conftest.err >&5
8288   echo "$as_me:8288: \$? = $ac_status" >&5
8289   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8290   then
8291     # The compiler can only warn and ignore the option if not recognized
8292     # So say no if there are warnings
8293     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8294     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8295     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8296       lt_cv_prog_compiler_c_o=yes
8297     fi
8298   fi
8299   chmod u+w . 2>&5
8300   $rm conftest*
8301   # SGI C++ compiler will create directory out/ii_files/ for
8302   # template instantiation
8303   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8304   $rm out/* && rmdir out
8305   cd ..
8306   rmdir conftest
8307   $rm conftest*
8308
8309fi
8310echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8311echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8312
8313
8314hard_links="nottested"
8315if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8316  # do not overwrite the value of need_locks provided by the user
8317  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8318echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8319  hard_links=yes
8320  $rm conftest*
8321  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8322  touch conftest.a
8323  ln conftest.a conftest.b 2>&5 || hard_links=no
8324  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8325  echo "$as_me:$LINENO: result: $hard_links" >&5
8326echo "${ECHO_T}$hard_links" >&6
8327  if test "$hard_links" = no; then
8328    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8329echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8330    need_locks=warn
8331  fi
8332else
8333  need_locks=no
8334fi
8335
8336echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8337echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8338
8339  runpath_var=
8340  allow_undefined_flag=
8341  enable_shared_with_static_runtimes=no
8342  archive_cmds=
8343  archive_expsym_cmds=
8344  old_archive_From_new_cmds=
8345  old_archive_from_expsyms_cmds=
8346  export_dynamic_flag_spec=
8347  whole_archive_flag_spec=
8348  thread_safe_flag_spec=
8349  hardcode_libdir_flag_spec=
8350  hardcode_libdir_flag_spec_ld=
8351  hardcode_libdir_separator=
8352  hardcode_direct=no
8353  hardcode_minus_L=no
8354  hardcode_shlibpath_var=unsupported
8355  link_all_deplibs=unknown
8356  hardcode_automatic=no
8357  module_cmds=
8358  module_expsym_cmds=
8359  always_export_symbols=no
8360  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8361  # include_expsyms should be a list of space-separated symbols to be *always*
8362  # included in the symbol list
8363  include_expsyms=
8364  # exclude_expsyms can be an extended regexp of symbols to exclude
8365  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8366  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8367  # as well as any symbol that contains `d'.
8368  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8369  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8370  # platforms (ab)use it in PIC code, but their linkers get confused if
8371  # the symbol is explicitly referenced.  Since portable code cannot
8372  # rely on this symbol name, it's probably fine to never include it in
8373  # preloaded symbol tables.
8374  extract_expsyms_cmds=
8375  # Just being paranoid about ensuring that cc_basename is set.
8376  for cc_temp in $compiler""; do
8377  case $cc_temp in
8378    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8379    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8380    \-*) ;;
8381    *) break;;
8382  esac
8383done
8384cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8385
8386  case $host_os in
8387  cygwin* | mingw* | pw32*)
8388    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8389    # When not using gcc, we currently assume that we are using
8390    # Microsoft Visual C++.
8391    if test "$GCC" != yes; then
8392      with_gnu_ld=no
8393    fi
8394    ;;
8395  interix*)
8396    # we just hope/assume this is gcc and not c89 (= MSVC++)
8397    with_gnu_ld=yes
8398    ;;
8399  openbsd*)
8400    with_gnu_ld=no
8401    ;;
8402  esac
8403
8404  ld_shlibs=yes
8405  if test "$with_gnu_ld" = yes; then
8406    # If archive_cmds runs LD, not CC, wlarc should be empty
8407    wlarc='${wl}'
8408
8409    # Set some defaults for GNU ld with shared library support. These
8410    # are reset later if shared libraries are not supported. Putting them
8411    # here allows them to be overridden if necessary.
8412    runpath_var=LD_RUN_PATH
8413    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8414    export_dynamic_flag_spec='${wl}--export-dynamic'
8415    # ancient GNU ld didn't support --whole-archive et. al.
8416    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8417        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8418      else
8419        whole_archive_flag_spec=
8420    fi
8421    supports_anon_versioning=no
8422    case `$LD -v 2>/dev/null` in
8423      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8424      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8425      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8426      *\ 2.11.*) ;; # other 2.11 versions
8427      *) supports_anon_versioning=yes ;;
8428    esac
8429
8430    # See if GNU ld supports shared libraries.
8431    case $host_os in
8432    aix3* | aix4* | aix5*)
8433      # On AIX/PPC, the GNU linker is very broken
8434      if test "$host_cpu" != ia64; then
8435        ld_shlibs=no
8436        cat <<EOF 1>&2
8437
8438*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8439*** to be unable to reliably create shared libraries on AIX.
8440*** Therefore, libtool is disabling shared libraries support.  If you
8441*** really care for shared libraries, you may want to modify your PATH
8442*** so that a non-GNU linker is found, and then restart.
8443
8444EOF
8445      fi
8446      ;;
8447
8448    amigaos*)
8449      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)'
8450      hardcode_libdir_flag_spec='-L$libdir'
8451      hardcode_minus_L=yes
8452
8453      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8454      # that the semantics of dynamic libraries on AmigaOS, at least up
8455      # to version 4, is to share data among multiple programs linked
8456      # with the same dynamic library.  Since this doesn't match the
8457      # behavior of shared libraries on other platforms, we can't use
8458      # them.
8459      ld_shlibs=no
8460      ;;
8461
8462    beos*)
8463      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8464        allow_undefined_flag=unsupported
8465        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8466        # support --undefined.  This deserves some investigation.  FIXME
8467        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8468      else
8469        ld_shlibs=no
8470      fi
8471      ;;
8472
8473    cygwin* | mingw* | pw32*)
8474      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8475      # as there is no search path for DLLs.
8476      hardcode_libdir_flag_spec='-L$libdir'
8477      allow_undefined_flag=unsupported
8478      always_export_symbols=no
8479      enable_shared_with_static_runtimes=yes
8480      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8481
8482      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8483        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8484        # If the export-symbols file already is a .def file (1st line
8485        # is EXPORTS), use it as is; otherwise, prepend...
8486        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8487          cp $export_symbols $output_objdir/$soname.def;
8488        else
8489          echo EXPORTS > $output_objdir/$soname.def;
8490          cat $export_symbols >> $output_objdir/$soname.def;
8491        fi~
8492        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8493      else
8494        ld_shlibs=no
8495      fi
8496      ;;
8497
8498    interix3*)
8499      hardcode_direct=no
8500      hardcode_shlibpath_var=no
8501      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8502      export_dynamic_flag_spec='${wl}-E'
8503      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8504      # Instead, shared libraries are loaded at an image base (0x10000000 by
8505      # default) and relocated if they conflict, which is a slow very memory
8506      # consuming and fragmenting process.  To avoid this, we pick a random,
8507      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8508      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8509      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8510      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'
8511      ;;
8512
8513    linux*)
8514      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8515        tmp_addflag=
8516        case $cc_basename,$host_cpu in
8517        pgcc*)                          # Portland Group C compiler
8518          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'
8519          tmp_addflag=' $pic_flag'
8520          ;;
8521        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8522          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'
8523          tmp_addflag=' $pic_flag -Mnomain' ;;
8524        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8525          tmp_addflag=' -i_dynamic' ;;
8526        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8527          tmp_addflag=' -i_dynamic -nofor_main' ;;
8528        ifc* | ifort*)                  # Intel Fortran compiler
8529          tmp_addflag=' -nofor_main' ;;
8530        esac
8531        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532
8533        if test $supports_anon_versioning = yes; then
8534          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8535  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8536  $echo "local: *; };" >> $output_objdir/$libname.ver~
8537          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8538        fi
8539      else
8540        ld_shlibs=no
8541      fi
8542      ;;
8543
8544    netbsd*)
8545      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8546        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8547        wlarc=
8548      else
8549        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8551      fi
8552      ;;
8553
8554    solaris*)
8555      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8556        ld_shlibs=no
8557        cat <<EOF 1>&2
8558
8559*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8560*** create shared libraries on Solaris systems.  Therefore, libtool
8561*** is disabling shared libraries support.  We urge you to upgrade GNU
8562*** binutils to release 2.9.1 or newer.  Another option is to modify
8563*** your PATH or compiler configuration so that the native linker is
8564*** used, and then restart.
8565
8566EOF
8567      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8568        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8569        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8570      else
8571        ld_shlibs=no
8572      fi
8573      ;;
8574
8575    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8576      case `$LD -v 2>&1` in
8577        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8578        ld_shlibs=no
8579        cat <<_LT_EOF 1>&2
8580
8581*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8582*** reliably create shared libraries on SCO systems.  Therefore, libtool
8583*** is disabling shared libraries support.  We urge you to upgrade GNU
8584*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8585*** your PATH or compiler configuration so that the native linker is
8586*** used, and then restart.
8587
8588_LT_EOF
8589        ;;
8590        *)
8591          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8592            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8593            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8594            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8595          else
8596            ld_shlibs=no
8597          fi
8598        ;;
8599      esac
8600      ;;
8601
8602    sunos4*)
8603      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8604      wlarc=
8605      hardcode_direct=yes
8606      hardcode_shlibpath_var=no
8607      ;;
8608
8609    *)
8610      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8611        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8612        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8613      else
8614        ld_shlibs=no
8615      fi
8616      ;;
8617    esac
8618
8619    if test "$ld_shlibs" = no; then
8620      runpath_var=
8621      hardcode_libdir_flag_spec=
8622      export_dynamic_flag_spec=
8623      whole_archive_flag_spec=
8624    fi
8625  else
8626    # PORTME fill in a description of your system's linker (not GNU ld)
8627    case $host_os in
8628    aix3*)
8629      allow_undefined_flag=unsupported
8630      always_export_symbols=yes
8631      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'
8632      # Note: this linker hardcodes the directories in LIBPATH if there
8633      # are no directories specified by -L.
8634      hardcode_minus_L=yes
8635      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8636        # Neither direct hardcoding nor static linking is supported with a
8637        # broken collect2.
8638        hardcode_direct=unsupported
8639      fi
8640      ;;
8641
8642    aix4* | aix5*)
8643      if test "$host_cpu" = ia64; then
8644        # On IA64, the linker does run time linking by default, so we don't
8645        # have to do anything special.
8646        aix_use_runtimelinking=no
8647        exp_sym_flag='-Bexport'
8648        no_entry_flag=""
8649      else
8650        # If we're using GNU nm, then we don't want the "-C" option.
8651        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8652        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8653          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'
8654        else
8655          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'
8656        fi
8657        aix_use_runtimelinking=no
8658
8659        # Test if we are trying to use run time linking or normal
8660        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8661        # need to do runtime linking.
8662        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8663          for ld_flag in $LDFLAGS; do
8664          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8665            aix_use_runtimelinking=yes
8666            break
8667          fi
8668          done
8669          ;;
8670        esac
8671
8672        exp_sym_flag='-bexport'
8673        no_entry_flag='-bnoentry'
8674      fi
8675
8676      # When large executables or shared objects are built, AIX ld can
8677      # have problems creating the table of contents.  If linking a library
8678      # or program results in "error TOC overflow" add -mminimal-toc to
8679      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8680      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8681
8682      archive_cmds=''
8683      hardcode_direct=yes
8684      hardcode_libdir_separator=':'
8685      link_all_deplibs=yes
8686
8687      if test "$GCC" = yes; then
8688        case $host_os in aix4.[012]|aix4.[012].*)
8689        # We only want to do this on AIX 4.2 and lower, the check
8690        # below for broken collect2 doesn't work under 4.3+
8691          collect2name=`${CC} -print-prog-name=collect2`
8692          if test -f "$collect2name" && \
8693           strings "$collect2name" | grep resolve_lib_name >/dev/null
8694          then
8695          # We have reworked collect2
8696          hardcode_direct=yes
8697          else
8698          # We have old collect2
8699          hardcode_direct=unsupported
8700          # It fails to find uninstalled libraries when the uninstalled
8701          # path is not listed in the libpath.  Setting hardcode_minus_L
8702          # to unsupported forces relinking
8703          hardcode_minus_L=yes
8704          hardcode_libdir_flag_spec='-L$libdir'
8705          hardcode_libdir_separator=
8706          fi
8707          ;;
8708        esac
8709        shared_flag='-shared'
8710        if test "$aix_use_runtimelinking" = yes; then
8711          shared_flag="$shared_flag "'${wl}-G'
8712        fi
8713      else
8714        # not using gcc
8715        if test "$host_cpu" = ia64; then
8716        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8717        # chokes on -Wl,-G. The following line is correct:
8718          shared_flag='-G'
8719        else
8720          if test "$aix_use_runtimelinking" = yes; then
8721            shared_flag='${wl}-G'
8722          else
8723            shared_flag='${wl}-bM:SRE'
8724          fi
8725        fi
8726      fi
8727
8728      # It seems that -bexpall does not export symbols beginning with
8729      # underscore (_), so it is better to generate a list of symbols to export.
8730      always_export_symbols=yes
8731      if test "$aix_use_runtimelinking" = yes; then
8732        # Warning - without using the other runtime loading flags (-brtl),
8733        # -berok will link without error, but may produce a broken library.
8734        allow_undefined_flag='-berok'
8735       # Determine the default libpath from the value encoded in an empty executable.
8736       cat >conftest.$ac_ext <<_ACEOF
8737/* confdefs.h.  */
8738_ACEOF
8739cat confdefs.h >>conftest.$ac_ext
8740cat >>conftest.$ac_ext <<_ACEOF
8741/* end confdefs.h.  */
8742
8743int
8744main ()
8745{
8746
8747  ;
8748  return 0;
8749}
8750_ACEOF
8751rm -f conftest.$ac_objext conftest$ac_exeext
8752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753  (eval $ac_link) 2>conftest.er1
8754  ac_status=$?
8755  grep -v '^ *+' conftest.er1 >conftest.err
8756  rm -f conftest.er1
8757  cat conftest.err >&5
8758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759  (exit $ac_status); } &&
8760         { ac_try='test -z "$ac_c_werror_flag"
8761                         || test ! -s conftest.err'
8762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763  (eval $ac_try) 2>&5
8764  ac_status=$?
8765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766  (exit $ac_status); }; } &&
8767         { ac_try='test -s conftest$ac_exeext'
8768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769  (eval $ac_try) 2>&5
8770  ac_status=$?
8771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772  (exit $ac_status); }; }; then
8773
8774aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8775}'`
8776# Check for a 64-bit object if we didn't find anything.
8777if 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; }
8778}'`; fi
8779else
8780  echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
8783fi
8784rm -f conftest.err conftest.$ac_objext \
8785      conftest$ac_exeext conftest.$ac_ext
8786if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8787
8788       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8789        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"
8790       else
8791        if test "$host_cpu" = ia64; then
8792          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8793          allow_undefined_flag="-z nodefs"
8794          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"
8795        else
8796         # Determine the default libpath from the value encoded in an empty executable.
8797         cat >conftest.$ac_ext <<_ACEOF
8798/* confdefs.h.  */
8799_ACEOF
8800cat confdefs.h >>conftest.$ac_ext
8801cat >>conftest.$ac_ext <<_ACEOF
8802/* end confdefs.h.  */
8803
8804int
8805main ()
8806{
8807
8808  ;
8809  return 0;
8810}
8811_ACEOF
8812rm -f conftest.$ac_objext conftest$ac_exeext
8813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814  (eval $ac_link) 2>conftest.er1
8815  ac_status=$?
8816  grep -v '^ *+' conftest.er1 >conftest.err
8817  rm -f conftest.er1
8818  cat conftest.err >&5
8819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820  (exit $ac_status); } &&
8821         { ac_try='test -z "$ac_c_werror_flag"
8822                         || test ! -s conftest.err'
8823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824  (eval $ac_try) 2>&5
8825  ac_status=$?
8826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827  (exit $ac_status); }; } &&
8828         { ac_try='test -s conftest$ac_exeext'
8829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830  (eval $ac_try) 2>&5
8831  ac_status=$?
8832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833  (exit $ac_status); }; }; then
8834
8835aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8836}'`
8837# Check for a 64-bit object if we didn't find anything.
8838if 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; }
8839}'`; fi
8840else
8841  echo "$as_me: failed program was:" >&5
8842sed 's/^/| /' conftest.$ac_ext >&5
8843
8844fi
8845rm -f conftest.err conftest.$ac_objext \
8846      conftest$ac_exeext conftest.$ac_ext
8847if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8848
8849         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8850          # Warning - without using the other run time loading flags,
8851          # -berok will link without error, but may produce a broken library.
8852          no_undefined_flag=' ${wl}-bernotok'
8853          allow_undefined_flag=' ${wl}-berok'
8854          # Exported symbols can be pulled into shared objects from archives
8855          whole_archive_flag_spec='$convenience'
8856          archive_cmds_need_lc=yes
8857          # This is similar to how AIX traditionally builds its shared libraries.
8858          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'
8859        fi
8860      fi
8861      ;;
8862
8863    amigaos*)
8864      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)'
8865      hardcode_libdir_flag_spec='-L$libdir'
8866      hardcode_minus_L=yes
8867      # see comment about different semantics on the GNU ld section
8868      ld_shlibs=no
8869      ;;
8870
8871    bsdi[45]*)
8872      export_dynamic_flag_spec=-rdynamic
8873      ;;
8874
8875    cygwin* | mingw* | pw32*)
8876      # When not using gcc, we currently assume that we are using
8877      # Microsoft Visual C++.
8878      # hardcode_libdir_flag_spec is actually meaningless, as there is
8879      # no search path for DLLs.
8880      hardcode_libdir_flag_spec=' '
8881      allow_undefined_flag=unsupported
8882      # Tell ltmain to make .lib files, not .a files.
8883      libext=lib
8884      # Tell ltmain to make .dll files, not .so files.
8885      shrext_cmds=".dll"
8886      # FIXME: Setting linknames here is a bad hack.
8887      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8888      # The linker will automatically build a .lib file if we build a DLL.
8889      old_archive_From_new_cmds='true'
8890      # FIXME: Should let the user specify the lib program.
8891      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8892      fix_srcfile_path='`cygpath -w "$srcfile"`'
8893      enable_shared_with_static_runtimes=yes
8894      ;;
8895
8896    darwin* | rhapsody*)
8897      case $host_os in
8898        rhapsody* | darwin1.[012])
8899         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8900         ;;
8901       *) # Darwin 1.3 on
8902         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8903           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8904         else
8905           case ${MACOSX_DEPLOYMENT_TARGET} in
8906             10.[012])
8907               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8908               ;;
8909             10.*)
8910               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8911               ;;
8912           esac
8913         fi
8914         ;;
8915      esac
8916      archive_cmds_need_lc=no
8917      hardcode_direct=no
8918      hardcode_automatic=yes
8919      hardcode_shlibpath_var=unsupported
8920      whole_archive_flag_spec=''
8921      link_all_deplibs=yes
8922    if test "$GCC" = yes ; then
8923        output_verbose_link_cmd='echo'
8924        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8925      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8926      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8927      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}'
8928      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}'
8929    else
8930      case $cc_basename in
8931        xlc*)
8932         output_verbose_link_cmd='echo'
8933         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8934         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8935          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8936         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}'
8937          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}'
8938          ;;
8939       *)
8940         ld_shlibs=no
8941          ;;
8942      esac
8943    fi
8944      ;;
8945
8946    dgux*)
8947      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948      hardcode_libdir_flag_spec='-L$libdir'
8949      hardcode_shlibpath_var=no
8950      ;;
8951
8952    freebsd1*)
8953      ld_shlibs=no
8954      ;;
8955
8956    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8957    # support.  Future versions do this automatically, but an explicit c++rt0.o
8958    # does not break anything, and helps significantly (at the cost of a little
8959    # extra space).
8960    freebsd2.2*)
8961      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8962      hardcode_libdir_flag_spec='-R$libdir'
8963      hardcode_direct=yes
8964      hardcode_shlibpath_var=no
8965      ;;
8966
8967    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8968    freebsd2*)
8969      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8970      hardcode_direct=yes
8971      hardcode_minus_L=yes
8972      hardcode_shlibpath_var=no
8973      ;;
8974
8975    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8976    freebsd* | kfreebsd*-gnu | dragonfly*)
8977      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8978      hardcode_libdir_flag_spec='-R$libdir'
8979      hardcode_direct=yes
8980      hardcode_shlibpath_var=no
8981      ;;
8982
8983    hpux9*)
8984      if test "$GCC" = yes; then
8985        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'
8986      else
8987        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'
8988      fi
8989      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8990      hardcode_libdir_separator=:
8991      hardcode_direct=yes
8992
8993      # hardcode_minus_L: Not really in the search PATH,
8994      # but as the default location of the library.
8995      hardcode_minus_L=yes
8996      export_dynamic_flag_spec='${wl}-E'
8997      ;;
8998
8999    hpux10*)
9000      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9001        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9002      else
9003        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9004      fi
9005      if test "$with_gnu_ld" = no; then
9006        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9007        hardcode_libdir_separator=:
9008
9009        hardcode_direct=yes
9010        export_dynamic_flag_spec='${wl}-E'
9011
9012        # hardcode_minus_L: Not really in the search PATH,
9013        # but as the default location of the library.
9014        hardcode_minus_L=yes
9015      fi
9016      ;;
9017
9018    hpux11*)
9019      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9020        case $host_cpu in
9021        hppa*64*)
9022          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9023          ;;
9024        ia64*)
9025          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9026          ;;
9027        *)
9028          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9029          ;;
9030        esac
9031      else
9032        case $host_cpu in
9033        hppa*64*)
9034          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9035          ;;
9036        ia64*)
9037          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9038          ;;
9039        *)
9040          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9041          ;;
9042        esac
9043      fi
9044      if test "$with_gnu_ld" = no; then
9045        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9046        hardcode_libdir_separator=:
9047
9048        case $host_cpu in
9049        hppa*64*|ia64*)
9050          hardcode_libdir_flag_spec_ld='+b $libdir'
9051          hardcode_direct=no
9052          hardcode_shlibpath_var=no
9053          ;;
9054        *)
9055          hardcode_direct=yes
9056          export_dynamic_flag_spec='${wl}-E'
9057
9058          # hardcode_minus_L: Not really in the search PATH,
9059          # but as the default location of the library.
9060          hardcode_minus_L=yes
9061          ;;
9062        esac
9063      fi
9064      ;;
9065
9066    irix5* | irix6* | nonstopux*)
9067      if test "$GCC" = yes; then
9068        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'
9069      else
9070        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'
9071        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9072      fi
9073      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9074      hardcode_libdir_separator=:
9075      link_all_deplibs=yes
9076      ;;
9077
9078    netbsd*)
9079      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9080        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9081      else
9082        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9083      fi
9084      hardcode_libdir_flag_spec='-R$libdir'
9085      hardcode_direct=yes
9086      hardcode_shlibpath_var=no
9087      ;;
9088
9089    newsos6)
9090      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9091      hardcode_direct=yes
9092      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9093      hardcode_libdir_separator=:
9094      hardcode_shlibpath_var=no
9095      ;;
9096
9097    openbsd*)
9098      hardcode_direct=yes
9099      hardcode_shlibpath_var=no
9100      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9101        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9102        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9103        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9104        export_dynamic_flag_spec='${wl}-E'
9105      else
9106       case $host_os in
9107         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9108           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9109           hardcode_libdir_flag_spec='-R$libdir'
9110           ;;
9111         *)
9112           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9113           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9114           ;;
9115       esac
9116      fi
9117      ;;
9118
9119    os2*)
9120      hardcode_libdir_flag_spec='-L$libdir'
9121      hardcode_minus_L=yes
9122      allow_undefined_flag=unsupported
9123      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'
9124      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9125      ;;
9126
9127    osf3*)
9128      if test "$GCC" = yes; then
9129        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9130        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'
9131      else
9132        allow_undefined_flag=' -expect_unresolved \*'
9133        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'
9134      fi
9135      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136      hardcode_libdir_separator=:
9137      ;;
9138
9139    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9140      if test "$GCC" = yes; then
9141        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9142        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'
9143        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9144      else
9145        allow_undefined_flag=' -expect_unresolved \*'
9146        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'
9147        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9148        $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'
9149
9150        # Both c and cxx compiler support -rpath directly
9151        hardcode_libdir_flag_spec='-rpath $libdir'
9152      fi
9153      hardcode_libdir_separator=:
9154      ;;
9155
9156    solaris*)
9157      no_undefined_flag=' -z text'
9158      if test "$GCC" = yes; then
9159        wlarc='${wl}'
9160        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9161        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9162          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9163      else
9164        wlarc=''
9165        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9166        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9167        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9168      fi
9169      hardcode_libdir_flag_spec='-R$libdir'
9170      hardcode_shlibpath_var=no
9171      case $host_os in
9172      solaris2.[0-5] | solaris2.[0-5].*) ;;
9173      *)
9174        # The compiler driver will combine linker options so we
9175        # cannot just pass the convience library names through
9176        # without $wl, iff we do not link with $LD.
9177        # Luckily, gcc supports the same syntax we need for Sun Studio.
9178        # Supported since Solaris 2.6 (maybe 2.5.1?)
9179        case $wlarc in
9180        '')
9181          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9182        *)
9183          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' ;;
9184        esac ;;
9185      esac
9186      link_all_deplibs=yes
9187      ;;
9188
9189    sunos4*)
9190      if test "x$host_vendor" = xsequent; then
9191        # Use $CC to link under sequent, because it throws in some extra .o
9192        # files that make .init and .fini sections work.
9193        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9194      else
9195        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9196      fi
9197      hardcode_libdir_flag_spec='-L$libdir'
9198      hardcode_direct=yes
9199      hardcode_minus_L=yes
9200      hardcode_shlibpath_var=no
9201      ;;
9202
9203    sysv4)
9204      case $host_vendor in
9205        sni)
9206          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9207          hardcode_direct=yes # is this really true???
9208        ;;
9209        siemens)
9210          ## LD is ld it makes a PLAMLIB
9211          ## CC just makes a GrossModule.
9212          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9213          reload_cmds='$CC -r -o $output$reload_objs'
9214          hardcode_direct=no
9215        ;;
9216        motorola)
9217          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9218          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9219        ;;
9220      esac
9221      runpath_var='LD_RUN_PATH'
9222      hardcode_shlibpath_var=no
9223      ;;
9224
9225    sysv4.3*)
9226      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9227      hardcode_shlibpath_var=no
9228      export_dynamic_flag_spec='-Bexport'
9229      ;;
9230
9231    sysv4*MP*)
9232      if test -d /usr/nec; then
9233        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9234        hardcode_shlibpath_var=no
9235        runpath_var=LD_RUN_PATH
9236        hardcode_runpath_var=yes
9237        ld_shlibs=yes
9238      fi
9239      ;;
9240
9241    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9242      no_undefined_flag='${wl}-z,text'
9243      archive_cmds_need_lc=no
9244      hardcode_shlibpath_var=no
9245      runpath_var='LD_RUN_PATH'
9246
9247      if test "$GCC" = yes; then
9248        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9249        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9250      else
9251        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9252        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9253      fi
9254      ;;
9255
9256    sysv5* | sco3.2v5* | sco5v6*)
9257      # Note: We can NOT use -z defs as we might desire, because we do not
9258      # link with -lc, and that would cause any symbols used from libc to
9259      # always be unresolved, which means just about no library would
9260      # ever link correctly.  If we're not using GNU ld we use -z text
9261      # though, which does catch some bad symbols but isn't as heavy-handed
9262      # as -z defs.
9263      no_undefined_flag='${wl}-z,text'
9264      allow_undefined_flag='${wl}-z,nodefs'
9265      archive_cmds_need_lc=no
9266      hardcode_shlibpath_var=no
9267      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9268      hardcode_libdir_separator=':'
9269      link_all_deplibs=yes
9270      export_dynamic_flag_spec='${wl}-Bexport'
9271      runpath_var='LD_RUN_PATH'
9272
9273      if test "$GCC" = yes; then
9274        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9275        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9276      else
9277        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9278        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9279      fi
9280      ;;
9281
9282    uts4*)
9283      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9284      hardcode_libdir_flag_spec='-L$libdir'
9285      hardcode_shlibpath_var=no
9286      ;;
9287
9288    *)
9289      ld_shlibs=no
9290      ;;
9291    esac
9292  fi
9293
9294echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9295echo "${ECHO_T}$ld_shlibs" >&6
9296test "$ld_shlibs" = no && can_build_shared=no
9297
9298#
9299# Do we need to explicitly link libc?
9300#
9301case "x$archive_cmds_need_lc" in
9302x|xyes)
9303  # Assume -lc should be added
9304  archive_cmds_need_lc=yes
9305
9306  if test "$enable_shared" = yes && test "$GCC" = yes; then
9307    case $archive_cmds in
9308    *'~'*)
9309      # FIXME: we may have to deal with multi-command sequences.
9310      ;;
9311    '$CC '*)
9312      # Test whether the compiler implicitly links with -lc since on some
9313      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9314      # to ld, don't add -lc before -lgcc.
9315      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9316echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9317      $rm conftest*
9318      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9319
9320      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9321  (eval $ac_compile) 2>&5
9322  ac_status=$?
9323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324  (exit $ac_status); } 2>conftest.err; then
9325        soname=conftest
9326        lib=conftest
9327        libobjs=conftest.$ac_objext
9328        deplibs=
9329        wl=$lt_prog_compiler_wl
9330        pic_flag=$lt_prog_compiler_pic
9331        compiler_flags=-v
9332        linker_flags=-v
9333        verstring=
9334        output_objdir=.
9335        libname=conftest
9336        lt_save_allow_undefined_flag=$allow_undefined_flag
9337        allow_undefined_flag=
9338        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9339  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9340  ac_status=$?
9341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342  (exit $ac_status); }
9343        then
9344          archive_cmds_need_lc=no
9345        else
9346          archive_cmds_need_lc=yes
9347        fi
9348        allow_undefined_flag=$lt_save_allow_undefined_flag
9349      else
9350        cat conftest.err 1>&5
9351      fi
9352      $rm conftest*
9353      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9354echo "${ECHO_T}$archive_cmds_need_lc" >&6
9355      ;;
9356    esac
9357  fi
9358  ;;
9359esac
9360
9361echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9362echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9363library_names_spec=
9364libname_spec='lib$name'
9365soname_spec=
9366shrext_cmds=".so"
9367postinstall_cmds=
9368postuninstall_cmds=
9369finish_cmds=
9370finish_eval=
9371shlibpath_var=
9372shlibpath_overrides_runpath=unknown
9373version_type=none
9374dynamic_linker="$host_os ld.so"
9375sys_lib_dlsearch_path_spec="/lib /usr/lib"
9376if test "$GCC" = yes; then
9377  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9378  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9379    # if the path contains ";" then we assume it to be the separator
9380    # otherwise default to the standard path separator (i.e. ":") - it is
9381    # assumed that no part of a normal pathname contains ";" but that should
9382    # okay in the real world where ";" in dirpaths is itself problematic.
9383    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9384  else
9385    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9386  fi
9387else
9388  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9389fi
9390need_lib_prefix=unknown
9391hardcode_into_libs=no
9392
9393# when you set need_version to no, make sure it does not cause -set_version
9394# flags to be left without arguments
9395need_version=unknown
9396
9397case $host_os in
9398aix3*)
9399  version_type=linux
9400  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9401  shlibpath_var=LIBPATH
9402
9403  # AIX 3 has no versioning support, so we append a major version to the name.
9404  soname_spec='${libname}${release}${shared_ext}$major'
9405  ;;
9406
9407aix4* | aix5*)
9408  version_type=linux
9409  need_lib_prefix=no
9410  need_version=no
9411  hardcode_into_libs=yes
9412  if test "$host_cpu" = ia64; then
9413    # AIX 5 supports IA64
9414    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9415    shlibpath_var=LD_LIBRARY_PATH
9416  else
9417    # With GCC up to 2.95.x, collect2 would create an import file
9418    # for dependence libraries.  The import file would start with
9419    # the line `#! .'.  This would cause the generated library to
9420    # depend on `.', always an invalid library.  This was fixed in
9421    # development snapshots of GCC prior to 3.0.
9422    case $host_os in
9423      aix4 | aix4.[01] | aix4.[01].*)
9424      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9425           echo ' yes '
9426           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9427        :
9428      else
9429        can_build_shared=no
9430      fi
9431      ;;
9432    esac
9433    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9434    # soname into executable. Probably we can add versioning support to
9435    # collect2, so additional links can be useful in future.
9436    if test "$aix_use_runtimelinking" = yes; then
9437      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9438      # instead of lib<name>.a to let people know that these are not
9439      # typical AIX shared libraries.
9440      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441    else
9442      # We preserve .a as extension for shared libraries through AIX4.2
9443      # and later when we are not doing run time linking.
9444      library_names_spec='${libname}${release}.a $libname.a'
9445      soname_spec='${libname}${release}${shared_ext}$major'
9446    fi
9447    shlibpath_var=LIBPATH
9448  fi
9449  ;;
9450
9451amigaos*)
9452  library_names_spec='$libname.ixlibrary $libname.a'
9453  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9454  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'
9455  ;;
9456
9457beos*)
9458  library_names_spec='${libname}${shared_ext}'
9459  dynamic_linker="$host_os ld.so"
9460  shlibpath_var=LIBRARY_PATH
9461  ;;
9462
9463bsdi[45]*)
9464  version_type=linux
9465  need_version=no
9466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9467  soname_spec='${libname}${release}${shared_ext}$major'
9468  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9469  shlibpath_var=LD_LIBRARY_PATH
9470  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9471  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9472  # the default ld.so.conf also contains /usr/contrib/lib and
9473  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9474  # libtool to hard-code these into programs
9475  ;;
9476
9477cygwin* | mingw* | pw32*)
9478  version_type=windows
9479  shrext_cmds=".dll"
9480  need_version=no
9481  need_lib_prefix=no
9482
9483  case $GCC,$host_os in
9484  yes,cygwin* | yes,mingw* | yes,pw32*)
9485    library_names_spec='$libname.dll.a'
9486    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9487    postinstall_cmds='base_file=`basename \${file}`~
9488      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9489      dldir=$destdir/`dirname \$dlpath`~
9490      test -d \$dldir || mkdir -p \$dldir~
9491      $install_prog $dir/$dlname \$dldir/$dlname~
9492      chmod a+x \$dldir/$dlname'
9493    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9494      dlpath=$dir/\$dldll~
9495       $rm \$dlpath'
9496    shlibpath_overrides_runpath=yes
9497
9498    case $host_os in
9499    cygwin*)
9500      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9501      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9502      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9503      ;;
9504    mingw*)
9505      # MinGW DLLs use traditional 'lib' prefix
9506      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9507      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9508      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9509        # It is most probably a Windows format PATH printed by
9510        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9511        # path with ; separators, and with drive letters. We can handle the
9512        # drive letters (cygwin fileutils understands them), so leave them,
9513        # especially as we might pass files found there to a mingw objdump,
9514        # which wouldn't understand a cygwinified path. Ahh.
9515        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9516      else
9517        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9518      fi
9519      ;;
9520    pw32*)
9521      # pw32 DLLs use 'pw' prefix rather than 'lib'
9522      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9523      ;;
9524    esac
9525    ;;
9526
9527  *)
9528    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9529    ;;
9530  esac
9531  dynamic_linker='Win32 ld.exe'
9532  # FIXME: first we should search . and the directory the executable is in
9533  shlibpath_var=PATH
9534  ;;
9535
9536darwin* | rhapsody*)
9537  dynamic_linker="$host_os dyld"
9538  version_type=darwin
9539  need_lib_prefix=no
9540  need_version=no
9541  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9542  soname_spec='${libname}${release}${major}$shared_ext'
9543  shlibpath_overrides_runpath=yes
9544  shlibpath_var=DYLD_LIBRARY_PATH
9545  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9546  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9547  if test "$GCC" = yes; then
9548    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"`
9549  else
9550    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9551  fi
9552  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9553  ;;
9554
9555dgux*)
9556  version_type=linux
9557  need_lib_prefix=no
9558  need_version=no
9559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9560  soname_spec='${libname}${release}${shared_ext}$major'
9561  shlibpath_var=LD_LIBRARY_PATH
9562  ;;
9563
9564freebsd1*)
9565  dynamic_linker=no
9566  ;;
9567
9568kfreebsd*-gnu)
9569  version_type=linux
9570  need_lib_prefix=no
9571  need_version=no
9572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9573  soname_spec='${libname}${release}${shared_ext}$major'
9574  shlibpath_var=LD_LIBRARY_PATH
9575  shlibpath_overrides_runpath=no
9576  hardcode_into_libs=yes
9577  dynamic_linker='GNU ld.so'
9578  ;;
9579
9580freebsd* | dragonfly*)
9581  # DragonFly does not have aout.  When/if they implement a new
9582  # versioning mechanism, adjust this.
9583  if test -x /usr/bin/objformat; then
9584    objformat=`/usr/bin/objformat`
9585  else
9586    case $host_os in
9587    freebsd[123]*) objformat=aout ;;
9588    *) objformat=elf ;;
9589    esac
9590  fi
9591  version_type=freebsd-$objformat
9592  case $version_type in
9593    freebsd-elf*)
9594      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9595      need_version=no
9596      need_lib_prefix=no
9597      ;;
9598    freebsd-*)
9599      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9600      need_version=yes
9601      ;;
9602  esac
9603  shlibpath_var=LD_LIBRARY_PATH
9604  case $host_os in
9605  freebsd2*)
9606    shlibpath_overrides_runpath=yes
9607    ;;
9608  freebsd3.[01]* | freebsdelf3.[01]*)
9609    shlibpath_overrides_runpath=yes
9610    hardcode_into_libs=yes
9611    ;;
9612  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9613  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9614    shlibpath_overrides_runpath=no
9615    hardcode_into_libs=yes
9616    ;;
9617  freebsd*) # from 4.6 on
9618    shlibpath_overrides_runpath=yes
9619    hardcode_into_libs=yes
9620    ;;
9621  esac
9622  ;;
9623
9624gnu*)
9625  version_type=linux
9626  need_lib_prefix=no
9627  need_version=no
9628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9629  soname_spec='${libname}${release}${shared_ext}$major'
9630  shlibpath_var=LD_LIBRARY_PATH
9631  hardcode_into_libs=yes
9632  ;;
9633
9634hpux9* | hpux10* | hpux11*)
9635  # Give a soname corresponding to the major version so that dld.sl refuses to
9636  # link against other versions.
9637  version_type=sunos
9638  need_lib_prefix=no
9639  need_version=no
9640  case $host_cpu in
9641  ia64*)
9642    shrext_cmds='.so'
9643    hardcode_into_libs=yes
9644    dynamic_linker="$host_os dld.so"
9645    shlibpath_var=LD_LIBRARY_PATH
9646    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9647    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648    soname_spec='${libname}${release}${shared_ext}$major'
9649    if test "X$HPUX_IA64_MODE" = X32; then
9650      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9651    else
9652      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9653    fi
9654    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9655    ;;
9656   hppa*64*)
9657     shrext_cmds='.sl'
9658     hardcode_into_libs=yes
9659     dynamic_linker="$host_os dld.sl"
9660     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9661     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663     soname_spec='${libname}${release}${shared_ext}$major'
9664     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9665     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9666     ;;
9667   *)
9668    shrext_cmds='.sl'
9669    dynamic_linker="$host_os dld.sl"
9670    shlibpath_var=SHLIB_PATH
9671    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9672    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9673    soname_spec='${libname}${release}${shared_ext}$major'
9674    ;;
9675  esac
9676  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9677  postinstall_cmds='chmod 555 $lib'
9678  ;;
9679
9680interix3*)
9681  version_type=linux
9682  need_lib_prefix=no
9683  need_version=no
9684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9685  soname_spec='${libname}${release}${shared_ext}$major'
9686  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9687  shlibpath_var=LD_LIBRARY_PATH
9688  shlibpath_overrides_runpath=no
9689  hardcode_into_libs=yes
9690  ;;
9691
9692irix5* | irix6* | nonstopux*)
9693  case $host_os in
9694    nonstopux*) version_type=nonstopux ;;
9695    *)
9696        if test "$lt_cv_prog_gnu_ld" = yes; then
9697                version_type=linux
9698        else
9699                version_type=irix
9700        fi ;;
9701  esac
9702  need_lib_prefix=no
9703  need_version=no
9704  soname_spec='${libname}${release}${shared_ext}$major'
9705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9706  case $host_os in
9707  irix5* | nonstopux*)
9708    libsuff= shlibsuff=
9709    ;;
9710  *)
9711    case $LD in # libtool.m4 will add one of these switches to LD
9712    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9713      libsuff= shlibsuff= libmagic=32-bit;;
9714    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9715      libsuff=32 shlibsuff=N32 libmagic=N32;;
9716    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9717      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9718    *) libsuff= shlibsuff= libmagic=never-match;;
9719    esac
9720    ;;
9721  esac
9722  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9723  shlibpath_overrides_runpath=no
9724  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9725  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9726  hardcode_into_libs=yes
9727  ;;
9728
9729# No shared lib support for Linux oldld, aout, or coff.
9730linux*oldld* | linux*aout* | linux*coff*)
9731  dynamic_linker=no
9732  ;;
9733
9734# This must be Linux ELF.
9735linux*)
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9742  shlibpath_var=LD_LIBRARY_PATH
9743  shlibpath_overrides_runpath=no
9744  # This implies no fast_install, which is unacceptable.
9745  # Some rework will be needed to allow for fast_install
9746  # before this can be enabled.
9747  hardcode_into_libs=yes
9748
9749  # Append ld.so.conf contents to the search path
9750  if test -f /etc/ld.so.conf; then
9751    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' ' '`
9752    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9753  fi
9754
9755  # We used to test for /lib/ld.so.1 and disable shared libraries on
9756  # powerpc, because MkLinux only supported shared libraries with the
9757  # GNU dynamic linker.  Since this was broken with cross compilers,
9758  # most powerpc-linux boxes support dynamic linking these days and
9759  # people can always --disable-shared, the test was removed, and we
9760  # assume the GNU/Linux dynamic linker is in use.
9761  dynamic_linker='GNU/Linux ld.so'
9762  ;;
9763
9764knetbsd*-gnu)
9765  version_type=linux
9766  need_lib_prefix=no
9767  need_version=no
9768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9769  soname_spec='${libname}${release}${shared_ext}$major'
9770  shlibpath_var=LD_LIBRARY_PATH
9771  shlibpath_overrides_runpath=no
9772  hardcode_into_libs=yes
9773  dynamic_linker='GNU ld.so'
9774  ;;
9775
9776netbsd*)
9777  version_type=sunos
9778  need_lib_prefix=no
9779  need_version=no
9780  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9781    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9782    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9783    dynamic_linker='NetBSD (a.out) ld.so'
9784  else
9785    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9786    soname_spec='${libname}${release}${shared_ext}$major'
9787    dynamic_linker='NetBSD ld.elf_so'
9788  fi
9789  shlibpath_var=LD_LIBRARY_PATH
9790  shlibpath_overrides_runpath=yes
9791  hardcode_into_libs=yes
9792  ;;
9793
9794newsos6)
9795  version_type=linux
9796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797  shlibpath_var=LD_LIBRARY_PATH
9798  shlibpath_overrides_runpath=yes
9799  ;;
9800
9801nto-qnx*)
9802  version_type=linux
9803  need_lib_prefix=no
9804  need_version=no
9805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9806  soname_spec='${libname}${release}${shared_ext}$major'
9807  shlibpath_var=LD_LIBRARY_PATH
9808  shlibpath_overrides_runpath=yes
9809  ;;
9810
9811openbsd*)
9812  version_type=sunos
9813  sys_lib_dlsearch_path_spec="/usr/lib"
9814  need_lib_prefix=no
9815  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9816  case $host_os in
9817    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9818    *)                         need_version=no  ;;
9819  esac
9820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9821  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9822  shlibpath_var=LD_LIBRARY_PATH
9823  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9824    case $host_os in
9825      openbsd2.[89] | openbsd2.[89].*)
9826        shlibpath_overrides_runpath=no
9827        ;;
9828      *)
9829        shlibpath_overrides_runpath=yes
9830        ;;
9831      esac
9832  else
9833    shlibpath_overrides_runpath=yes
9834  fi
9835  ;;
9836
9837os2*)
9838  libname_spec='$name'
9839  shrext_cmds=".dll"
9840  need_lib_prefix=no
9841  library_names_spec='$libname${shared_ext} $libname.a'
9842  dynamic_linker='OS/2 ld.exe'
9843  shlibpath_var=LIBPATH
9844  ;;
9845
9846osf3* | osf4* | osf5*)
9847  version_type=osf
9848  need_lib_prefix=no
9849  need_version=no
9850  soname_spec='${libname}${release}${shared_ext}$major'
9851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852  shlibpath_var=LD_LIBRARY_PATH
9853  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9854  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9855  ;;
9856
9857solaris*)
9858  version_type=linux
9859  need_lib_prefix=no
9860  need_version=no
9861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9862  soname_spec='${libname}${release}${shared_ext}$major'
9863  shlibpath_var=LD_LIBRARY_PATH
9864  shlibpath_overrides_runpath=yes
9865  hardcode_into_libs=yes
9866  # ldd complains unless libraries are executable
9867  postinstall_cmds='chmod +x $lib'
9868  ;;
9869
9870sunos4*)
9871  version_type=sunos
9872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9873  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9874  shlibpath_var=LD_LIBRARY_PATH
9875  shlibpath_overrides_runpath=yes
9876  if test "$with_gnu_ld" = yes; then
9877    need_lib_prefix=no
9878  fi
9879  need_version=yes
9880  ;;
9881
9882sysv4 | sysv4.3*)
9883  version_type=linux
9884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885  soname_spec='${libname}${release}${shared_ext}$major'
9886  shlibpath_var=LD_LIBRARY_PATH
9887  case $host_vendor in
9888    sni)
9889      shlibpath_overrides_runpath=no
9890      need_lib_prefix=no
9891      export_dynamic_flag_spec='${wl}-Blargedynsym'
9892      runpath_var=LD_RUN_PATH
9893      ;;
9894    siemens)
9895      need_lib_prefix=no
9896      ;;
9897    motorola)
9898      need_lib_prefix=no
9899      need_version=no
9900      shlibpath_overrides_runpath=no
9901      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9902      ;;
9903  esac
9904  ;;
9905
9906sysv4*MP*)
9907  if test -d /usr/nec ;then
9908    version_type=linux
9909    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9910    soname_spec='$libname${shared_ext}.$major'
9911    shlibpath_var=LD_LIBRARY_PATH
9912  fi
9913  ;;
9914
9915sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9916  version_type=freebsd-elf
9917  need_lib_prefix=no
9918  need_version=no
9919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9920  soname_spec='${libname}${release}${shared_ext}$major'
9921  shlibpath_var=LD_LIBRARY_PATH
9922  hardcode_into_libs=yes
9923  if test "$with_gnu_ld" = yes; then
9924    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9925    shlibpath_overrides_runpath=no
9926  else
9927    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9928    shlibpath_overrides_runpath=yes
9929    case $host_os in
9930      sco3.2v5*)
9931        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9932        ;;
9933    esac
9934  fi
9935  sys_lib_dlsearch_path_spec='/usr/lib'
9936  ;;
9937
9938uts4*)
9939  version_type=linux
9940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941  soname_spec='${libname}${release}${shared_ext}$major'
9942  shlibpath_var=LD_LIBRARY_PATH
9943  ;;
9944
9945*)
9946  dynamic_linker=no
9947  ;;
9948esac
9949echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9950echo "${ECHO_T}$dynamic_linker" >&6
9951test "$dynamic_linker" = no && can_build_shared=no
9952
9953variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9954if test "$GCC" = yes; then
9955  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9956fi
9957
9958echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9959echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9960hardcode_action=
9961if test -n "$hardcode_libdir_flag_spec" || \
9962   test -n "$runpath_var" || \
9963   test "X$hardcode_automatic" = "Xyes" ; then
9964
9965  # We can hardcode non-existant directories.
9966  if test "$hardcode_direct" != no &&
9967     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9968     # have to relink, otherwise we might link with an installed library
9969     # when we should be linking with a yet-to-be-installed one
9970     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9971     test "$hardcode_minus_L" != no; then
9972    # Linking always hardcodes the temporary library directory.
9973    hardcode_action=relink
9974  else
9975    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9976    hardcode_action=immediate
9977  fi
9978else
9979  # We cannot hardcode anything, or else we can only hardcode existing
9980  # directories.
9981  hardcode_action=unsupported
9982fi
9983echo "$as_me:$LINENO: result: $hardcode_action" >&5
9984echo "${ECHO_T}$hardcode_action" >&6
9985
9986if test "$hardcode_action" = relink; then
9987  # Fast installation is not supported
9988  enable_fast_install=no
9989elif test "$shlibpath_overrides_runpath" = yes ||
9990     test "$enable_shared" = no; then
9991  # Fast installation is not necessary
9992  enable_fast_install=needless
9993fi
9994
9995striplib=
9996old_striplib=
9997echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9998echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9999if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10000  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10001  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10002  echo "$as_me:$LINENO: result: yes" >&5
10003echo "${ECHO_T}yes" >&6
10004else
10005# FIXME - insert some real tests, host_os isn't really good enough
10006  case $host_os in
10007   darwin*)
10008       if test -n "$STRIP" ; then
10009         striplib="$STRIP -x"
10010         echo "$as_me:$LINENO: result: yes" >&5
10011echo "${ECHO_T}yes" >&6
10012       else
10013  echo "$as_me:$LINENO: result: no" >&5
10014echo "${ECHO_T}no" >&6
10015fi
10016       ;;
10017   *)
10018  echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
10020    ;;
10021  esac
10022fi
10023
10024if test "x$enable_dlopen" != xyes; then
10025  enable_dlopen=unknown
10026  enable_dlopen_self=unknown
10027  enable_dlopen_self_static=unknown
10028else
10029  lt_cv_dlopen=no
10030  lt_cv_dlopen_libs=
10031
10032  case $host_os in
10033  beos*)
10034    lt_cv_dlopen="load_add_on"
10035    lt_cv_dlopen_libs=
10036    lt_cv_dlopen_self=yes
10037    ;;
10038
10039  mingw* | pw32*)
10040    lt_cv_dlopen="LoadLibrary"
10041    lt_cv_dlopen_libs=
10042   ;;
10043
10044  cygwin*)
10045    lt_cv_dlopen="dlopen"
10046    lt_cv_dlopen_libs=
10047   ;;
10048
10049  darwin*)
10050  # if libdl is installed we need to link against it
10051    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10052echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10053if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10054  echo $ECHO_N "(cached) $ECHO_C" >&6
10055else
10056  ac_check_lib_save_LIBS=$LIBS
10057LIBS="-ldl  $LIBS"
10058cat >conftest.$ac_ext <<_ACEOF
10059/* confdefs.h.  */
10060_ACEOF
10061cat confdefs.h >>conftest.$ac_ext
10062cat >>conftest.$ac_ext <<_ACEOF
10063/* end confdefs.h.  */
10064
10065/* Override any gcc2 internal prototype to avoid an error.  */
10066#ifdef __cplusplus
10067extern "C"
10068#endif
10069/* We use char because int might match the return type of a gcc2
10070   builtin and then its argument prototype would still apply.  */
10071char dlopen ();
10072int
10073main ()
10074{
10075dlopen ();
10076  ;
10077  return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext conftest$ac_exeext
10081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10082  (eval $ac_link) 2>conftest.er1
10083  ac_status=$?
10084  grep -v '^ *+' conftest.er1 >conftest.err
10085  rm -f conftest.er1
10086  cat conftest.err >&5
10087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088  (exit $ac_status); } &&
10089         { ac_try='test -z "$ac_c_werror_flag"
10090                         || test ! -s conftest.err'
10091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092  (eval $ac_try) 2>&5
10093  ac_status=$?
10094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095  (exit $ac_status); }; } &&
10096         { ac_try='test -s conftest$ac_exeext'
10097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098  (eval $ac_try) 2>&5
10099  ac_status=$?
10100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101  (exit $ac_status); }; }; then
10102  ac_cv_lib_dl_dlopen=yes
10103else
10104  echo "$as_me: failed program was:" >&5
10105sed 's/^/| /' conftest.$ac_ext >&5
10106
10107ac_cv_lib_dl_dlopen=no
10108fi
10109rm -f conftest.err conftest.$ac_objext \
10110      conftest$ac_exeext conftest.$ac_ext
10111LIBS=$ac_check_lib_save_LIBS
10112fi
10113echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10114echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10115if test $ac_cv_lib_dl_dlopen = yes; then
10116  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10117else
10118
10119    lt_cv_dlopen="dyld"
10120    lt_cv_dlopen_libs=
10121    lt_cv_dlopen_self=yes
10122
10123fi
10124
10125   ;;
10126
10127  *)
10128    echo "$as_me:$LINENO: checking for shl_load" >&5
10129echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10130if test "${ac_cv_func_shl_load+set}" = set; then
10131  echo $ECHO_N "(cached) $ECHO_C" >&6
10132else
10133  cat >conftest.$ac_ext <<_ACEOF
10134/* confdefs.h.  */
10135_ACEOF
10136cat confdefs.h >>conftest.$ac_ext
10137cat >>conftest.$ac_ext <<_ACEOF
10138/* end confdefs.h.  */
10139/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10140   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10141#define shl_load innocuous_shl_load
10142
10143/* System header to define __stub macros and hopefully few prototypes,
10144    which can conflict with char shl_load (); below.
10145    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10146    <limits.h> exists even on freestanding compilers.  */
10147
10148#ifdef __STDC__
10149# include <limits.h>
10150#else
10151# include <assert.h>
10152#endif
10153
10154#undef shl_load
10155
10156/* Override any gcc2 internal prototype to avoid an error.  */
10157#ifdef __cplusplus
10158extern "C"
10159{
10160#endif
10161/* We use char because int might match the return type of a gcc2
10162   builtin and then its argument prototype would still apply.  */
10163char shl_load ();
10164/* The GNU C library defines this for functions which it implements
10165    to always fail with ENOSYS.  Some functions are actually named
10166    something starting with __ and the normal name is an alias.  */
10167#if defined (__stub_shl_load) || defined (__stub___shl_load)
10168choke me
10169#else
10170char (*f) () = shl_load;
10171#endif
10172#ifdef __cplusplus
10173}
10174#endif
10175
10176int
10177main ()
10178{
10179return f != shl_load;
10180  ;
10181  return 0;
10182}
10183_ACEOF
10184rm -f conftest.$ac_objext conftest$ac_exeext
10185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186  (eval $ac_link) 2>conftest.er1
10187  ac_status=$?
10188  grep -v '^ *+' conftest.er1 >conftest.err
10189  rm -f conftest.er1
10190  cat conftest.err >&5
10191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192  (exit $ac_status); } &&
10193         { ac_try='test -z "$ac_c_werror_flag"
10194                         || test ! -s conftest.err'
10195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196  (eval $ac_try) 2>&5
10197  ac_status=$?
10198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199  (exit $ac_status); }; } &&
10200         { ac_try='test -s conftest$ac_exeext'
10201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202  (eval $ac_try) 2>&5
10203  ac_status=$?
10204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205  (exit $ac_status); }; }; then
10206  ac_cv_func_shl_load=yes
10207else
10208  echo "$as_me: failed program was:" >&5
10209sed 's/^/| /' conftest.$ac_ext >&5
10210
10211ac_cv_func_shl_load=no
10212fi
10213rm -f conftest.err conftest.$ac_objext \
10214      conftest$ac_exeext conftest.$ac_ext
10215fi
10216echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10217echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10218if test $ac_cv_func_shl_load = yes; then
10219  lt_cv_dlopen="shl_load"
10220else
10221  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10222echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10223if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10224  echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226  ac_check_lib_save_LIBS=$LIBS
10227LIBS="-ldld  $LIBS"
10228cat >conftest.$ac_ext <<_ACEOF
10229/* confdefs.h.  */
10230_ACEOF
10231cat confdefs.h >>conftest.$ac_ext
10232cat >>conftest.$ac_ext <<_ACEOF
10233/* end confdefs.h.  */
10234
10235/* Override any gcc2 internal prototype to avoid an error.  */
10236#ifdef __cplusplus
10237extern "C"
10238#endif
10239/* We use char because int might match the return type of a gcc2
10240   builtin and then its argument prototype would still apply.  */
10241char shl_load ();
10242int
10243main ()
10244{
10245shl_load ();
10246  ;
10247  return 0;
10248}
10249_ACEOF
10250rm -f conftest.$ac_objext conftest$ac_exeext
10251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252  (eval $ac_link) 2>conftest.er1
10253  ac_status=$?
10254  grep -v '^ *+' conftest.er1 >conftest.err
10255  rm -f conftest.er1
10256  cat conftest.err >&5
10257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258  (exit $ac_status); } &&
10259         { ac_try='test -z "$ac_c_werror_flag"
10260                         || test ! -s conftest.err'
10261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262  (eval $ac_try) 2>&5
10263  ac_status=$?
10264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265  (exit $ac_status); }; } &&
10266         { ac_try='test -s conftest$ac_exeext'
10267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268  (eval $ac_try) 2>&5
10269  ac_status=$?
10270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271  (exit $ac_status); }; }; then
10272  ac_cv_lib_dld_shl_load=yes
10273else
10274  echo "$as_me: failed program was:" >&5
10275sed 's/^/| /' conftest.$ac_ext >&5
10276
10277ac_cv_lib_dld_shl_load=no
10278fi
10279rm -f conftest.err conftest.$ac_objext \
10280      conftest$ac_exeext conftest.$ac_ext
10281LIBS=$ac_check_lib_save_LIBS
10282fi
10283echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10284echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10285if test $ac_cv_lib_dld_shl_load = yes; then
10286  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10287else
10288  echo "$as_me:$LINENO: checking for dlopen" >&5
10289echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10290if test "${ac_cv_func_dlopen+set}" = set; then
10291  echo $ECHO_N "(cached) $ECHO_C" >&6
10292else
10293  cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h.  */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h.  */
10299/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10300   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10301#define dlopen innocuous_dlopen
10302
10303/* System header to define __stub macros and hopefully few prototypes,
10304    which can conflict with char dlopen (); below.
10305    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10306    <limits.h> exists even on freestanding compilers.  */
10307
10308#ifdef __STDC__
10309# include <limits.h>
10310#else
10311# include <assert.h>
10312#endif
10313
10314#undef dlopen
10315
10316/* Override any gcc2 internal prototype to avoid an error.  */
10317#ifdef __cplusplus
10318extern "C"
10319{
10320#endif
10321/* We use char because int might match the return type of a gcc2
10322   builtin and then its argument prototype would still apply.  */
10323char dlopen ();
10324/* The GNU C library defines this for functions which it implements
10325    to always fail with ENOSYS.  Some functions are actually named
10326    something starting with __ and the normal name is an alias.  */
10327#if defined (__stub_dlopen) || defined (__stub___dlopen)
10328choke me
10329#else
10330char (*f) () = dlopen;
10331#endif
10332#ifdef __cplusplus
10333}
10334#endif
10335
10336int
10337main ()
10338{
10339return f != dlopen;
10340  ;
10341  return 0;
10342}
10343_ACEOF
10344rm -f conftest.$ac_objext conftest$ac_exeext
10345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346  (eval $ac_link) 2>conftest.er1
10347  ac_status=$?
10348  grep -v '^ *+' conftest.er1 >conftest.err
10349  rm -f conftest.er1
10350  cat conftest.err >&5
10351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352  (exit $ac_status); } &&
10353         { ac_try='test -z "$ac_c_werror_flag"
10354                         || test ! -s conftest.err'
10355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356  (eval $ac_try) 2>&5
10357  ac_status=$?
10358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359  (exit $ac_status); }; } &&
10360         { ac_try='test -s conftest$ac_exeext'
10361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362  (eval $ac_try) 2>&5
10363  ac_status=$?
10364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365  (exit $ac_status); }; }; then
10366  ac_cv_func_dlopen=yes
10367else
10368  echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
10371ac_cv_func_dlopen=no
10372fi
10373rm -f conftest.err conftest.$ac_objext \
10374      conftest$ac_exeext conftest.$ac_ext
10375fi
10376echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10377echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10378if test $ac_cv_func_dlopen = yes; then
10379  lt_cv_dlopen="dlopen"
10380else
10381  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10382echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10383if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10384  echo $ECHO_N "(cached) $ECHO_C" >&6
10385else
10386  ac_check_lib_save_LIBS=$LIBS
10387LIBS="-ldl  $LIBS"
10388cat >conftest.$ac_ext <<_ACEOF
10389/* confdefs.h.  */
10390_ACEOF
10391cat confdefs.h >>conftest.$ac_ext
10392cat >>conftest.$ac_ext <<_ACEOF
10393/* end confdefs.h.  */
10394
10395/* Override any gcc2 internal prototype to avoid an error.  */
10396#ifdef __cplusplus
10397extern "C"
10398#endif
10399/* We use char because int might match the return type of a gcc2
10400   builtin and then its argument prototype would still apply.  */
10401char dlopen ();
10402int
10403main ()
10404{
10405dlopen ();
10406  ;
10407  return 0;
10408}
10409_ACEOF
10410rm -f conftest.$ac_objext conftest$ac_exeext
10411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10412  (eval $ac_link) 2>conftest.er1
10413  ac_status=$?
10414  grep -v '^ *+' conftest.er1 >conftest.err
10415  rm -f conftest.er1
10416  cat conftest.err >&5
10417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418  (exit $ac_status); } &&
10419         { ac_try='test -z "$ac_c_werror_flag"
10420                         || test ! -s conftest.err'
10421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422  (eval $ac_try) 2>&5
10423  ac_status=$?
10424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425  (exit $ac_status); }; } &&
10426         { ac_try='test -s conftest$ac_exeext'
10427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428  (eval $ac_try) 2>&5
10429  ac_status=$?
10430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431  (exit $ac_status); }; }; then
10432  ac_cv_lib_dl_dlopen=yes
10433else
10434  echo "$as_me: failed program was:" >&5
10435sed 's/^/| /' conftest.$ac_ext >&5
10436
10437ac_cv_lib_dl_dlopen=no
10438fi
10439rm -f conftest.err conftest.$ac_objext \
10440      conftest$ac_exeext conftest.$ac_ext
10441LIBS=$ac_check_lib_save_LIBS
10442fi
10443echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10444echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10445if test $ac_cv_lib_dl_dlopen = yes; then
10446  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10447else
10448  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10449echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10450if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10451  echo $ECHO_N "(cached) $ECHO_C" >&6
10452else
10453  ac_check_lib_save_LIBS=$LIBS
10454LIBS="-lsvld  $LIBS"
10455cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h.  */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h.  */
10461
10462/* Override any gcc2 internal prototype to avoid an error.  */
10463#ifdef __cplusplus
10464extern "C"
10465#endif
10466/* We use char because int might match the return type of a gcc2
10467   builtin and then its argument prototype would still apply.  */
10468char dlopen ();
10469int
10470main ()
10471{
10472dlopen ();
10473  ;
10474  return 0;
10475}
10476_ACEOF
10477rm -f conftest.$ac_objext conftest$ac_exeext
10478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479  (eval $ac_link) 2>conftest.er1
10480  ac_status=$?
10481  grep -v '^ *+' conftest.er1 >conftest.err
10482  rm -f conftest.er1
10483  cat conftest.err >&5
10484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485  (exit $ac_status); } &&
10486         { ac_try='test -z "$ac_c_werror_flag"
10487                         || test ! -s conftest.err'
10488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489  (eval $ac_try) 2>&5
10490  ac_status=$?
10491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492  (exit $ac_status); }; } &&
10493         { ac_try='test -s conftest$ac_exeext'
10494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495  (eval $ac_try) 2>&5
10496  ac_status=$?
10497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498  (exit $ac_status); }; }; then
10499  ac_cv_lib_svld_dlopen=yes
10500else
10501  echo "$as_me: failed program was:" >&5
10502sed 's/^/| /' conftest.$ac_ext >&5
10503
10504ac_cv_lib_svld_dlopen=no
10505fi
10506rm -f conftest.err conftest.$ac_objext \
10507      conftest$ac_exeext conftest.$ac_ext
10508LIBS=$ac_check_lib_save_LIBS
10509fi
10510echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10511echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10512if test $ac_cv_lib_svld_dlopen = yes; then
10513  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10514else
10515  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10516echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10517if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10518  echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520  ac_check_lib_save_LIBS=$LIBS
10521LIBS="-ldld  $LIBS"
10522cat >conftest.$ac_ext <<_ACEOF
10523/* confdefs.h.  */
10524_ACEOF
10525cat confdefs.h >>conftest.$ac_ext
10526cat >>conftest.$ac_ext <<_ACEOF
10527/* end confdefs.h.  */
10528
10529/* Override any gcc2 internal prototype to avoid an error.  */
10530#ifdef __cplusplus
10531extern "C"
10532#endif
10533/* We use char because int might match the return type of a gcc2
10534   builtin and then its argument prototype would still apply.  */
10535char dld_link ();
10536int
10537main ()
10538{
10539dld_link ();
10540  ;
10541  return 0;
10542}
10543_ACEOF
10544rm -f conftest.$ac_objext conftest$ac_exeext
10545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546  (eval $ac_link) 2>conftest.er1
10547  ac_status=$?
10548  grep -v '^ *+' conftest.er1 >conftest.err
10549  rm -f conftest.er1
10550  cat conftest.err >&5
10551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552  (exit $ac_status); } &&
10553         { ac_try='test -z "$ac_c_werror_flag"
10554                         || test ! -s conftest.err'
10555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556  (eval $ac_try) 2>&5
10557  ac_status=$?
10558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559  (exit $ac_status); }; } &&
10560         { ac_try='test -s conftest$ac_exeext'
10561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562  (eval $ac_try) 2>&5
10563  ac_status=$?
10564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565  (exit $ac_status); }; }; then
10566  ac_cv_lib_dld_dld_link=yes
10567else
10568  echo "$as_me: failed program was:" >&5
10569sed 's/^/| /' conftest.$ac_ext >&5
10570
10571ac_cv_lib_dld_dld_link=no
10572fi
10573rm -f conftest.err conftest.$ac_objext \
10574      conftest$ac_exeext conftest.$ac_ext
10575LIBS=$ac_check_lib_save_LIBS
10576fi
10577echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10578echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10579if test $ac_cv_lib_dld_dld_link = yes; then
10580  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10581fi
10582
10583
10584fi
10585
10586
10587fi
10588
10589
10590fi
10591
10592
10593fi
10594
10595
10596fi
10597
10598    ;;
10599  esac
10600
10601  if test "x$lt_cv_dlopen" != xno; then
10602    enable_dlopen=yes
10603  else
10604    enable_dlopen=no
10605  fi
10606
10607  case $lt_cv_dlopen in
10608  dlopen)
10609    save_CPPFLAGS="$CPPFLAGS"
10610    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10611
10612    save_LDFLAGS="$LDFLAGS"
10613    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10614
10615    save_LIBS="$LIBS"
10616    LIBS="$lt_cv_dlopen_libs $LIBS"
10617
10618    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10619echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10620if test "${lt_cv_dlopen_self+set}" = set; then
10621  echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623          if test "$cross_compiling" = yes; then :
10624  lt_cv_dlopen_self=cross
10625else
10626  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10627  lt_status=$lt_dlunknown
10628  cat > conftest.$ac_ext <<EOF
10629#line 10629 "configure"
10630#include "confdefs.h"
10631
10632#if HAVE_DLFCN_H
10633#include <dlfcn.h>
10634#endif
10635
10636#include <stdio.h>
10637
10638#ifdef RTLD_GLOBAL
10639#  define LT_DLGLOBAL           RTLD_GLOBAL
10640#else
10641#  ifdef DL_GLOBAL
10642#    define LT_DLGLOBAL         DL_GLOBAL
10643#  else
10644#    define LT_DLGLOBAL         0
10645#  endif
10646#endif
10647
10648/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10649   find out it does not work in some platform. */
10650#ifndef LT_DLLAZY_OR_NOW
10651#  ifdef RTLD_LAZY
10652#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10653#  else
10654#    ifdef DL_LAZY
10655#      define LT_DLLAZY_OR_NOW          DL_LAZY
10656#    else
10657#      ifdef RTLD_NOW
10658#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10659#      else
10660#        ifdef DL_NOW
10661#          define LT_DLLAZY_OR_NOW      DL_NOW
10662#        else
10663#          define LT_DLLAZY_OR_NOW      0
10664#        endif
10665#      endif
10666#    endif
10667#  endif
10668#endif
10669
10670#ifdef __cplusplus
10671extern "C" void exit (int);
10672#endif
10673
10674void fnord() { int i=42;}
10675int main ()
10676{
10677  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10678  int status = $lt_dlunknown;
10679
10680  if (self)
10681    {
10682      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10683      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10684      /* dlclose (self); */
10685    }
10686  else
10687    puts (dlerror ());
10688
10689    exit (status);
10690}
10691EOF
10692  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10693  (eval $ac_link) 2>&5
10694  ac_status=$?
10695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10697    (./conftest; exit; ) >&5 2>/dev/null
10698    lt_status=$?
10699    case x$lt_status in
10700      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10701      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10702      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10703    esac
10704  else :
10705    # compilation failed
10706    lt_cv_dlopen_self=no
10707  fi
10708fi
10709rm -fr conftest*
10710
10711
10712fi
10713echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10714echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10715
10716    if test "x$lt_cv_dlopen_self" = xyes; then
10717      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10718      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10719echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10720if test "${lt_cv_dlopen_self_static+set}" = set; then
10721  echo $ECHO_N "(cached) $ECHO_C" >&6
10722else
10723          if test "$cross_compiling" = yes; then :
10724  lt_cv_dlopen_self_static=cross
10725else
10726  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10727  lt_status=$lt_dlunknown
10728  cat > conftest.$ac_ext <<EOF
10729#line 10729 "configure"
10730#include "confdefs.h"
10731
10732#if HAVE_DLFCN_H
10733#include <dlfcn.h>
10734#endif
10735
10736#include <stdio.h>
10737
10738#ifdef RTLD_GLOBAL
10739#  define LT_DLGLOBAL           RTLD_GLOBAL
10740#else
10741#  ifdef DL_GLOBAL
10742#    define LT_DLGLOBAL         DL_GLOBAL
10743#  else
10744#    define LT_DLGLOBAL         0
10745#  endif
10746#endif
10747
10748/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10749   find out it does not work in some platform. */
10750#ifndef LT_DLLAZY_OR_NOW
10751#  ifdef RTLD_LAZY
10752#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10753#  else
10754#    ifdef DL_LAZY
10755#      define LT_DLLAZY_OR_NOW          DL_LAZY
10756#    else
10757#      ifdef RTLD_NOW
10758#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10759#      else
10760#        ifdef DL_NOW
10761#          define LT_DLLAZY_OR_NOW      DL_NOW
10762#        else
10763#          define LT_DLLAZY_OR_NOW      0
10764#        endif
10765#      endif
10766#    endif
10767#  endif
10768#endif
10769
10770#ifdef __cplusplus
10771extern "C" void exit (int);
10772#endif
10773
10774void fnord() { int i=42;}
10775int main ()
10776{
10777  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10778  int status = $lt_dlunknown;
10779
10780  if (self)
10781    {
10782      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10783      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10784      /* dlclose (self); */
10785    }
10786  else
10787    puts (dlerror ());
10788
10789    exit (status);
10790}
10791EOF
10792  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5