source: ThirdParty/Lapack/trunk/configure @ 903

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

reran autotools with latest updates (for Intel icl compiler)

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