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

Last change on this file since 1133 was 1133, checked in by stefan, 12 years ago

temporarily committing release candidate to stable

  • Property svn:executable set to *
File size: 775.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 1.0.13.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='1.0.13'
433PACKAGE_STRING='ThirdPartyBlas 1.0.13'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS 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 MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyBlas 1.0.13 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyBlas 1.0.13:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-blas compile this project (Blas) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS. Set to mingw to use gcc/g++/ld with
1077                          -mno-cygwin. Set to msvc to use cl/link (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-blas-verbosity specify the debug verbosity level for project Blas
1096  --with-blas-checklevel specify the sanity check level for project Blas
1097  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1098  --with-pic              try to use only PIC/non-PIC objects [default=use
1099                          both]
1100  --with-tags[=TAGS]
1101                          include additional configurations [automatic]
1102  --with-blas             specify BLAS library (or BUILD for compilation)
1103
1104Some influential environment variables:
1105  CDEFS       Additional -D flags to be used when compiling C code.
1106  ADD_CFLAGS  Additional C compiler options
1107  DBG_CFLAGS  Debug C compiler options
1108  OPT_CFLAGS  Optimize C compiler options
1109  CC          C compiler command
1110  CFLAGS      C compiler flags
1111  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1112              nonstandard directory <lib dir>
1113  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114              headers in a nonstandard directory <include dir>
1115  MPICC       C MPI Compiler
1116  ADD_FFLAGS  Additional Fortran compiler options
1117  DBG_FFLAGS  Debug Fortran compiler options
1118  OPT_FFLAGS  Optimize Fortran compiler options
1119  F77         Fortran 77 compiler command
1120  FFLAGS      Fortran 77 compiler flags
1121  MPIF77      Fortran MPI Compiler
1122  CPP         C preprocessor
1123  CXX         C++ compiler command
1124  CXXFLAGS    C++ compiler flags
1125  CXXCPP      C++ preprocessor
1126
1127Use these variables to override the choices made by `configure' or to help
1128it to find libraries and programs with nonstandard names/locations.
1129
1130Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1131_ACEOF
1132fi
1133
1134if test "$ac_init_help" = "recursive"; then
1135  # If there are subdirs, report their specific --help.
1136  ac_popdir=`pwd`
1137  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1138    test -d $ac_dir || continue
1139    ac_builddir=.
1140
1141if test "$ac_dir" != .; then
1142  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1143  # A "../" for each directory in $ac_dir_suffix.
1144  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1145else
1146  ac_dir_suffix= ac_top_builddir=
1147fi
1148
1149case $srcdir in
1150  .)  # No --srcdir option.  We are building in place.
1151    ac_srcdir=.
1152    if test -z "$ac_top_builddir"; then
1153       ac_top_srcdir=.
1154    else
1155       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1156    fi ;;
1157  [\\/]* | ?:[\\/]* )  # Absolute path.
1158    ac_srcdir=$srcdir$ac_dir_suffix;
1159    ac_top_srcdir=$srcdir ;;
1160  *) # Relative path.
1161    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1162    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1163esac
1164
1165# Do not use `cd foo && pwd` to compute absolute paths, because
1166# the directories may not exist.
1167case `pwd` in
1168.) ac_abs_builddir="$ac_dir";;
1169*)
1170  case "$ac_dir" in
1171  .) ac_abs_builddir=`pwd`;;
1172  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1173  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1174  esac;;
1175esac
1176case $ac_abs_builddir in
1177.) ac_abs_top_builddir=${ac_top_builddir}.;;
1178*)
1179  case ${ac_top_builddir}. in
1180  .) ac_abs_top_builddir=$ac_abs_builddir;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1182  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_srcdir=$ac_srcdir;;
1187*)
1188  case $ac_srcdir in
1189  .) ac_abs_srcdir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1191  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_top_srcdir=$ac_top_srcdir;;
1196*)
1197  case $ac_top_srcdir in
1198  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1200  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1201  esac;;
1202esac
1203
1204    cd $ac_dir
1205    # Check for guested configure; otherwise get Cygnus style configure.
1206    if test -f $ac_srcdir/configure.gnu; then
1207      echo
1208      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1209    elif test -f $ac_srcdir/configure; then
1210      echo
1211      $SHELL $ac_srcdir/configure  --help=recursive
1212    elif test -f $ac_srcdir/configure.ac ||
1213           test -f $ac_srcdir/configure.in; then
1214      echo
1215      $ac_configure --help
1216    else
1217      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1218    fi
1219    cd $ac_popdir
1220  done
1221fi
1222
1223test -n "$ac_init_help" && exit 0
1224if $ac_init_version; then
1225  cat <<\_ACEOF
1226ThirdPartyBlas configure 1.0.13
1227generated by GNU Autoconf 2.59
1228
1229Copyright (C) 2003 Free Software Foundation, Inc.
1230This configure script is free software; the Free Software Foundation
1231gives unlimited permission to copy, distribute and modify it.
1232
1233
1234Copyright 2006 International Business Machines and others.
1235All Rights Reserved.
1236This file is part of the open source package Coin which is distributed
1237under the Common Public License.
1238_ACEOF
1239  exit 0
1240fi
1241exec 5>config.log
1242cat >&5 <<_ACEOF
1243This file contains any messages produced by compilers while
1244running configure, to aid debugging if configure makes a mistake.
1245
1246It was created by ThirdPartyBlas $as_me 1.0.13, which was
1247generated by GNU Autoconf 2.59.  Invocation command line was
1248
1249  $ $0 $@
1250
1251_ACEOF
1252{
1253cat <<_ASUNAME
1254## --------- ##
1255## Platform. ##
1256## --------- ##
1257
1258hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1259uname -m = `(uname -m) 2>/dev/null || echo unknown`
1260uname -r = `(uname -r) 2>/dev/null || echo unknown`
1261uname -s = `(uname -s) 2>/dev/null || echo unknown`
1262uname -v = `(uname -v) 2>/dev/null || echo unknown`
1263
1264/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1265/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1266
1267/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1268/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1269/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1270hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1271/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1272/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1273/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1274
1275_ASUNAME
1276
1277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1278for as_dir in $PATH
1279do
1280  IFS=$as_save_IFS
1281  test -z "$as_dir" && as_dir=.
1282  echo "PATH: $as_dir"
1283done
1284
1285} >&5
1286
1287cat >&5 <<_ACEOF
1288
1289
1290## ----------- ##
1291## Core tests. ##
1292## ----------- ##
1293
1294_ACEOF
1295
1296
1297# Keep a trace of the command line.
1298# Strip out --no-create and --no-recursion so they do not pile up.
1299# Strip out --silent because we don't want to record it for future runs.
1300# Also quote any args containing shell meta-characters.
1301# Make two passes to allow for proper duplicate-argument suppression.
1302ac_configure_args=
1303ac_configure_args0=
1304ac_configure_args1=
1305ac_sep=
1306ac_must_keep_next=false
1307for ac_pass in 1 2
1308do
1309  for ac_arg
1310  do
1311    case $ac_arg in
1312    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1313    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314    | -silent | --silent | --silen | --sile | --sil)
1315      continue ;;
1316    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1317      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1318    esac
1319    case $ac_pass in
1320    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1321    2)
1322      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1323      if test $ac_must_keep_next = true; then
1324        ac_must_keep_next=false # Got value, back to normal.
1325      else
1326        case $ac_arg in
1327          *=* | --config-cache | -C | -disable-* | --disable-* \
1328          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1329          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1330          | -with-* | --with-* | -without-* | --without-* | --x)
1331            case "$ac_configure_args0 " in
1332              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1333            esac
1334            ;;
1335          -* ) ac_must_keep_next=true ;;
1336        esac
1337      fi
1338      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1339      # Get rid of the leading space.
1340      ac_sep=" "
1341      ;;
1342    esac
1343  done
1344done
1345$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1346$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1347
1348# When interrupted or exit'd, cleanup temporary files, and complete
1349# config.log.  We remove comments because anyway the quotes in there
1350# would cause problems or look ugly.
1351# WARNING: Be sure not to use single quotes in there, as some shells,
1352# such as our DU 5.0 friend, will then `close' the trap.
1353trap 'exit_status=$?
1354  # Save into config.log some information that might help in debugging.
1355  {
1356    echo
1357
1358    cat <<\_ASBOX
1359## ---------------- ##
1360## Cache variables. ##
1361## ---------------- ##
1362_ASBOX
1363    echo
1364    # The following way of writing the cache mishandles newlines in values,
1365{
1366  (set) 2>&1 |
1367    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1368    *ac_space=\ *)
1369      sed -n \
1370        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1371          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1372      ;;
1373    *)
1374      sed -n \
1375        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1376      ;;
1377    esac;
1378}
1379    echo
1380
1381    cat <<\_ASBOX
1382## ----------------- ##
1383## Output variables. ##
1384## ----------------- ##
1385_ASBOX
1386    echo
1387    for ac_var in $ac_subst_vars
1388    do
1389      eval ac_val=$`echo $ac_var`
1390      echo "$ac_var='"'"'$ac_val'"'"'"
1391    done | sort
1392    echo
1393
1394    if test -n "$ac_subst_files"; then
1395      cat <<\_ASBOX
1396## ------------- ##
1397## Output files. ##
1398## ------------- ##
1399_ASBOX
1400      echo
1401      for ac_var in $ac_subst_files
1402      do
1403        eval ac_val=$`echo $ac_var`
1404        echo "$ac_var='"'"'$ac_val'"'"'"
1405      done | sort
1406      echo
1407    fi
1408
1409    if test -s confdefs.h; then
1410      cat <<\_ASBOX
1411## ----------- ##
1412## confdefs.h. ##
1413## ----------- ##
1414_ASBOX
1415      echo
1416      sed "/^$/d" confdefs.h | sort
1417      echo
1418    fi
1419    test "$ac_signal" != 0 &&
1420      echo "$as_me: caught signal $ac_signal"
1421    echo "$as_me: exit $exit_status"
1422  } >&5
1423  rm -f core *.core &&
1424  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1425    exit $exit_status
1426     ' 0
1427for ac_signal in 1 2 13 15; do
1428  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1429done
1430ac_signal=0
1431
1432# confdefs.h avoids OS command line length limits that DEFS can exceed.
1433rm -rf conftest* confdefs.h
1434# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1435echo >confdefs.h
1436
1437# Predefined preprocessor variables.
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_NAME "$PACKAGE_NAME"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_VERSION "$PACKAGE_VERSION"
1451_ACEOF
1452
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_STRING "$PACKAGE_STRING"
1456_ACEOF
1457
1458
1459cat >>confdefs.h <<_ACEOF
1460#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1461_ACEOF
1462
1463
1464# Let the site file select an alternate cache file if it wants to.
1465# Prefer explicitly selected file to automatically selected ones.
1466if test -z "$CONFIG_SITE"; then
1467  if test "x$prefix" != xNONE; then
1468    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1469  else
1470    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1471  fi
1472fi
1473for ac_site_file in $CONFIG_SITE; do
1474  if test -r "$ac_site_file"; then
1475    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1476echo "$as_me: loading site script $ac_site_file" >&6;}
1477    sed 's/^/| /' "$ac_site_file" >&5
1478    . "$ac_site_file"
1479  fi
1480done
1481
1482if test -r "$cache_file"; then
1483  # Some versions of bash will fail to source /dev/null (special
1484  # files actually), so we avoid doing that.
1485  if test -f "$cache_file"; then
1486    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1487echo "$as_me: loading cache $cache_file" >&6;}
1488    case $cache_file in
1489      [\\/]* | ?:[\\/]* ) . $cache_file;;
1490      *)                      . ./$cache_file;;
1491    esac
1492  fi
1493else
1494  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1495echo "$as_me: creating cache $cache_file" >&6;}
1496  >$cache_file
1497fi
1498
1499# Check that the precious variables saved in the cache have kept the same
1500# value.
1501ac_cache_corrupted=false
1502for ac_var in `(set) 2>&1 |
1503               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1504  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1505  eval ac_new_set=\$ac_env_${ac_var}_set
1506  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1507  eval ac_new_val="\$ac_env_${ac_var}_value"
1508  case $ac_old_set,$ac_new_set in
1509    set,)
1510      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1511echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1512      ac_cache_corrupted=: ;;
1513    ,set)
1514      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1515echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1516      ac_cache_corrupted=: ;;
1517    ,);;
1518    *)
1519      if test "x$ac_old_val" != "x$ac_new_val"; then
1520        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1521echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1522        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1523echo "$as_me:   former value:  $ac_old_val" >&2;}
1524        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1525echo "$as_me:   current value: $ac_new_val" >&2;}
1526        ac_cache_corrupted=:
1527      fi;;
1528  esac
1529  # Pass precious variables to config.status.
1530  if test "$ac_new_set" = set; then
1531    case $ac_new_val in
1532    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1533      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1534    *) ac_arg=$ac_var=$ac_new_val ;;
1535    esac
1536    case " $ac_configure_args " in
1537      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1538      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1539    esac
1540  fi
1541done
1542if $ac_cache_corrupted; then
1543  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1544echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1545  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1546echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1547   { (exit 1); exit 1; }; }
1548fi
1549
1550ac_ext=c
1551ac_cpp='$CPP $CPPFLAGS'
1552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1554ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585# List one file in the package so that the configure script can test
1586# whether the package is actually there
1587
1588
1589# Where should everything be installed by default?  Here, we want it
1590# to be installed directly in 'bin', 'lib', 'include' subdirectories
1591# of the directory where configure is run.  The default would be
1592# /usr/local.
1593
1594
1595# Initialize the ADDLIBS variable
1596ADDLIBS="-lm $LIBS"
1597
1598
1599# Initialize the FADDLIBS variable (which is to be used with a fortran
1600# compiler and will not include FLIBS)
1601FADDLIBS="$LIBS"
1602
1603
1604# A useful makefile conditional that is always false
1605
1606
1607if false; then
1608  ALWAYS_FALSE_TRUE=
1609  ALWAYS_FALSE_FALSE='#'
1610else
1611  ALWAYS_FALSE_TRUE='#'
1612  ALWAYS_FALSE_FALSE=
1613fi
1614
1615
1616# We set the following variable so that we know later in AC_COIN_FINALIZE
1617# that we are in a project main directory
1618coin_projectdir=yes
1619
1620
1621#############################################################################
1622#                         Standard build tool stuff                         #
1623#############################################################################
1624
1625# Get the system type
1626ac_aux_dir=
1627for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1628  if test -f $ac_dir/install-sh; then
1629    ac_aux_dir=$ac_dir
1630    ac_install_sh="$ac_aux_dir/install-sh -c"
1631    break
1632  elif test -f $ac_dir/install.sh; then
1633    ac_aux_dir=$ac_dir
1634    ac_install_sh="$ac_aux_dir/install.sh -c"
1635    break
1636  elif test -f $ac_dir/shtool; then
1637    ac_aux_dir=$ac_dir
1638    ac_install_sh="$ac_aux_dir/shtool install -c"
1639    break
1640  fi
1641done
1642if test -z "$ac_aux_dir"; then
1643  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1644echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1645   { (exit 1); exit 1; }; }
1646fi
1647ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1648ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1649ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1650
1651# Make sure we can run config.sub.
1652$ac_config_sub sun4 >/dev/null 2>&1 ||
1653  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1654echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1655   { (exit 1); exit 1; }; }
1656
1657echo "$as_me:$LINENO: checking build system type" >&5
1658echo $ECHO_N "checking build system type... $ECHO_C" >&6
1659if test "${ac_cv_build+set}" = set; then
1660  echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662  ac_cv_build_alias=$build_alias
1663test -z "$ac_cv_build_alias" &&
1664  ac_cv_build_alias=`$ac_config_guess`
1665test -z "$ac_cv_build_alias" &&
1666  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1667echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1668   { (exit 1); exit 1; }; }
1669ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1670  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1671echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1672   { (exit 1); exit 1; }; }
1673
1674fi
1675echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1676echo "${ECHO_T}$ac_cv_build" >&6
1677build=$ac_cv_build
1678build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681
1682
1683
1684#turn off warnings and pedantic mode since they could make trouble on some platforms,
1685#and we couldn't fix them anyway
1686coin_skip_warn_fflags=yes
1687
1688# Check if user wants to produce debugging code
1689
1690echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1691echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1692
1693# Check whether --enable-debug or --disable-debug was given.
1694if test "${enable_debug+set}" = set; then
1695  enableval="$enable_debug"
1696  case "${enableval}" in
1697   yes) coin_debug_compile=true
1698        if test "${enable_shared+set}" = set; then :; else
1699          enable_shared=no
1700        fi
1701        ;;
1702   no)  coin_debug_compile=false
1703        ;;
1704   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1705echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1706   { (exit 1); exit 1; }; }
1707        ;;
1708esac
1709else
1710  coin_debug_compile=false
1711fi;
1712
1713# Check whether --enable-debug-blas or --disable-debug-blas was given.
1714if test "${enable_debug_blas+set}" = set; then
1715  enableval="$enable_debug_blas"
1716  case "${enableval}" in
1717    yes) coin_debug_compile=true
1718         enable_shared=no
1719         ;;
1720    no)  coin_debug_compile=false
1721         ;;
1722    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1723echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1724   { (exit 1); exit 1; }; }
1725         ;;
1726 esac
1727else
1728  :
1729fi;
1730
1731 # m4_ifvaln([Blas],
1732
1733if test $coin_debug_compile = true; then
1734  echo "$as_me:$LINENO: result: yes" >&5
1735echo "${ECHO_T}yes" >&6
1736else
1737  echo "$as_me:$LINENO: result: no" >&5
1738echo "${ECHO_T}no" >&6
1739fi
1740
1741
1742# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1743if test "${with_blas_verbosity+set}" = set; then
1744  withval="$with_blas_verbosity"
1745  if test "$withval" = yes; then
1746                withval=1
1747              fi
1748              coin_blas_verbosity=$withval
1749else
1750  coin_blas_verbosity=0
1751fi;
1752
1753cat >>confdefs.h <<_ACEOF
1754#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1755_ACEOF
1756
1757
1758
1759# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1760if test "${with_blas_checklevel+set}" = set; then
1761  withval="$with_blas_checklevel"
1762  if test "$withval" = yes; then
1763                withval=1
1764              fi
1765              coin_blas_checklevel=$withval
1766else
1767  coin_blas_checklevel=0
1768fi;
1769
1770cat >>confdefs.h <<_ACEOF
1771#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1772_ACEOF
1773
1774
1775# We use the following variable to have a string with the upper case
1776# version of the project name
1777COIN_PRJCT=BLAS
1778
1779
1780 # m4_ifvaln([Blas],
1781
1782
1783
1784# Get the name of the Fortran compiler and appropriate compiler options
1785case $build in
1786  *-mingw*)
1787    if test "${LD+set}" = set; then :; else
1788      LD=link
1789    fi
1790    ;;
1791 esac
1792 case $enable_doscompile in
1793   msvc)
1794     if test "x${LD+set}" = xset; then :; else
1795       LD=link
1796     fi
1797     ;;
1798 esac
1799
1800
1801 # Check whether --enable-doscompile or --disable-doscompile was given.
1802if test "${enable_doscompile+set}" = set; then
1803  enableval="$enable_doscompile"
1804  if test "$enable_doscompile" != no; then
1805     case $build in
1806       *-cygwin* | *-mingw*) ;;
1807       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1808echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1809   { (exit 1); exit 1; }; } ;;
1810     esac
1811   fi
1812else
1813  enable_doscompile=no
1814fi;
1815 case "$enable_doscompile" in
1816   mingw)
1817     case $build in
1818       *-mingw*) enable_doscompile=no ;;
1819     esac
1820     ;;
1821   msvc|no) ;;
1822   yes) enable_doscompile=mingw ;;
1823   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1824                    Try configure --help=recursive." >&5
1825echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1826                    Try configure --help=recursive." >&2;}
1827   { (exit 1); exit 1; }; }
1828      ;;
1829  esac
1830  if test "$enable_doscompile" != no ; then
1831    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1832echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1833  fi
1834
1835
1836
1837
1838ac_ext=c
1839ac_cpp='$CPP $CPPFLAGS'
1840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1842ac_compiler_gnu=$ac_cv_c_compiler_gnu
1843
1844
1845# For consistency, we set the C compiler to the same value of the C++
1846# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1847if test x"$CXX" != x; then
1848  case "$CXX" in
1849    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1850      if test x"$CC" = x; then
1851        CC="$CXX"
1852        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1853echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1854      fi
1855      ;;
1856  esac
1857fi
1858
1859
1860
1861
1862
1863
1864coin_has_cc=yes
1865
1866save_cflags="$CFLAGS"
1867
1868# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1869# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1870# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1871# compiler. In this case, put cc after gcc.
1872
1873case $build in
1874  *-cygwin* | *-mingw*)
1875             if test "$enable_doscompile" = msvc ; then
1876               comps="icl cl"
1877             else
1878               comps="gcc cl"
1879             fi ;;
1880  *-*-solaris*)
1881             # Extract the first word of "cc", so it can be a program name with args.
1882set dummy cc; ac_word=$2
1883echo "$as_me:$LINENO: checking for $ac_word" >&5
1884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1886  echo $ECHO_N "(cached) $ECHO_C" >&6
1887else
1888  if test -n "$sol_cc_compiler"; then
1889  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1890else
1891  ac_prog_rejected=no
1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893for as_dir in $PATH
1894do
1895  IFS=$as_save_IFS
1896  test -z "$as_dir" && as_dir=.
1897  for ac_exec_ext in '' $ac_executable_extensions; do
1898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1900       ac_prog_rejected=yes
1901       continue
1902     fi
1903    ac_cv_prog_sol_cc_compiler="cc"
1904    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905    break 2
1906  fi
1907done
1908done
1909
1910if test $ac_prog_rejected = yes; then
1911  # We found a bogon in the path, so make sure we never use it.
1912  set dummy $ac_cv_prog_sol_cc_compiler
1913  shift
1914  if test $# != 0; then
1915    # We chose a different compiler from the bogus one.
1916    # However, it has the same basename, so the bogon will be chosen
1917    # first if we set sol_cc_compiler to just the basename; use the full file name.
1918    shift
1919    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1920  fi
1921fi
1922fi
1923fi
1924sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1925if test -n "$sol_cc_compiler"; then
1926  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1927echo "${ECHO_T}$sol_cc_compiler" >&6
1928else
1929  echo "$as_me:$LINENO: result: no" >&5
1930echo "${ECHO_T}no" >&6
1931fi
1932
1933             if test "$sol_cc_compiler" = "cc" ; then
1934               comps="cc xlc gcc pgcc icc"
1935             else
1936               comps="xlc gcc pgcc icc cc"
1937             fi
1938             ;;
1939  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1940  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1941esac
1942
1943# We delete the cached value, since the test might not have been
1944# performed with our choice of compilers earlier
1945$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1946# AC_MSG_NOTICE([C compiler candidates: $comps])
1947ac_ext=c
1948ac_cpp='$CPP $CPPFLAGS'
1949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952if test -n "$ac_tool_prefix"; then
1953  for ac_prog in $comps
1954  do
1955    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1956set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1957echo "$as_me:$LINENO: checking for $ac_word" >&5
1958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959if test "${ac_cv_prog_CC+set}" = set; then
1960  echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962  if test -n "$CC"; then
1963  ac_cv_prog_CC="$CC" # Let the user override the test.
1964else
1965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966for as_dir in $PATH
1967do
1968  IFS=$as_save_IFS
1969  test -z "$as_dir" && as_dir=.
1970  for ac_exec_ext in '' $ac_executable_extensions; do
1971  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1972    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974    break 2
1975  fi
1976done
1977done
1978
1979fi
1980fi
1981CC=$ac_cv_prog_CC
1982if test -n "$CC"; then
1983  echo "$as_me:$LINENO: result: $CC" >&5
1984echo "${ECHO_T}$CC" >&6
1985else
1986  echo "$as_me:$LINENO: result: no" >&5
1987echo "${ECHO_T}no" >&6
1988fi
1989
1990    test -n "$CC" && break
1991  done
1992fi
1993if test -z "$CC"; then
1994  ac_ct_CC=$CC
1995  for ac_prog in $comps
1996do
1997  # Extract the first word of "$ac_prog", so it can be a program name with args.
1998set dummy $ac_prog; ac_word=$2
1999echo "$as_me:$LINENO: checking for $ac_word" >&5
2000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002  echo $ECHO_N "(cached) $ECHO_C" >&6
2003else
2004  if test -n "$ac_ct_CC"; then
2005  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006else
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010  IFS=$as_save_IFS
2011  test -z "$as_dir" && as_dir=.
2012  for ac_exec_ext in '' $ac_executable_extensions; do
2013  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014    ac_cv_prog_ac_ct_CC="$ac_prog"
2015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016    break 2
2017  fi
2018done
2019done
2020
2021fi
2022fi
2023ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024if test -n "$ac_ct_CC"; then
2025  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026echo "${ECHO_T}$ac_ct_CC" >&6
2027else
2028  echo "$as_me:$LINENO: result: no" >&5
2029echo "${ECHO_T}no" >&6
2030fi
2031
2032  test -n "$ac_ct_CC" && break
2033done
2034
2035  CC=$ac_ct_CC
2036fi
2037
2038
2039test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2040See \`config.log' for more details." >&5
2041echo "$as_me: error: no acceptable C compiler found in \$PATH
2042See \`config.log' for more details." >&2;}
2043   { (exit 1); exit 1; }; }
2044
2045# Provide some information about the compiler.
2046echo "$as_me:$LINENO:" \
2047     "checking for C compiler version" >&5
2048ac_compiler=`set X $ac_compile; echo $2`
2049{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2050  (eval $ac_compiler --version </dev/null >&5) 2>&5
2051  ac_status=$?
2052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053  (exit $ac_status); }
2054{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2055  (eval $ac_compiler -v </dev/null >&5) 2>&5
2056  ac_status=$?
2057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058  (exit $ac_status); }
2059{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2060  (eval $ac_compiler -V </dev/null >&5) 2>&5
2061  ac_status=$?
2062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063  (exit $ac_status); }
2064
2065cat >conftest.$ac_ext <<_ACEOF
2066/* confdefs.h.  */
2067_ACEOF
2068cat confdefs.h >>conftest.$ac_ext
2069cat >>conftest.$ac_ext <<_ACEOF
2070/* end confdefs.h.  */
2071
2072int
2073main ()
2074{
2075
2076  ;
2077  return 0;
2078}
2079_ACEOF
2080ac_clean_files_save=$ac_clean_files
2081ac_clean_files="$ac_clean_files a.out a.exe b.out"
2082# Try to create an executable without -o first, disregard a.out.
2083# It will help us diagnose broken compilers, and finding out an intuition
2084# of exeext.
2085echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2086echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2087ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2088if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2089  (eval $ac_link_default) 2>&5
2090  ac_status=$?
2091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092  (exit $ac_status); }; then
2093  # Find the output, starting from the most likely.  This scheme is
2094# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2095# resort.
2096
2097# Be careful to initialize this variable, since it used to be cached.
2098# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2099ac_cv_exeext=
2100# b.out is created by i960 compilers.
2101for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2102do
2103  test -f "$ac_file" || continue
2104  case $ac_file in
2105    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2106        ;;
2107    conftest.$ac_ext )
2108        # This is the source file.
2109        ;;
2110    [ab].out )
2111        # We found the default executable, but exeext='' is most
2112        # certainly right.
2113        break;;
2114    *.* )
2115        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2116        # FIXME: I believe we export ac_cv_exeext for Libtool,
2117        # but it would be cool to find out if it's true.  Does anybody
2118        # maintain Libtool? --akim.
2119        export ac_cv_exeext
2120        break;;
2121    * )
2122        break;;
2123  esac
2124done
2125else
2126  echo "$as_me: failed program was:" >&5
2127sed 's/^/| /' conftest.$ac_ext >&5
2128
2129{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2130See \`config.log' for more details." >&5
2131echo "$as_me: error: C compiler cannot create executables
2132See \`config.log' for more details." >&2;}
2133   { (exit 77); exit 77; }; }
2134fi
2135
2136ac_exeext=$ac_cv_exeext
2137echo "$as_me:$LINENO: result: $ac_file" >&5
2138echo "${ECHO_T}$ac_file" >&6
2139
2140# Check the compiler produces executables we can run.  If not, either
2141# the compiler is broken, or we cross compile.
2142echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2143echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2144# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2145# If not cross compiling, check that we can run a simple program.
2146if test "$cross_compiling" != yes; then
2147  if { ac_try='./$ac_file'
2148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149  (eval $ac_try) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }; }; then
2153    cross_compiling=no
2154  else
2155    if test "$cross_compiling" = maybe; then
2156        cross_compiling=yes
2157    else
2158        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2159If you meant to cross compile, use \`--host'.
2160See \`config.log' for more details." >&5
2161echo "$as_me: error: cannot run C compiled programs.
2162If you meant to cross compile, use \`--host'.
2163See \`config.log' for more details." >&2;}
2164   { (exit 1); exit 1; }; }
2165    fi
2166  fi
2167fi
2168echo "$as_me:$LINENO: result: yes" >&5
2169echo "${ECHO_T}yes" >&6
2170
2171rm -f a.out a.exe conftest$ac_cv_exeext b.out
2172ac_clean_files=$ac_clean_files_save
2173# Check the compiler produces executables we can run.  If not, either
2174# the compiler is broken, or we cross compile.
2175echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2176echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2177echo "$as_me:$LINENO: result: $cross_compiling" >&5
2178echo "${ECHO_T}$cross_compiling" >&6
2179
2180echo "$as_me:$LINENO: checking for suffix of executables" >&5
2181echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2183  (eval $ac_link) 2>&5
2184  ac_status=$?
2185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186  (exit $ac_status); }; then
2187  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2188# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2189# work properly (i.e., refer to `conftest.exe'), while it won't with
2190# `rm'.
2191for ac_file in conftest.exe conftest conftest.*; do
2192  test -f "$ac_file" || continue
2193  case $ac_file in
2194    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2195    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196          export ac_cv_exeext
2197          break;;
2198    * ) break;;
2199  esac
2200done
2201else
2202  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2203See \`config.log' for more details." >&5
2204echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2205See \`config.log' for more details." >&2;}
2206   { (exit 1); exit 1; }; }
2207fi
2208
2209rm -f conftest$ac_cv_exeext
2210echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2211echo "${ECHO_T}$ac_cv_exeext" >&6
2212
2213rm -f conftest.$ac_ext
2214EXEEXT=$ac_cv_exeext
2215ac_exeext=$EXEEXT
2216echo "$as_me:$LINENO: checking for suffix of object files" >&5
2217echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2218if test "${ac_cv_objext+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236rm -f conftest.o conftest.obj
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238  (eval $ac_compile) 2>&5
2239  ac_status=$?
2240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241  (exit $ac_status); }; then
2242  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2243  case $ac_file in
2244    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2245    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2246       break;;
2247  esac
2248done
2249else
2250  echo "$as_me: failed program was:" >&5
2251sed 's/^/| /' conftest.$ac_ext >&5
2252
2253{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: cannot compute suffix of object files: cannot compile
2256See \`config.log' for more details." >&2;}
2257   { (exit 1); exit 1; }; }
2258fi
2259
2260rm -f conftest.$ac_cv_objext conftest.$ac_ext
2261fi
2262echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2263echo "${ECHO_T}$ac_cv_objext" >&6
2264OBJEXT=$ac_cv_objext
2265ac_objext=$OBJEXT
2266echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2267echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2268if test "${ac_cv_c_compiler_gnu+set}" = set; then
2269  echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271  cat >conftest.$ac_ext <<_ACEOF
2272/* confdefs.h.  */
2273_ACEOF
2274cat confdefs.h >>conftest.$ac_ext
2275cat >>conftest.$ac_ext <<_ACEOF
2276/* end confdefs.h.  */
2277
2278int
2279main ()
2280{
2281#ifndef __GNUC__
2282       choke me
2283#endif
2284
2285  ;
2286  return 0;
2287}
2288_ACEOF
2289rm -f conftest.$ac_objext
2290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291  (eval $ac_compile) 2>conftest.er1
2292  ac_status=$?
2293  grep -v '^ *+' conftest.er1 >conftest.err
2294  rm -f conftest.er1
2295  cat conftest.err >&5
2296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297  (exit $ac_status); } &&
2298         { ac_try='test -z "$ac_c_werror_flag"
2299                         || test ! -s conftest.err'
2300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301  (eval $ac_try) 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); }; } &&
2305         { ac_try='test -s conftest.$ac_objext'
2306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307  (eval $ac_try) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }; }; then
2311  ac_compiler_gnu=yes
2312else
2313  echo "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
2315
2316ac_compiler_gnu=no
2317fi
2318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2319ac_cv_c_compiler_gnu=$ac_compiler_gnu
2320
2321fi
2322echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2323echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2324GCC=`test $ac_compiler_gnu = yes && echo yes`
2325ac_test_CFLAGS=${CFLAGS+set}
2326ac_save_CFLAGS=$CFLAGS
2327CFLAGS="-g"
2328echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2329echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2330if test "${ac_cv_prog_cc_g+set}" = set; then
2331  echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333  cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h.  */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h.  */
2339
2340int
2341main ()
2342{
2343
2344  ;
2345  return 0;
2346}
2347_ACEOF
2348rm -f conftest.$ac_objext
2349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350  (eval $ac_compile) 2>conftest.er1
2351  ac_status=$?
2352  grep -v '^ *+' conftest.er1 >conftest.err
2353  rm -f conftest.er1
2354  cat conftest.err >&5
2355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356  (exit $ac_status); } &&
2357         { ac_try='test -z "$ac_c_werror_flag"
2358                         || test ! -s conftest.err'
2359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360  (eval $ac_try) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; } &&
2364         { ac_try='test -s conftest.$ac_objext'
2365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366  (eval $ac_try) 2>&5
2367  ac_status=$?
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); }; }; then
2370  ac_cv_prog_cc_g=yes
2371else
2372  echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375ac_cv_prog_cc_g=no
2376fi
2377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2378fi
2379echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2380echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2381if test "$ac_test_CFLAGS" = set; then
2382  CFLAGS=$ac_save_CFLAGS
2383elif test $ac_cv_prog_cc_g = yes; then
2384  if test "$GCC" = yes; then
2385    CFLAGS="-g -O2"
2386  else
2387    CFLAGS="-g"
2388  fi
2389else
2390  if test "$GCC" = yes; then
2391    CFLAGS="-O2"
2392  else
2393    CFLAGS=
2394  fi
2395fi
2396echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2397echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2398if test "${ac_cv_prog_cc_stdc+set}" = set; then
2399  echo $ECHO_N "(cached) $ECHO_C" >&6
2400else
2401  ac_cv_prog_cc_stdc=no
2402ac_save_CC=$CC
2403cat >conftest.$ac_ext <<_ACEOF
2404/* confdefs.h.  */
2405_ACEOF
2406cat confdefs.h >>conftest.$ac_ext
2407cat >>conftest.$ac_ext <<_ACEOF
2408/* end confdefs.h.  */
2409#include <stdarg.h>
2410#include <stdio.h>
2411#include <sys/types.h>
2412#include <sys/stat.h>
2413/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2414struct buf { int x; };
2415FILE * (*rcsopen) (struct buf *, struct stat *, int);
2416static char *e (p, i)
2417     char **p;
2418     int i;
2419{
2420  return p[i];
2421}
2422static char *f (char * (*g) (char **, int), char **p, ...)
2423{
2424  char *s;
2425  va_list v;
2426  va_start (v,p);
2427  s = g (p, va_arg (v,int));
2428  va_end (v);
2429  return s;
2430}
2431
2432/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2433   function prototypes and stuff, but not '\xHH' hex character constants.
2434   These don't provoke an error unfortunately, instead are silently treated
2435   as 'x'.  The following induces an error, until -std1 is added to get
2436   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2437   array size at least.  It's necessary to write '\x00'==0 to get something
2438   that's true only with -std1.  */
2439int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2440
2441int test (int i, double x);
2442struct s1 {int (*f) (int a);};
2443struct s2 {int (*f) (double a);};
2444int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2445int argc;
2446char **argv;
2447int
2448main ()
2449{
2450return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2451  ;
2452  return 0;
2453}
2454_ACEOF
2455# Don't try gcc -ansi; that turns off useful extensions and
2456# breaks some systems' header files.
2457# AIX                   -qlanglvl=ansi
2458# Ultrix and OSF/1      -std1
2459# HP-UX 10.20 and later -Ae
2460# HP-UX older versions  -Aa -D_HPUX_SOURCE
2461# SVR4                  -Xc -D__EXTENSIONS__
2462for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2463do
2464  CC="$ac_save_CC $ac_arg"
2465  rm -f conftest.$ac_objext
2466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467  (eval $ac_compile) 2>conftest.er1
2468  ac_status=$?
2469  grep -v '^ *+' conftest.er1 >conftest.err
2470  rm -f conftest.er1
2471  cat conftest.err >&5
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); } &&
2474         { ac_try='test -z "$ac_c_werror_flag"
2475                         || test ! -s conftest.err'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; } &&
2481         { ac_try='test -s conftest.$ac_objext'
2482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483  (eval $ac_try) 2>&5
2484  ac_status=$?
2485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486  (exit $ac_status); }; }; then
2487  ac_cv_prog_cc_stdc=$ac_arg
2488break
2489else
2490  echo "$as_me: failed program was:" >&5
2491sed 's/^/| /' conftest.$ac_ext >&5
2492
2493fi
2494rm -f conftest.err conftest.$ac_objext
2495done
2496rm -f conftest.$ac_ext conftest.$ac_objext
2497CC=$ac_save_CC
2498
2499fi
2500
2501case "x$ac_cv_prog_cc_stdc" in
2502  x|xno)
2503    echo "$as_me:$LINENO: result: none needed" >&5
2504echo "${ECHO_T}none needed" >&6 ;;
2505  *)
2506    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2507echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2508    CC="$CC $ac_cv_prog_cc_stdc" ;;
2509esac
2510
2511# Some people use a C++ compiler to compile C.  Since we use `exit',
2512# in C++ we need to declare it.  In case someone uses the same compiler
2513# for both compiling C and C++ we need to have the C++ compiler decide
2514# the declaration of exit, since it's the most demanding environment.
2515cat >conftest.$ac_ext <<_ACEOF
2516#ifndef __cplusplus
2517  choke me
2518#endif
2519_ACEOF
2520rm -f conftest.$ac_objext
2521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522  (eval $ac_compile) 2>conftest.er1
2523  ac_status=$?
2524  grep -v '^ *+' conftest.er1 >conftest.err
2525  rm -f conftest.er1
2526  cat conftest.err >&5
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); } &&
2529         { ac_try='test -z "$ac_c_werror_flag"
2530                         || test ! -s conftest.err'
2531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532  (eval $ac_try) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; } &&
2536         { ac_try='test -s conftest.$ac_objext'
2537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538  (eval $ac_try) 2>&5
2539  ac_status=$?
2540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541  (exit $ac_status); }; }; then
2542  for ac_declaration in \
2543   '' \
2544   'extern "C" void std::exit (int) throw (); using std::exit;' \
2545   'extern "C" void std::exit (int); using std::exit;' \
2546   'extern "C" void exit (int) throw ();' \
2547   'extern "C" void exit (int);' \
2548   'void exit (int);'
2549do
2550  cat >conftest.$ac_ext <<_ACEOF
2551/* confdefs.h.  */
2552_ACEOF
2553cat confdefs.h >>conftest.$ac_ext
2554cat >>conftest.$ac_ext <<_ACEOF
2555/* end confdefs.h.  */
2556$ac_declaration
2557#include <stdlib.h>
2558int
2559main ()
2560{
2561exit (42);
2562  ;
2563  return 0;
2564}
2565_ACEOF
2566rm -f conftest.$ac_objext
2567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568  (eval $ac_compile) 2>conftest.er1
2569  ac_status=$?
2570  grep -v '^ *+' conftest.er1 >conftest.err
2571  rm -f conftest.er1
2572  cat conftest.err >&5
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); } &&
2575         { ac_try='test -z "$ac_c_werror_flag"
2576                         || test ! -s conftest.err'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; } &&
2582         { ac_try='test -s conftest.$ac_objext'
2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; }; then
2588  :
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593continue
2594fi
2595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596  cat >conftest.$ac_ext <<_ACEOF
2597/* confdefs.h.  */
2598_ACEOF
2599cat confdefs.h >>conftest.$ac_ext
2600cat >>conftest.$ac_ext <<_ACEOF
2601/* end confdefs.h.  */
2602$ac_declaration
2603int
2604main ()
2605{
2606exit (42);
2607  ;
2608  return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613  (eval $ac_compile) 2>conftest.er1
2614  ac_status=$?
2615  grep -v '^ *+' conftest.er1 >conftest.err
2616  rm -f conftest.er1
2617  cat conftest.err >&5
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } &&
2620         { ac_try='test -z "$ac_c_werror_flag"
2621                         || test ! -s conftest.err'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; } &&
2627         { ac_try='test -s conftest.$ac_objext'
2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629  (eval $ac_try) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; }; then
2633  break
2634else
2635  echo "$as_me: failed program was:" >&5
2636sed 's/^/| /' conftest.$ac_ext >&5
2637
2638fi
2639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2640done
2641rm -f conftest*
2642if test -n "$ac_declaration"; then
2643  echo '#ifdef __cplusplus' >>confdefs.h
2644  echo $ac_declaration      >>confdefs.h
2645  echo '#endif'             >>confdefs.h
2646fi
2647
2648else
2649  echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652fi
2653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2654ac_ext=c
2655ac_cpp='$CPP $CPPFLAGS'
2656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660if test -z "$CC" ; then
2661  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2662echo "$as_me: error: Failed to find a C compiler!" >&2;}
2663   { (exit 1); exit 1; }; }
2664fi
2665# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2666case "$CC" in
2667  cl* | */cl* | CL* | */CL* )
2668    if test "$ac_cv_prog_cc_g" = yes ; then
2669      ac_cv_prog_cc_g=no
2670      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2671echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2672    fi ;;
2673esac
2674CFLAGS="$save_cflags"
2675
2676# Check if a project specific CFLAGS variable has been set
2677if test x$COIN_PRJCT != x; then
2678  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2679  if test x$coin_tmp = xset; then
2680    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2681  fi
2682fi
2683
2684if test x"$CFLAGS" = x; then
2685
2686  coin_add_cflags=
2687  coin_opt_cflags=
2688  coin_dbg_cflags=
2689  coin_warn_cflags=
2690
2691  if test "$GCC" = "yes"; then
2692    case "$CC" in
2693      icc* | */icc*)
2694        ;;
2695      *)
2696        coin_opt_cflags="-O3 -fomit-frame-pointer"
2697        coin_add_cflags="-pipe"
2698        coin_dbg_cflags="-g"
2699        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2700        case $build in
2701          *-darwin*)
2702            ;;
2703          *)
2704            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2705            ;;
2706        esac
2707        case $enable_doscompile in
2708          mingw)
2709            CFLAGS="-mno-cygwin"
2710            cat >conftest.$ac_ext <<_ACEOF
2711/* confdefs.h.  */
2712_ACEOF
2713cat confdefs.h >>conftest.$ac_ext
2714cat >>conftest.$ac_ext <<_ACEOF
2715/* end confdefs.h.  */
2716
2717int
2718main ()
2719{
2720int i=0; i++;
2721  ;
2722  return 0;
2723}
2724_ACEOF
2725rm -f conftest.$ac_objext conftest$ac_exeext
2726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2727  (eval $ac_link) 2>conftest.er1
2728  ac_status=$?
2729  grep -v '^ *+' conftest.er1 >conftest.err
2730  rm -f conftest.er1
2731  cat conftest.err >&5
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); } &&
2734         { ac_try='test -z "$ac_c_werror_flag"
2735                         || test ! -s conftest.err'
2736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737  (eval $ac_try) 2>&5
2738  ac_status=$?
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); }; } &&
2741         { ac_try='test -s conftest$ac_exeext'
2742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743  (eval $ac_try) 2>&5
2744  ac_status=$?
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); }; }; then
2747  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2748else
2749  echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752fi
2753rm -f conftest.err conftest.$ac_objext \
2754      conftest$ac_exeext conftest.$ac_ext
2755            CFLAGS=
2756          ;;
2757        esac
2758    esac
2759  fi
2760  if test -z "$coin_opt_cflags"; then
2761    case $build in
2762      *-cygwin* | *-mingw*)
2763        case "$CC" in
2764          cl* | */cl* | CL* | */CL*)
2765            coin_opt_cflags='-MT -O2'
2766            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2767            coin_dbg_cflags='-MTd'
2768            ;;
2769          icl* | */icl* | ICL* | */ICL*)
2770            coin_opt_cflags='-MT -Ox'
2771            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2772            coin_dbg_cflags='-MTd -debug'
2773            ;;
2774        esac
2775        ;;
2776      *-linux-*)
2777        case "$CC" in
2778          icc* | */icc*)
2779            coin_opt_cflags="-O3 -ip -mp1"
2780            coin_add_cflags=""
2781            coin_dbg_cflags="-g"
2782            # Check if -i_dynamic is necessary (for new glibc library)
2783            CFLAGS=
2784            cat >conftest.$ac_ext <<_ACEOF
2785/* confdefs.h.  */
2786_ACEOF
2787cat confdefs.h >>conftest.$ac_ext
2788cat >>conftest.$ac_ext <<_ACEOF
2789/* end confdefs.h.  */
2790
2791int
2792main ()
2793{
2794int i=0; i++;
2795  ;
2796  return 0;
2797}
2798_ACEOF
2799rm -f conftest.$ac_objext conftest$ac_exeext
2800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2801  (eval $ac_link) 2>conftest.er1
2802  ac_status=$?
2803  grep -v '^ *+' conftest.er1 >conftest.err
2804  rm -f conftest.er1
2805  cat conftest.err >&5
2806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807  (exit $ac_status); } &&
2808         { ac_try='test -z "$ac_c_werror_flag"
2809                         || test ! -s conftest.err'
2810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811  (eval $ac_try) 2>&5
2812  ac_status=$?
2813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814  (exit $ac_status); }; } &&
2815         { ac_try='test -s conftest$ac_exeext'
2816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817  (eval $ac_try) 2>&5
2818  ac_status=$?
2819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820  (exit $ac_status); }; }; then
2821  :
2822else
2823  echo "$as_me: failed program was:" >&5
2824sed 's/^/| /' conftest.$ac_ext >&5
2825
2826coin_add_cflags="-i_dynamic $coin_add_cflags"
2827fi
2828rm -f conftest.err conftest.$ac_objext \
2829      conftest$ac_exeext conftest.$ac_ext
2830            ;;
2831          pgcc* | */pgcc*)
2832            coin_opt_cflags="-fast"
2833            coin_add_cflags="-Kieee -pc 64"
2834            coin_dbg_cflags="-g"
2835            ;;
2836        esac
2837        ;;
2838      *-ibm-*)
2839        case "$CC" in
2840          xlc* | */xlc* | mpxlc* | */mpxlc*)
2841            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2842            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2843            coin_dbg_cflags="-g"
2844          ;;
2845        esac
2846        ;;
2847      *-hp-*)
2848        coin_opt_cflags="-O"
2849        coin_add_cflags="-Ae"
2850        coin_dbg_cflags="-g"
2851        ;;
2852      *-*-solaris*)
2853        coin_opt_cflags="-xO4"
2854        coin_dbg_cflags="-g"
2855        ;;
2856      *-sgi-*)
2857        coin_opt_cflags="-O -OPT:Olimit=0"
2858        coin_dbg_cflags="-g"
2859        ;;
2860    esac
2861  fi
2862
2863  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2864    coin_dbg_cflags="-g"
2865  fi
2866
2867  if test -z "$coin_opt_cflags"; then
2868    # Try if -O option works if nothing else is set
2869    CFLAGS="-O"
2870    cat >conftest.$ac_ext <<_ACEOF
2871/* confdefs.h.  */
2872_ACEOF
2873cat confdefs.h >>conftest.$ac_ext
2874cat >>conftest.$ac_ext <<_ACEOF
2875/* end confdefs.h.  */
2876
2877int
2878main ()
2879{
2880int i=0; i++;
2881  ;
2882  return 0;
2883}
2884_ACEOF
2885rm -f conftest.$ac_objext conftest$ac_exeext
2886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2887  (eval $ac_link) 2>conftest.er1
2888  ac_status=$?
2889  grep -v '^ *+' conftest.er1 >conftest.err
2890  rm -f conftest.er1
2891  cat conftest.err >&5
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); } &&
2894         { ac_try='test -z "$ac_c_werror_flag"
2895                         || test ! -s conftest.err'
2896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897  (eval $ac_try) 2>&5
2898  ac_status=$?
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); }; } &&
2901         { ac_try='test -s conftest$ac_exeext'
2902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903  (eval $ac_try) 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }; }; then
2907  coin_opt_cflags="-O"
2908else
2909  echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912fi
2913rm -f conftest.err conftest.$ac_objext \
2914      conftest$ac_exeext conftest.$ac_ext
2915  fi
2916
2917  # if PM doesn't want the warning messages, take them out
2918  if test x"$coin_skip_warn_cflags" = xyes; then
2919    coin_warn_cflags=
2920  fi
2921
2922  if test x${DBG_CFLAGS+set} != xset; then
2923    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2924  fi
2925  if test x${OPT_CFLAGS+set} != xset; then
2926    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2927  fi
2928
2929  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2930  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2931
2932  if test "$coin_debug_compile" = "true"; then
2933    CFLAGS="$DBG_CFLAGS"
2934  else
2935    CFLAGS="$OPT_CFLAGS"
2936  fi
2937else
2938  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2939  if test x${DBG_CFLAGS+set} != xset; then
2940    DBG_CFLAGS="$CFLAGS"
2941  fi
2942  if test x${OPT_CFLAGS+set} != xset; then
2943    OPT_CFLAGS="$CFLAGS"
2944  fi
2945fi
2946
2947# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2948
2949case "$CFLAGS" in
2950  *-mno-cygwin*)
2951    if test x${CPPFLAGS+set} != xset ; then
2952      CPPFLAGS="-mno-cygwin"
2953    else
2954      case "$CPPFLAGS" in
2955        *-mno-cygwin*)
2956          ;;
2957        *)
2958          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2959          ;;
2960      esac
2961    fi ;;
2962esac
2963
2964# Try if CFLAGS works
2965save_CFLAGS="$CFLAGS"
2966cat >conftest.$ac_ext <<_ACEOF
2967/* confdefs.h.  */
2968_ACEOF
2969cat confdefs.h >>conftest.$ac_ext
2970cat >>conftest.$ac_ext <<_ACEOF
2971/* end confdefs.h.  */
2972
2973int
2974main ()
2975{
2976int i=0; i++;
2977  ;
2978  return 0;
2979}
2980_ACEOF
2981rm -f conftest.$ac_objext conftest$ac_exeext
2982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2983  (eval $ac_link) 2>conftest.er1
2984  ac_status=$?
2985  grep -v '^ *+' conftest.er1 >conftest.err
2986  rm -f conftest.er1
2987  cat conftest.err >&5
2988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); } &&
2990         { ac_try='test -z "$ac_c_werror_flag"
2991                         || test ! -s conftest.err'
2992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993  (eval $ac_try) 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }; } &&
2997         { ac_try='test -s conftest$ac_exeext'
2998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999  (eval $ac_try) 2>&5
3000  ac_status=$?
3001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002  (exit $ac_status); }; }; then
3003  :
3004else
3005  echo "$as_me: failed program was:" >&5
3006sed 's/^/| /' conftest.$ac_ext >&5
3007
3008CFLAGS=
3009fi
3010rm -f conftest.err conftest.$ac_objext \
3011      conftest$ac_exeext conftest.$ac_ext
3012if test -z "$CFLAGS"; then
3013  { 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
3014echo "$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;}
3015  CFLAGS='-O'
3016  cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h.  */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h.  */
3022
3023int
3024main ()
3025{
3026int i=0; i++;
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext conftest$ac_exeext
3032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3033  (eval $ac_link) 2>conftest.er1
3034  ac_status=$?
3035  grep -v '^ *+' conftest.er1 >conftest.err
3036  rm -f conftest.er1
3037  cat conftest.err >&5
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); } &&
3040         { ac_try='test -z "$ac_c_werror_flag"
3041                         || test ! -s conftest.err'
3042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043  (eval $ac_try) 2>&5
3044  ac_status=$?
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); }; } &&
3047         { ac_try='test -s conftest$ac_exeext'
3048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049  (eval $ac_try) 2>&5
3050  ac_status=$?
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); }; }; then
3053  :
3054else
3055  echo "$as_me: failed program was:" >&5
3056sed 's/^/| /' conftest.$ac_ext >&5
3057
3058CFLAGS=
3059fi
3060rm -f conftest.err conftest.$ac_objext \
3061      conftest$ac_exeext conftest.$ac_ext
3062  if test -z "$CFLAGS"; then
3063    { 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
3064echo "$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;}
3065  fi
3066fi
3067
3068{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3069echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3070
3071
3072if test x"$MPICC" = x; then :; else
3073  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3074echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3075  CC="$MPICC"
3076fi
3077
3078# Correct ADDLIBS initialization if we are using the MS compiler
3079case "$CC" in
3080  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3081    ADDLIBS=
3082    case $build in
3083  *-mingw*)
3084    if test "${LD+set}" = set; then :; else
3085      LD=link
3086    fi
3087    ;;
3088 esac
3089 case $enable_doscompile in
3090   msvc)
3091     if test "x${LD+set}" = xset; then :; else
3092       LD=link
3093     fi
3094     ;;
3095 esac
3096
3097    ;;
3098esac
3099
3100ac_ext=c
3101ac_cpp='$CPP $CPPFLAGS'
3102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105
3106
3107case $build in
3108  *-cygwin* | *-mingw*)
3109     if test "$enable_doscompile" = msvc ; then
3110       coin_f77_comps="ifort fl32 compile_f2c"
3111     else
3112       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3113     fi ;;
3114  *-*-solaris*)
3115     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3116  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3117 esac
3118
3119
3120
3121
3122
3123
3124ac_ext=f
3125ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3126ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3128
3129
3130
3131
3132
3133
3134coin_has_f77=yes
3135
3136save_fflags="$FFLAGS"
3137
3138# We delete the cached value, since the test might not have been
3139# performed with our choice of compilers earlier
3140$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3141
3142# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3143# coin_f77_comps to see if there's a program that matches one of the names.
3144# If there's no such program, F77 = unavailable. If we match the name,
3145# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3146# compiler.
3147# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3148
3149
3150{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3151echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3152for ac_prog in $coin_f77_comps
3153do
3154  # Extract the first word of "$ac_prog", so it can be a program name with args.
3155set dummy $ac_prog; ac_word=$2
3156echo "$as_me:$LINENO: checking for $ac_word" >&5
3157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3158if test "${ac_cv_prog_F77+set}" = set; then
3159  echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161  if test -n "$F77"; then
3162  ac_cv_prog_F77="$F77" # Let the user override the test.
3163else
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167  IFS=$as_save_IFS
3168  test -z "$as_dir" && as_dir=.
3169  for ac_exec_ext in '' $ac_executable_extensions; do
3170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171    ac_cv_prog_F77="$ac_prog"
3172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173    break 2
3174  fi
3175done
3176done
3177
3178fi
3179fi
3180F77=$ac_cv_prog_F77
3181if test -n "$F77"; then
3182  echo "$as_me:$LINENO: result: $F77" >&5
3183echo "${ECHO_T}$F77" >&6
3184else
3185  echo "$as_me:$LINENO: result: no" >&5
3186echo "${ECHO_T}no" >&6
3187fi
3188
3189  test -n "$F77" && break
3190done
3191test -n "$F77" || F77="unavailable"
3192
3193
3194if test "$F77" != "unavailable" ; then
3195  ac_ext=f
3196ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3197ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3199if test -n "$ac_tool_prefix"; then
3200  for ac_prog in $coin_f77_comps
3201  do
3202    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3203set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3204echo "$as_me:$LINENO: checking for $ac_word" >&5
3205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206if test "${ac_cv_prog_F77+set}" = set; then
3207  echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209  if test -n "$F77"; then
3210  ac_cv_prog_F77="$F77" # Let the user override the test.
3211else
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215  IFS=$as_save_IFS
3216  test -z "$as_dir" && as_dir=.
3217  for ac_exec_ext in '' $ac_executable_extensions; do
3218  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221    break 2
3222  fi
3223done
3224done
3225
3226fi
3227fi
3228F77=$ac_cv_prog_F77
3229if test -n "$F77"; then
3230  echo "$as_me:$LINENO: result: $F77" >&5
3231echo "${ECHO_T}$F77" >&6
3232else
3233  echo "$as_me:$LINENO: result: no" >&5
3234echo "${ECHO_T}no" >&6
3235fi
3236
3237    test -n "$F77" && break
3238  done
3239fi
3240if test -z "$F77"; then
3241  ac_ct_F77=$F77
3242  for ac_prog in $coin_f77_comps
3243do
3244  # Extract the first word of "$ac_prog", so it can be a program name with args.
3245set dummy $ac_prog; ac_word=$2
3246echo "$as_me:$LINENO: checking for $ac_word" >&5
3247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3249  echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
3251  if test -n "$ac_ct_F77"; then
3252  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3253else
3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255for as_dir in $PATH
3256do
3257  IFS=$as_save_IFS
3258  test -z "$as_dir" && as_dir=.
3259  for ac_exec_ext in '' $ac_executable_extensions; do
3260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261    ac_cv_prog_ac_ct_F77="$ac_prog"
3262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263    break 2
3264  fi
3265done
3266done
3267
3268fi
3269fi
3270ac_ct_F77=$ac_cv_prog_ac_ct_F77
3271if test -n "$ac_ct_F77"; then
3272  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3273echo "${ECHO_T}$ac_ct_F77" >&6
3274else
3275  echo "$as_me:$LINENO: result: no" >&5
3276echo "${ECHO_T}no" >&6
3277fi
3278
3279  test -n "$ac_ct_F77" && break
3280done
3281
3282  F77=$ac_ct_F77
3283fi
3284
3285
3286# Provide some information about the compiler.
3287echo "$as_me:3287:" \
3288     "checking for Fortran 77 compiler version" >&5
3289ac_compiler=`set X $ac_compile; echo $2`
3290{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3291  (eval $ac_compiler --version </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); }
3300{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3301  (eval $ac_compiler -V </dev/null >&5) 2>&5
3302  ac_status=$?
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); }
3305rm -f a.out
3306
3307# If we don't use `.F' as extension, the preprocessor is not run on the
3308# input file.  (Note that this only needs to work for GNU compilers.)
3309ac_save_ext=$ac_ext
3310ac_ext=F
3311echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3312echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3313if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3314  echo $ECHO_N "(cached) $ECHO_C" >&6
3315else
3316  cat >conftest.$ac_ext <<_ACEOF
3317      program main
3318#ifndef __GNUC__
3319       choke me
3320#endif
3321
3322      end
3323_ACEOF
3324rm -f conftest.$ac_objext
3325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326  (eval $ac_compile) 2>conftest.er1
3327  ac_status=$?
3328  grep -v '^ *+' conftest.er1 >conftest.err
3329  rm -f conftest.er1
3330  cat conftest.err >&5
3331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); } &&
3333         { ac_try='test -z "$ac_f77_werror_flag"
3334                         || test ! -s conftest.err'
3335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336  (eval $ac_try) 2>&5
3337  ac_status=$?
3338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339  (exit $ac_status); }; } &&
3340         { ac_try='test -s conftest.$ac_objext'
3341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342  (eval $ac_try) 2>&5
3343  ac_status=$?
3344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345  (exit $ac_status); }; }; then
3346  ac_compiler_gnu=yes
3347else
3348  echo "$as_me: failed program was:" >&5
3349sed 's/^/| /' conftest.$ac_ext >&5
3350
3351ac_compiler_gnu=no
3352fi
3353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3354ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3355
3356fi
3357echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3358echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3359ac_ext=$ac_save_ext
3360ac_test_FFLAGS=${FFLAGS+set}
3361ac_save_FFLAGS=$FFLAGS
3362FFLAGS=
3363echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3364echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3365if test "${ac_cv_prog_f77_g+set}" = set; then
3366  echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368  FFLAGS=-g
3369cat >conftest.$ac_ext <<_ACEOF
3370      program main
3371
3372      end
3373_ACEOF
3374rm -f conftest.$ac_objext
3375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3376  (eval $ac_compile) 2>conftest.er1
3377  ac_status=$?
3378  grep -v '^ *+' conftest.er1 >conftest.err
3379  rm -f conftest.er1
3380  cat conftest.err >&5
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); } &&
3383         { ac_try='test -z "$ac_f77_werror_flag"
3384                         || test ! -s conftest.err'
3385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386  (eval $ac_try) 2>&5
3387  ac_status=$?
3388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); }; } &&
3390         { ac_try='test -s conftest.$ac_objext'
3391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392  (eval $ac_try) 2>&5
3393  ac_status=$?
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); }; }; then
3396  ac_cv_prog_f77_g=yes
3397else
3398  echo "$as_me: failed program was:" >&5
3399sed 's/^/| /' conftest.$ac_ext >&5
3400
3401ac_cv_prog_f77_g=no
3402fi
3403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3404
3405fi
3406echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3407echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3408if test "$ac_test_FFLAGS" = set; then
3409  FFLAGS=$ac_save_FFLAGS
3410elif test $ac_cv_prog_f77_g = yes; then
3411  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3412    FFLAGS="-g -O2"
3413  else
3414    FFLAGS="-g"
3415  fi
3416else
3417  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3418    FFLAGS="-O2"
3419  else
3420    FFLAGS=
3421  fi
3422fi
3423
3424G77=`test $ac_compiler_gnu = yes && echo yes`
3425ac_ext=f
3426ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3427ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3429
3430else
3431  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3432echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3433fi
3434
3435FFLAGS="$save_fflags"
3436
3437# Check if a project specific FFLAGS variable has been set
3438if test x$COIN_PRJCT != x; then
3439  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3440  if test x$coin_tmp = xset; then
3441    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3442  fi
3443fi
3444
3445if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3446
3447  coin_add_fflags=
3448  coin_opt_fflags=
3449  coin_dbg_fflags=
3450  coin_warn_fflags=
3451
3452  if test "$G77" = "yes"; then
3453    coin_opt_fflags="-O3 -fomit-frame-pointer"
3454    coin_add_fflags="-pipe"
3455    coin_dbg_fflags="-g"
3456    case $enable_doscompile in
3457      mingw)
3458        FFLAGS="-mno-cygwin"
3459        cat >conftest.$ac_ext <<_ACEOF
3460      program main
3461      write(*,*) 'Hello world'
3462      end
3463_ACEOF
3464rm -f conftest.$ac_objext conftest$ac_exeext
3465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3466  (eval $ac_link) 2>conftest.er1
3467  ac_status=$?
3468  grep -v '^ *+' conftest.er1 >conftest.err
3469  rm -f conftest.er1
3470  cat conftest.err >&5
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); } &&
3473         { ac_try='test -z "$ac_f77_werror_flag"
3474                         || test ! -s conftest.err'
3475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476  (eval $ac_try) 2>&5
3477  ac_status=$?
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); }; } &&
3480         { ac_try='test -s conftest$ac_exeext'
3481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482  (eval $ac_try) 2>&5
3483  ac_status=$?
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); }; }; then
3486  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3487else
3488  echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491fi
3492rm -f conftest.err conftest.$ac_objext \
3493      conftest$ac_exeext conftest.$ac_ext
3494        FFLAGS=
3495      ;;
3496    esac
3497  else
3498    case $build in
3499      *-cygwin* | *-mingw*)
3500        case $F77 in
3501          ifort* | */ifort* | IFORT* | */IFORT* )
3502            coin_opt_fflags='-MT -O3'
3503            coin_add_fflags='-fpp -nologo'
3504            coin_dbg_fflags='-MTd -debug'
3505          ;;
3506          compile_f2c*)
3507            coin_opt_fflags='-MT -O2'
3508            coin_add_fflags='-nologo -wd4996'
3509            coin_dbg_fflags='-MTd'
3510          ;;
3511        esac
3512        ;;
3513      *-linux-*)
3514        case $F77 in
3515          ifc* | */ifc* | ifort* | */ifort*)
3516            coin_opt_fflags="-O3 -ip"
3517            coin_add_fflags="-cm -w90 -w95"
3518            coin_dbg_fflags="-g -CA -CB -CS"
3519            # Check if -i_dynamic is necessary (for new glibc library)
3520            FFLAGS=
3521            cat >conftest.$ac_ext <<_ACEOF
3522      program main
3523      write(*,*) 'Hello world'
3524      end
3525_ACEOF
3526rm -f conftest.$ac_objext conftest$ac_exeext
3527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3528  (eval $ac_link) 2>conftest.er1
3529  ac_status=$?
3530  grep -v '^ *+' conftest.er1 >conftest.err
3531  rm -f conftest.er1
3532  cat conftest.err >&5
3533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534  (exit $ac_status); } &&
3535         { ac_try='test -z "$ac_f77_werror_flag"
3536                         || test ! -s conftest.err'
3537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538  (eval $ac_try) 2>&5
3539  ac_status=$?
3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); }; } &&
3542         { ac_try='test -s conftest$ac_exeext'
3543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544  (eval $ac_try) 2>&5
3545  ac_status=$?
3546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); }; }; then
3548  :
3549else
3550  echo "$as_me: failed program was:" >&5
3551sed 's/^/| /' conftest.$ac_ext >&5
3552
3553coin_add_fflags="-i_dynamic $coin_add_fflags"
3554fi
3555rm -f conftest.err conftest.$ac_objext \
3556      conftest$ac_exeext conftest.$ac_ext
3557            ;;
3558          pgf77* | */pgf77* | pgf90* | */pgf90*)
3559            coin_opt_fflags="-fast"
3560            coin_add_fflags="-Kieee -pc 64"
3561            coin_dbg_fflags="-g"
3562          ;;
3563        esac
3564        ;;
3565      *-ibm-*)
3566        case "$F77" in
3567          xlf* | */xlf* | mpxlf* | */mpxlf* )
3568            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3569            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3570            coin_dbg_fflags="-g -C"
3571            ;;
3572        esac
3573        ;;
3574      *-hp-*)
3575        coin_opt_fflags="+O3"
3576        coin_add_fflags="+U77"
3577        coin_dbg_fflags="-C -g"
3578        ;;
3579      *-*-solaris*)
3580        coin_opt_fflags="-O4"
3581        coin_dbg_fflags="-g"
3582        ;;
3583      *-sgi-*)
3584        coin_opt_fflags="-O5 -OPT:Olimit=0"
3585        coin_dbg_fflags="-g"
3586        ;;
3587    esac
3588  fi
3589
3590  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3591    coin_dbg_fflags="-g"
3592  fi
3593
3594  if test -z "$coin_opt_fflags"; then
3595    # Try if -O option works if nothing else is set
3596    FFLAGS=-O
3597    cat >conftest.$ac_ext <<_ACEOF
3598      program main
3599      integer i
3600      end
3601_ACEOF
3602rm -f conftest.$ac_objext conftest$ac_exeext
3603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3604  (eval $ac_link) 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } &&
3611         { ac_try='test -z "$ac_f77_werror_flag"
3612                         || test ! -s conftest.err'
3613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614  (eval $ac_try) 2>&5
3615  ac_status=$?
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); }; } &&
3618         { ac_try='test -s conftest$ac_exeext'
3619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620  (eval $ac_try) 2>&5
3621  ac_status=$?
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); }; }; then
3624  coin_opt_fflags="-O"
3625else
3626  echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629fi
3630rm -f conftest.err conftest.$ac_objext \
3631      conftest$ac_exeext conftest.$ac_ext
3632  fi
3633
3634  # if PM doesn't want the warning messages, take them out
3635  if test x"$coin_skip_warn_fflags" = xyes; then
3636    coin_warn_fflags=
3637  fi
3638
3639  if test x${DBG_FFLAGS+set} != xset; then
3640    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3641  fi
3642  if test x${OPT_FFLAGS+set} != xset; then
3643    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3644  fi
3645
3646  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3647  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3648
3649  if test "$coin_debug_compile" = "true"; then
3650    FFLAGS="$DBG_FFLAGS"
3651  else
3652    FFLAGS="$OPT_FFLAGS"
3653  fi
3654else
3655  FFLAGS="$FFLAGS $ADD_FFLAGS"
3656  if test x${DBG_FFLAGS+set} != xset; then
3657    DBG_FFLAGS="$FFLAGS"
3658  fi
3659  if test x${OPT_FFLAGS+set} != xset; then
3660    OPT_FFLAGS="$FFLAGS"
3661  fi
3662fi
3663
3664# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3665case "$FFLAGS" in
3666  *-mno-cygwin*)
3667    if test x${CPPFLAGS+set} != xset ; then
3668      CPPFLAGS="-mno-cygwin"
3669    else
3670      case "$CPPFLAGS" in
3671        *-mno-cygwin*)
3672          ;;
3673        *)
3674          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3675          ;;
3676      esac
3677    fi ;;
3678esac
3679
3680# Try if FFLAGS works
3681if test "$F77" != "unavailable" ; then
3682  cat >conftest.$ac_ext <<_ACEOF
3683      program main
3684      integer i
3685      end
3686_ACEOF
3687rm -f conftest.$ac_objext conftest$ac_exeext
3688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689  (eval $ac_link) 2>conftest.er1
3690  ac_status=$?
3691  grep -v '^ *+' conftest.er1 >conftest.err
3692  rm -f conftest.er1
3693  cat conftest.err >&5
3694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695  (exit $ac_status); } &&
3696         { ac_try='test -z "$ac_f77_werror_flag"
3697                         || test ! -s conftest.err'
3698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699  (eval $ac_try) 2>&5
3700  ac_status=$?
3701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702  (exit $ac_status); }; } &&
3703         { ac_try='test -s conftest$ac_exeext'
3704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705  (eval $ac_try) 2>&5
3706  ac_status=$?
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); }; }; then
3709  :
3710else
3711  echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714FFLAGS=
3715fi
3716rm -f conftest.err conftest.$ac_objext \
3717      conftest$ac_exeext conftest.$ac_ext
3718  if test -z "$FFLAGS"; then
3719    { 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
3720echo "$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;}
3721    FFLAGS='-O'
3722    cat >conftest.$ac_ext <<_ACEOF
3723      program main
3724      integer i
3725      end
3726_ACEOF
3727rm -f conftest.$ac_objext conftest$ac_exeext
3728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3729  (eval $ac_link) 2>conftest.er1
3730  ac_status=$?
3731  grep -v '^ *+' conftest.er1 >conftest.err
3732  rm -f conftest.er1
3733  cat conftest.err >&5
3734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735  (exit $ac_status); } &&
3736         { ac_try='test -z "$ac_f77_werror_flag"
3737                         || test ! -s conftest.err'
3738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739  (eval $ac_try) 2>&5
3740  ac_status=$?
3741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742  (exit $ac_status); }; } &&
3743         { ac_try='test -s conftest$ac_exeext'
3744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745  (eval $ac_try) 2>&5
3746  ac_status=$?
3747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748  (exit $ac_status); }; }; then
3749  :
3750else
3751  echo "$as_me: failed program was:" >&5
3752sed 's/^/| /' conftest.$ac_ext >&5
3753
3754FFLAGS=
3755fi
3756rm -f conftest.err conftest.$ac_objext \
3757      conftest$ac_exeext conftest.$ac_ext
3758    if test -z "$FFLAGS"; then
3759      { 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
3760echo "$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;}
3761    fi
3762  fi
3763fi
3764
3765{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3766echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3767
3768
3769if test x"$MPIF77" = x; then :; else
3770  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3771echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3772  F77="$MPIF77"
3773fi
3774
3775case "$F77" in
3776  ifort* | */ifort* | IFORT* | */IFORT*)
3777    case $build in
3778  *-mingw*)
3779    if test "${LD+set}" = set; then :; else
3780      LD=link
3781    fi
3782    ;;
3783 esac
3784 case $enable_doscompile in
3785   msvc)
3786     if test "x${LD+set}" = xset; then :; else
3787       LD=link
3788     fi
3789     ;;
3790 esac
3791
3792    ;;
3793esac
3794
3795ac_ext=c
3796ac_cpp='$CPP $CPPFLAGS'
3797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800
3801
3802
3803# Initialize automake
3804{
3805
3806
3807
3808# START
3809
3810# Test if force_shared has been set
3811if test "x" = xforce_shared; then
3812  if test x$enable_shared = xno; then
3813    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3814echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3815   { (exit 1); exit 1; }; }
3816  fi
3817  enable_shared=yes;
3818else
3819  # On Cygwin and AIX, building DLLs doesn't work
3820  case $build in
3821    *-cygwin*)
3822      coin_disable_shared=yes
3823      platform=Cygwin
3824    ;;
3825    *-aix*)
3826      coin_disable_shared=yes
3827      platform=AIX
3828    ;;
3829    *-mingw*)
3830      coin_disable_shared=yes
3831      platform="Msys"
3832#      case "$CXX" in
3833#        cl*)
3834#          coin_disable_shared=yes
3835#          platform="Msys with cl"
3836#      ;;
3837#      esac
3838    ;;
3839  esac
3840fi
3841if test x"$coin_disable_shared" = xyes; then
3842  if test x"$enable_shared" = xyes; then
3843    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3844echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3845  fi
3846  enable_shared=no
3847fi
3848# By default, we only want the shared objects to be compiled
3849# Check whether --enable-static or --disable-static was given.
3850if test "${enable_static+set}" = set; then
3851  enableval="$enable_static"
3852  p=${PACKAGE-default}
3853    case $enableval in
3854    yes) enable_static=yes ;;
3855    no) enable_static=no ;;
3856    *)
3857     enable_static=no
3858      # Look at the argument we got.  We use all the common list separators.
3859      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3860      for pkg in $enableval; do
3861        IFS="$lt_save_ifs"
3862        if test "X$pkg" = "X$p"; then
3863          enable_static=yes
3864        fi
3865      done
3866      IFS="$lt_save_ifs"
3867      ;;
3868    esac
3869else
3870  enable_static=no
3871fi;
3872
3873
3874
3875
3876# Initialize automake
3877echo "$as_me:$LINENO: checking for egrep" >&5
3878echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3879if test "${ac_cv_prog_egrep+set}" = set; then
3880  echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3883    then ac_cv_prog_egrep='grep -E'
3884    else ac_cv_prog_egrep='egrep'
3885    fi
3886fi
3887echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3888echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3889 EGREP=$ac_cv_prog_egrep
3890
3891
3892am__api_version="1.9"
3893# Find a good install program.  We prefer a C program (faster),
3894# so one script is as good as another.  But avoid the broken or
3895# incompatible versions:
3896# SysV /etc/install, /usr/sbin/install
3897# SunOS /usr/etc/install
3898# IRIX /sbin/install
3899# AIX /bin/install
3900# AmigaOS /C/install, which installs bootblocks on floppy discs
3901# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3902# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3903# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3904# OS/2's system install, which has a completely different semantic
3905# ./install, which can be erroneously created by make from ./install.sh.
3906echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3907echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3908if test -z "$INSTALL"; then
3909if test "${ac_cv_path_install+set}" = set; then
3910  echo $ECHO_N "(cached) $ECHO_C" >&6
3911else
3912  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915  IFS=$as_save_IFS
3916  test -z "$as_dir" && as_dir=.
3917  # Account for people who put trailing slashes in PATH elements.
3918case $as_dir/ in
3919  ./ | .// | /cC/* | \
3920  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3921  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3922  /usr/ucb/* ) ;;
3923  *)
3924    # OSF1 and SCO ODT 3.0 have their own names for install.
3925    # Don't use installbsd from OSF since it installs stuff as root
3926    # by default.
3927    for ac_prog in ginstall scoinst install; do
3928      for ac_exec_ext in '' $ac_executable_extensions; do
3929        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3930          if test $ac_prog = install &&
3931            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932            # AIX install.  It has an incompatible calling convention.
3933            :
3934          elif test $ac_prog = install &&
3935            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3936            # program-specific install script used by HP pwplus--don't use.
3937            :
3938          else
3939            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3940            break 3
3941          fi
3942        fi
3943      done
3944    done
3945    ;;
3946esac
3947done
3948
3949
3950fi
3951  if test "${ac_cv_path_install+set}" = set; then
3952    INSTALL=$ac_cv_path_install
3953  else
3954    # As a last resort, use the slow shell script.  We don't cache a
3955    # path for INSTALL within a source directory, because that will
3956    # break other packages using the cache if that directory is
3957    # removed, or if the path is relative.
3958    INSTALL=$ac_install_sh
3959  fi
3960fi
3961echo "$as_me:$LINENO: result: $INSTALL" >&5
3962echo "${ECHO_T}$INSTALL" >&6
3963
3964# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3965# It thinks the first close brace ends the variable substitution.
3966test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3967
3968test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3969
3970test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3971
3972echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3973echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3974# Just in case
3975sleep 1
3976echo timestamp > conftest.file
3977# Do `set' in a subshell so we don't clobber the current shell's
3978# arguments.  Must try -L first in case configure is actually a
3979# symlink; some systems play weird games with the mod time of symlinks
3980# (eg FreeBSD returns the mod time of the symlink's containing
3981# directory).
3982if (
3983   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3984   if test "$*" = "X"; then
3985      # -L didn't work.
3986      set X `ls -t $srcdir/configure conftest.file`
3987   fi
3988   rm -f conftest.file
3989   if test "$*" != "X $srcdir/configure conftest.file" \
3990      && test "$*" != "X conftest.file $srcdir/configure"; then
3991
3992      # If neither matched, then we have a broken ls.  This can happen
3993      # if, for instance, CONFIG_SHELL is bash and it inherits a
3994      # broken ls alias from the environment.  This has actually
3995      # happened.  Such a system could not be considered "sane".
3996      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3997alias in your environment" >&5
3998echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3999alias in your environment" >&2;}
4000   { (exit 1); exit 1; }; }
4001   fi
4002
4003   test "$2" = conftest.file
4004   )
4005then
4006   # Ok.
4007   :
4008else
4009   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4010Check your system clock" >&5
4011echo "$as_me: error: newly created file is older than distributed files!
4012Check your system clock" >&2;}
4013   { (exit 1); exit 1; }; }
4014fi
4015echo "$as_me:$LINENO: result: yes" >&5
4016echo "${ECHO_T}yes" >&6
4017test "$program_prefix" != NONE &&
4018  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4019# Use a double $ so make ignores it.
4020test "$program_suffix" != NONE &&
4021  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4022# Double any \ or $.  echo might interpret backslashes.
4023# By default was `s,x,x', remove it if useless.
4024cat <<\_ACEOF >conftest.sed
4025s/[\\$]/&&/g;s/;s,x,x,$//
4026_ACEOF
4027program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4028rm conftest.sed
4029
4030# expand $ac_aux_dir to an absolute path
4031am_aux_dir=`cd $ac_aux_dir && pwd`
4032
4033test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4034# Use eval to expand $SHELL
4035if eval "$MISSING --run true"; then
4036  am_missing_run="$MISSING --run "
4037else
4038  am_missing_run=
4039  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4040echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4041fi
4042
4043if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4044  # We used to keeping the `.' as first argument, in order to
4045  # allow $(mkdir_p) to be used without argument.  As in
4046  #   $(mkdir_p) $(somedir)
4047  # where $(somedir) is conditionally defined.  However this is wrong
4048  # for two reasons:
4049  #  1. if the package is installed by a user who cannot write `.'
4050  #     make install will fail,
4051  #  2. the above comment should most certainly read
4052  #     $(mkdir_p) $(DESTDIR)$(somedir)
4053  #     so it does not work when $(somedir) is undefined and
4054  #     $(DESTDIR) is not.
4055  #  To support the latter case, we have to write
4056  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4057  #  so the `.' trick is pointless.
4058  mkdir_p='mkdir -p --'
4059else
4060  # On NextStep and OpenStep, the `mkdir' command does not
4061  # recognize any option.  It will interpret all options as
4062  # directories to create, and then abort because `.' already
4063  # exists.
4064  for d in ./-p ./--version;
4065  do
4066    test -d $d && rmdir $d
4067  done
4068  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4069  if test -f "$ac_aux_dir/mkinstalldirs"; then
4070    mkdir_p='$(mkinstalldirs)'
4071  else
4072    mkdir_p='$(install_sh) -d'
4073  fi
4074fi
4075
4076for ac_prog in gawk mawk nawk awk
4077do
4078  # Extract the first word of "$ac_prog", so it can be a program name with args.
4079set dummy $ac_prog; ac_word=$2
4080echo "$as_me:$LINENO: checking for $ac_word" >&5
4081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082if test "${ac_cv_prog_AWK+set}" = set; then
4083  echo $ECHO_N "(cached) $ECHO_C" >&6
4084else
4085  if test -n "$AWK"; then
4086  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4087else
4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089for as_dir in $PATH
4090do
4091  IFS=$as_save_IFS
4092  test -z "$as_dir" && as_dir=.
4093  for ac_exec_ext in '' $ac_executable_extensions; do
4094  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095    ac_cv_prog_AWK="$ac_prog"
4096    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4097    break 2
4098  fi
4099done
4100done
4101
4102fi
4103fi
4104AWK=$ac_cv_prog_AWK
4105if test -n "$AWK"; then
4106  echo "$as_me:$LINENO: result: $AWK" >&5
4107echo "${ECHO_T}$AWK" >&6
4108else
4109  echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
4111fi
4112
4113  test -n "$AWK" && break
4114done
4115
4116echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4117echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4118set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4119if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4120  echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122  cat >conftest.make <<\_ACEOF
4123all:
4124        @echo 'ac_maketemp="$(MAKE)"'
4125_ACEOF
4126# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4127eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4128if test -n "$ac_maketemp"; then
4129  eval ac_cv_prog_make_${ac_make}_set=yes
4130else
4131  eval ac_cv_prog_make_${ac_make}_set=no
4132fi
4133rm -f conftest.make
4134fi
4135if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4136  echo "$as_me:$LINENO: result: yes" >&5
4137echo "${ECHO_T}yes" >&6
4138  SET_MAKE=
4139else
4140  echo "$as_me:$LINENO: result: no" >&5
4141echo "${ECHO_T}no" >&6
4142  SET_MAKE="MAKE=${MAKE-make}"
4143fi
4144
4145rm -rf .tst 2>/dev/null
4146mkdir .tst 2>/dev/null
4147if test -d .tst; then
4148  am__leading_dot=.
4149else
4150  am__leading_dot=_
4151fi
4152rmdir .tst 2>/dev/null
4153
4154DEPDIR="${am__leading_dot}deps"
4155
4156          ac_config_commands="$ac_config_commands depfiles"
4157
4158
4159am_make=${MAKE-make}
4160cat > confinc << 'END'
4161am__doit:
4162        @echo done
4163.PHONY: am__doit
4164END
4165# If we don't find an include directive, just comment out the code.
4166echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4167echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4168am__include="#"
4169am__quote=
4170_am_result=none
4171# First try GNU make style include.
4172echo "include confinc" > confmf
4173# We grep out `Entering directory' and `Leaving directory'
4174# messages which can occur if `w' ends up in MAKEFLAGS.
4175# In particular we don't look at `^make:' because GNU make might
4176# be invoked under some other name (usually "gmake"), in which
4177# case it prints its new name instead of `make'.
4178if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4179   am__include=include
4180   am__quote=
4181   _am_result=GNU
4182fi
4183# Now try BSD make style include.
4184if test "$am__include" = "#"; then
4185   echo '.include "confinc"' > confmf
4186   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4187      am__include=.include
4188      am__quote="\""
4189      _am_result=BSD
4190   fi
4191fi
4192
4193
4194echo "$as_me:$LINENO: result: $_am_result" >&5
4195echo "${ECHO_T}$_am_result" >&6
4196rm -f confinc confmf
4197
4198# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4199if test "${enable_dependency_tracking+set}" = set; then
4200  enableval="$enable_dependency_tracking"
4201
4202fi;
4203if test "x$enable_dependency_tracking" != xno; then
4204  am_depcomp="$ac_aux_dir/depcomp"
4205  AMDEPBACKSLASH='\'
4206fi
4207
4208
4209if test "x$enable_dependency_tracking" != xno; then
4210  AMDEP_TRUE=
4211  AMDEP_FALSE='#'
4212else
4213  AMDEP_TRUE='#'
4214  AMDEP_FALSE=
4215fi
4216
4217
4218
4219
4220
4221# AC_MSG_NOTICE([Beginning automake initialisation.])
4222# Stuff for automake
4223# test to see if srcdir already configured
4224if test "`cd $srcdir && pwd`" != "`pwd`" &&
4225   test -f $srcdir/config.status; then
4226  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4227echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4228   { (exit 1); exit 1; }; }
4229fi
4230
4231# test whether we have cygpath
4232if test -z "$CYGPATH_W"; then
4233  if (cygpath --version) >/dev/null 2>/dev/null; then
4234    CYGPATH_W='cygpath -w'
4235  else
4236    CYGPATH_W=echo
4237  fi
4238fi
4239
4240
4241# Define the identity of the package.
4242 PACKAGE='thirdpartyblas'
4243 VERSION='1.0.13'
4244
4245
4246cat >>confdefs.h <<_ACEOF
4247#define PACKAGE "$PACKAGE"
4248_ACEOF
4249
4250
4251cat >>confdefs.h <<_ACEOF
4252#define VERSION "$VERSION"
4253_ACEOF
4254
4255# Some tools Automake needs.
4256
4257ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4258
4259
4260AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4261
4262
4263AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4264
4265
4266AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4267
4268
4269MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4270
4271install_sh=${install_sh-"$am_aux_dir/install-sh"}
4272
4273# Installed binaries are usually stripped using `strip' when the user
4274# run `make install-strip'.  However `strip' might not be the right
4275# tool to use in cross-compilation environments, therefore Automake
4276# will honor the `STRIP' environment variable to overrule this program.
4277if test "$cross_compiling" != no; then
4278  if test -n "$ac_tool_prefix"; then
4279  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4280set dummy ${ac_tool_prefix}strip; ac_word=$2
4281echo "$as_me:$LINENO: checking for $ac_word" >&5
4282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4283if test "${ac_cv_prog_STRIP+set}" = set; then
4284  echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286  if test -n "$STRIP"; then
4287  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4288else
4289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290for as_dir in $PATH
4291do
4292  IFS=$as_save_IFS
4293  test -z "$as_dir" && as_dir=.
4294  for ac_exec_ext in '' $ac_executable_extensions; do
4295  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4296    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4297    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298    break 2
4299  fi
4300done
4301done
4302
4303fi
4304fi
4305STRIP=$ac_cv_prog_STRIP
4306if test -n "$STRIP"; then
4307  echo "$as_me:$LINENO: result: $STRIP" >&5
4308echo "${ECHO_T}$STRIP" >&6
4309else
4310  echo "$as_me:$LINENO: result: no" >&5
4311echo "${ECHO_T}no" >&6
4312fi
4313
4314fi
4315if test -z "$ac_cv_prog_STRIP"; then
4316  ac_ct_STRIP=$STRIP
4317  # Extract the first word of "strip", so it can be a program name with args.
4318set dummy strip; ac_word=$2
4319echo "$as_me:$LINENO: checking for $ac_word" >&5
4320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4321if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4322  echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324  if test -n "$ac_ct_STRIP"; then
4325  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4326else
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330  IFS=$as_save_IFS
4331  test -z "$as_dir" && as_dir=.
4332  for ac_exec_ext in '' $ac_executable_extensions; do
4333  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334    ac_cv_prog_ac_ct_STRIP="strip"
4335    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336    break 2
4337  fi
4338done
4339done
4340
4341  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4342fi
4343fi
4344ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4345if test -n "$ac_ct_STRIP"; then
4346  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4347echo "${ECHO_T}$ac_ct_STRIP" >&6
4348else
4349  echo "$as_me:$LINENO: result: no" >&5
4350echo "${ECHO_T}no" >&6
4351fi
4352
4353  STRIP=$ac_ct_STRIP
4354else
4355  STRIP="$ac_cv_prog_STRIP"
4356fi
4357
4358fi
4359INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4360
4361# We need awk for the "check" target.  The system "awk" is bad on
4362# some platforms.
4363# Always define AMTAR for backward compatibility.
4364
4365AMTAR=${AMTAR-"${am_missing_run}tar"}
4366
4367am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4368
4369
4370
4371
4372depcc="$CC"   am_compiler_list=
4373
4374echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4375echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4376if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4377  echo $ECHO_N "(cached) $ECHO_C" >&6
4378else
4379  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4380  # We make a subdir and do the tests there.  Otherwise we can end up
4381  # making bogus files that we don't know about and never remove.  For
4382  # instance it was reported that on HP-UX the gcc test will end up
4383  # making a dummy file named `D' -- because `-MD' means `put the output
4384  # in D'.
4385  mkdir conftest.dir
4386  # Copy depcomp to subdir because otherwise we won't find it if we're
4387  # using a relative directory.
4388  cp "$am_depcomp" conftest.dir
4389  cd conftest.dir
4390  # We will build objects and dependencies in a subdirectory because
4391  # it helps to detect inapplicable dependency modes.  For instance
4392  # both Tru64's cc and ICC support -MD to output dependencies as a
4393  # side effect of compilation, but ICC will put the dependencies in
4394  # the current directory while Tru64 will put them in the object
4395  # directory.
4396  mkdir sub
4397
4398  am_cv_CC_dependencies_compiler_type=none
4399  if test "$am_compiler_list" = ""; then
4400     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4401  fi
4402  for depmode in $am_compiler_list; do
4403    # Setup a source with many dependencies, because some compilers
4404    # like to wrap large dependency lists on column 80 (with \), and
4405    # we should not choose a depcomp mode which is confused by this.
4406    #
4407    # We need to recreate these files for each test, as the compiler may
4408    # overwrite some of them when testing with obscure command lines.
4409    # This happens at least with the AIX C compiler.
4410    : > sub/conftest.c
4411    for i in 1 2 3 4 5 6; do
4412      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4413      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4414      # Solaris 8's {/usr,}/bin/sh.
4415      touch sub/conftst$i.h
4416    done
4417    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4418
4419    case $depmode in
4420    nosideeffect)
4421      # after this tag, mechanisms are not by side-effect, so they'll
4422      # only be used when explicitly requested
4423      if test "x$enable_dependency_tracking" = xyes; then
4424        continue
4425      else
4426        break
4427      fi
4428      ;;
4429    none) break ;;
4430    esac
4431    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4432    # mode.  It turns out that the SunPro C++ compiler does not properly
4433    # handle `-M -o', and we need to detect this.
4434    if depmode=$depmode \
4435       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4436       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4437       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4438         >/dev/null 2>conftest.err &&
4439       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4440       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4441       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4442      # icc doesn't choke on unknown options, it will just issue warnings
4443      # or remarks (even with -Werror).  So we grep stderr for any message
4444      # that says an option was ignored or not supported.
4445      # When given -MP, icc 7.0 and 7.1 complain thusly:
4446      #   icc: Command line warning: ignoring option '-M'; no argument required
4447      # The diagnosis changed in icc 8.0:
4448      #   icc: Command line remark: option '-MP' not supported
4449      if (grep 'ignoring option' conftest.err ||
4450          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4451        am_cv_CC_dependencies_compiler_type=$depmode
4452        break
4453      fi
4454    fi
4455  done
4456
4457  cd ..
4458  rm -rf conftest.dir
4459else
4460  am_cv_CC_dependencies_compiler_type=none
4461fi
4462
4463fi
4464echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4465echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4466CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4467
4468
4469
4470if
4471  test "x$enable_dependency_tracking" != xno \
4472  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4473  am__fastdepCC_TRUE=
4474  am__fastdepCC_FALSE='#'
4475else
4476  am__fastdepCC_TRUE='#'
4477  am__fastdepCC_FALSE=
4478fi
4479
4480
4481
4482echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4483echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4484    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4485if test "${enable_maintainer_mode+set}" = set; then
4486  enableval="$enable_maintainer_mode"
4487  USE_MAINTAINER_MODE=$enableval
4488else
4489  USE_MAINTAINER_MODE=no
4490fi;
4491  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4492echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4493
4494
4495if test $USE_MAINTAINER_MODE = yes; then
4496  MAINTAINER_MODE_TRUE=
4497  MAINTAINER_MODE_FALSE='#'
4498else
4499  MAINTAINER_MODE_TRUE='#'
4500  MAINTAINER_MODE_FALSE=
4501fi
4502
4503  MAINT=$MAINTAINER_MODE_TRUE
4504
4505
4506
4507coin_have_externals=no
4508if test "$enable_maintainer_mode" = yes; then
4509
4510  # If maintainer mode is chosen, we make sure that the correct versions
4511  # of the tools are used, and that we know where libtool.m4 is (to
4512  # recreate acinclude.m4)
4513
4514
4515  LIBTOOLM4=
4516  # Normally, $HOME
4517  AUTOTOOLS_DFLT=$HOME
4518
4519  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4520echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4521if test "${ac_cv_use_correct_autotools+set}" = set; then
4522  echo $ECHO_N "(cached) $ECHO_C" >&6
4523else
4524  ac_cv_use_correct_autotools=check
4525fi
4526echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4527echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4528
4529  if test $ac_cv_use_correct_autotools = check; then
4530    ac_cv_use_correct_autotools=yes
4531    # Check if we have autoconf
4532    # Extract the first word of "autoconf", so it can be a program name with args.
4533set dummy autoconf; ac_word=$2
4534echo "$as_me:$LINENO: checking for $ac_word" >&5
4535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4536if test "${ac_cv_prog_have_autoconf+set}" = set; then
4537  echo $ECHO_N "(cached) $ECHO_C" >&6
4538else
4539  if test -n "$have_autoconf"; then
4540  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4541else
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545  IFS=$as_save_IFS
4546  test -z "$as_dir" && as_dir=.
4547  for ac_exec_ext in '' $ac_executable_extensions; do
4548  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549    ac_cv_prog_have_autoconf="yes"
4550    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551    break 2
4552  fi
4553done
4554done
4555
4556  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4557fi
4558fi
4559have_autoconf=$ac_cv_prog_have_autoconf
4560if test -n "$have_autoconf"; then
4561  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4562echo "${ECHO_T}$have_autoconf" >&6
4563else
4564  echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6
4566fi
4567
4568    if test $have_autoconf = no; then
4569      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4570echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4571   { (exit 1); exit 1; }; }
4572    fi
4573
4574    # Check whether autoconf is the correct version
4575    correct_version='2.59'
4576    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4577    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4578echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4579    autoconf --version > confauto.out 2>&1
4580    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4581      echo "$as_me:$LINENO: result: yes" >&5
4582echo "${ECHO_T}yes" >&6
4583    else
4584      rm -f confauto.out
4585      echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
4587      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4588echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4589   { (exit 1); exit 1; }; }
4590    fi
4591    rm -f confauto.out
4592
4593    # Check if the executable autoconf is picked up from the correct location
4594    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4595echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4596    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4597    autoconf_dir=`cd $autoconf_dir; pwd`
4598    if test x$AUTOTOOLS_DIR = x; then
4599      want_dir=$AUTOTOOLS_DFLT/bin
4600    else
4601      want_dir=$AUTOTOOLS_DIR/bin
4602    fi
4603    if test $autoconf_dir = `cd $want_dir; pwd`; then
4604      echo "$as_me:$LINENO: result: yes" >&5
4605echo "${ECHO_T}yes" >&6
4606    else
4607      rm -f confauto.out
4608      echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6
4610      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4611echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4612   { (exit 1); exit 1; }; }
4613    fi
4614
4615    # Check if we have automake
4616    # Extract the first word of "automake", so it can be a program name with args.
4617set dummy automake; ac_word=$2
4618echo "$as_me:$LINENO: checking for $ac_word" >&5
4619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620if test "${ac_cv_prog_have_automake+set}" = set; then
4621  echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623  if test -n "$have_automake"; then
4624  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4625else
4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627for as_dir in $PATH
4628do
4629  IFS=$as_save_IFS
4630  test -z "$as_dir" && as_dir=.
4631  for ac_exec_ext in '' $ac_executable_extensions; do
4632  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633    ac_cv_prog_have_automake="yes"
4634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635    break 2
4636  fi
4637done
4638done
4639
4640  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4641fi
4642fi
4643have_automake=$ac_cv_prog_have_automake
4644if test -n "$have_automake"; then
4645  echo "$as_me:$LINENO: result: $have_automake" >&5
4646echo "${ECHO_T}$have_automake" >&6
4647else
4648  echo "$as_me:$LINENO: result: no" >&5
4649echo "${ECHO_T}no" >&6
4650fi
4651
4652    if test $have_automake = no; then
4653      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4654echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4655   { (exit 1); exit 1; }; }
4656    fi
4657
4658    # Check whether automake is the correct version
4659    correct_version='1.9.6'
4660    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4661    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4662echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4663    automake --version > confauto.out 2>&1
4664    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4665      echo "$as_me:$LINENO: result: yes" >&5
4666echo "${ECHO_T}yes" >&6
4667    else
4668      rm -f confauto.out
4669      echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6
4671      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4672echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4673   { (exit 1); exit 1; }; }
4674    fi
4675    rm -f confauto.out
4676
4677    # Check if the executable automake is picked up from the correct location
4678    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4679echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4680    automake_dir=`which automake | sed -e 's=/automake=='`
4681    automake_dir=`cd $automake_dir; pwd`
4682    if test x$AUTOTOOLS_DIR = x; then
4683      want_dir=$AUTOTOOLS_DFLT/bin
4684    else
4685      want_dir=$AUTOTOOLS_DIR/bin
4686    fi
4687    if test $automake_dir = `cd $want_dir; pwd`; then
4688      echo "$as_me:$LINENO: result: yes" >&5
4689echo "${ECHO_T}yes" >&6
4690    else
4691      rm -f confauto.out
4692      echo "$as_me:$LINENO: result: no" >&5
4693echo "${ECHO_T}no" >&6
4694      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4695echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4696   { (exit 1); exit 1; }; }
4697    fi
4698
4699    # Check if this is the correct version of libtool (with escaped dots)
4700    if test x$AUTOTOOLS_DIR = x; then
4701      want_dir=$AUTOTOOLS_DFLT/share
4702    else
4703      want_dir=$AUTOTOOLS_DIR/share
4704    fi
4705    correct_version='1.5.22'
4706    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4707    if test -r $want_dir/libtool/ltmain.sh; then
4708  have_ltmain=yes
4709  :
4710else
4711  have_ltmain=no
4712  :
4713fi
4714
4715    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4716echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4717    if test $have_ltmain = yes; then
4718    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4719        echo "$as_me:$LINENO: result: yes" >&5
4720echo "${ECHO_T}yes" >&6
4721      else
4722        echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6
4724        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4725echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4726   { (exit 1); exit 1; }; }
4727      fi
4728    else
4729      echo "$as_me:$LINENO: result: no" >&5
4730echo "${ECHO_T}no" >&6
4731      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4732echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4733   { (exit 1); exit 1; }; }
4734    fi
4735  fi
4736
4737  # Check if we can find the libtool file
4738  if test x$AUTOTOOLS_DIR = x; then
4739    want_dir=$AUTOTOOLS_DFLT/share
4740  else
4741    want_dir=$AUTOTOOLS_DIR/share
4742  fi
4743  if test -r $want_dir/aclocal/libtool.m4; then
4744  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4745  :
4746else
4747  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4748echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4749   { (exit 1); exit 1; }; }
4750  :
4751fi
4752
4753
4754  # Check if we have an Externals file
4755  if test -r $srcdir/Externals; then
4756    coin_have_externals=yes
4757  fi
4758  # Check if subversion is installed and understands https
4759  # Extract the first word of "svn", so it can be a program name with args.
4760set dummy svn; ac_word=$2
4761echo "$as_me:$LINENO: checking for $ac_word" >&5
4762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4763if test "${ac_cv_prog_have_svn+set}" = set; then
4764  echo $ECHO_N "(cached) $ECHO_C" >&6
4765else
4766  if test -n "$have_svn"; then
4767  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4768else
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772  IFS=$as_save_IFS
4773  test -z "$as_dir" && as_dir=.
4774  for ac_exec_ext in '' $ac_executable_extensions; do
4775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4776    ac_cv_prog_have_svn="yes"
4777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4778    break 2
4779  fi
4780done
4781done
4782
4783  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4784fi
4785fi
4786have_svn=$ac_cv_prog_have_svn
4787if test -n "$have_svn"; then
4788  echo "$as_me:$LINENO: result: $have_svn" >&5
4789echo "${ECHO_T}$have_svn" >&6
4790else
4791  echo "$as_me:$LINENO: result: no" >&5
4792echo "${ECHO_T}no" >&6
4793fi
4794
4795  if test x$have_svn = xyes; then
4796    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4797echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4798if test "${ac_cv_svn_understands_https+set}" = set; then
4799  echo $ECHO_N "(cached) $ECHO_C" >&6
4800else
4801  svn --version > confauto.out 2>&1
4802                    if $EGREP https confauto.out >/dev/null 2>&1; then
4803                      ac_cv_svn_understands_https=yes
4804                    else
4805                      ac_cv_svn_understands_https=no
4806                      have_svn=no
4807                      ac_cv_prog_have_svn=no
4808                    fi
4809                    rm -f confauto.out
4810fi
4811echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4812echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4813  fi
4814
4815  # Find the location of the BuildTools directory
4816  BUILDTOOLSDIR=
4817  if test -r $srcdir/BuildTools/coin.m4; then
4818    BUILDTOOLSDIR=$srcdir/BuildTools
4819  else
4820    if test -r $srcdir/../BuildTools/coin.m4; then
4821      BUILDTOOLSDIR=$srcdir/../BuildTools
4822    else
4823      if test -r $srcdir/../../BuildTools/coin.m4; then
4824        BUILDTOOLSDIR=$srcdir/../../BuildTools
4825      else
4826        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4827echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4828   { (exit 1); exit 1; }; }
4829      fi
4830    fi
4831  fi
4832
4833
4834  # The following variable is set to the name of the directory where
4835  # the autotool scripts are located
4836
4837  AUX_DIR=$ac_aux_dir
4838fi
4839
4840# helpful variable for the base directory of this package
4841abs_source_dir=`cd $srcdir; pwd`
4842
4843
4844# Stuff for example Makefiles
4845if test x$prefix = xNONE; then
4846  full_prefix=$ac_default_prefix
4847else
4848  full_prefix=$prefix
4849fi
4850full_prefix=`cd $full_prefix ; pwd`
4851
4852abs_lib_dir=$full_prefix/lib
4853
4854abs_include_dir=$full_prefix/include
4855
4856abs_bin_dir=$full_prefix/bin
4857
4858
4859
4860if test $coin_have_externals = yes && test x$have_svn = xyes; then
4861  HAVE_EXTERNALS_TRUE=
4862  HAVE_EXTERNALS_FALSE='#'
4863else
4864  HAVE_EXTERNALS_TRUE='#'
4865  HAVE_EXTERNALS_FALSE=
4866fi
4867
4868
4869# AC_MSG_NOTICE([End automake initialisation.])
4870
4871
4872
4873LIBTOOL=
4874if test -r ../libtool; then
4875  coin_config_dir=..
4876  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4877fi
4878if test "x$LIBTOOL" = x; then
4879  if test -r ../../libtool; then
4880    coin_config_dir=../..
4881    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4882  fi
4883fi
4884
4885if test "x$LIBTOOL" = x; then
4886# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4887  # Stuff for libtool
4888  # Check whether --enable-shared or --disable-shared was given.
4889if test "${enable_shared+set}" = set; then
4890  enableval="$enable_shared"
4891  p=${PACKAGE-default}
4892    case $enableval in
4893    yes) enable_shared=yes ;;
4894    no) enable_shared=no ;;
4895    *)
4896      enable_shared=no
4897      # Look at the argument we got.  We use all the common list separators.
4898      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4899      for pkg in $enableval; do
4900        IFS="$lt_save_ifs"
4901        if test "X$pkg" = "X$p"; then
4902          enable_shared=yes
4903        fi
4904      done
4905      IFS="$lt_save_ifs"
4906      ;;
4907    esac
4908else
4909  enable_shared=yes
4910fi;
4911
4912# Check whether --enable-fast-install or --disable-fast-install was given.
4913if test "${enable_fast_install+set}" = set; then
4914  enableval="$enable_fast_install"
4915  p=${PACKAGE-default}
4916    case $enableval in
4917    yes) enable_fast_install=yes ;;
4918    no) enable_fast_install=no ;;
4919    *)
4920      enable_fast_install=no
4921      # Look at the argument we got.  We use all the common list separators.
4922      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4923      for pkg in $enableval; do
4924        IFS="$lt_save_ifs"
4925        if test "X$pkg" = "X$p"; then
4926          enable_fast_install=yes
4927        fi
4928      done
4929      IFS="$lt_save_ifs"
4930      ;;
4931    esac
4932else
4933  enable_fast_install=yes
4934fi;
4935
4936echo "$as_me:$LINENO: checking host system type" >&5
4937echo $ECHO_N "checking host system type... $ECHO_C" >&6
4938if test "${ac_cv_host+set}" = set; then
4939  echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941  ac_cv_host_alias=$host_alias
4942test -z "$ac_cv_host_alias" &&
4943  ac_cv_host_alias=$ac_cv_build_alias
4944ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4945  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4946echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4947   { (exit 1); exit 1; }; }
4948
4949fi
4950echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4951echo "${ECHO_T}$ac_cv_host" >&6
4952host=$ac_cv_host
4953host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4954host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4955host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4956
4957
4958echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4959echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4960if test "${lt_cv_path_SED+set}" = set; then
4961  echo $ECHO_N "(cached) $ECHO_C" >&6
4962else
4963  # Loop through the user's path and test for sed and gsed.
4964# Then use that list of sed's as ones to test for truncation.
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968  IFS=$as_save_IFS
4969  test -z "$as_dir" && as_dir=.
4970  for lt_ac_prog in sed gsed; do
4971    for ac_exec_ext in '' $ac_executable_extensions; do
4972      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4973        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4974      fi
4975    done
4976  done
4977done
4978lt_ac_max=0
4979lt_ac_count=0
4980# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4981# along with /bin/sed that truncates output.
4982for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4983  test ! -f $lt_ac_sed && continue
4984  cat /dev/null > conftest.in
4985  lt_ac_count=0
4986  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4987  # Check for GNU sed and select it if it is found.
4988  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4989    lt_cv_path_SED=$lt_ac_sed
4990    break
4991  fi
4992  while true; do
4993    cat conftest.in conftest.in >conftest.tmp
4994    mv conftest.tmp conftest.in
4995    cp conftest.in conftest.nl
4996    echo >>conftest.nl
4997    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4998    cmp -s conftest.out conftest.nl || break
4999    # 10000 chars as input seems more than enough
5000    test $lt_ac_count -gt 10 && break
5001    lt_ac_count=`expr $lt_ac_count + 1`
5002    if test $lt_ac_count -gt $lt_ac_max; then
5003      lt_ac_max=$lt_ac_count
5004      lt_cv_path_SED=$lt_ac_sed
5005    fi
5006  done
5007done
5008
5009fi
5010
5011SED=$lt_cv_path_SED
5012echo "$as_me:$LINENO: result: $SED" >&5
5013echo "${ECHO_T}$SED" >&6
5014
5015
5016# Check whether --with-gnu-ld or --without-gnu-ld was given.
5017if test "${with_gnu_ld+set}" = set; then
5018  withval="$with_gnu_ld"
5019  test "$withval" = no || with_gnu_ld=yes
5020else
5021  with_gnu_ld=no
5022fi;
5023ac_prog=ld
5024if test "$GCC" = yes; then
5025  # Check if gcc -print-prog-name=ld gives a path.
5026  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5027echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5028  case $host in
5029  *-*-mingw*)
5030    # gcc leaves a trailing carriage return which upsets mingw
5031    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5032  *)
5033    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5034  esac
5035  case $ac_prog in
5036    # Accept absolute paths.
5037    [\\/]* | ?:[\\/]*)
5038      re_direlt='/[^/][^/]*/\.\./'
5039      # Canonicalize the pathname of ld
5040      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5041      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5042        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5043      done
5044      test -z "$LD" && LD="$ac_prog"
5045      ;;
5046  "")
5047    # If it fails, then pretend we aren't using GCC.
5048    ac_prog=ld
5049    ;;
5050  *)
5051    # If it is relative, then search for the first ld in PATH.
5052    with_gnu_ld=unknown
5053    ;;
5054  esac
5055elif test "$with_gnu_ld" = yes; then
5056  echo "$as_me:$LINENO: checking for GNU ld" >&5
5057echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5058else
5059  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5060echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5061fi
5062if test "${lt_cv_path_LD+set}" = set; then
5063  echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065  if test -z "$LD"; then
5066  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5067  for ac_dir in $PATH; do
5068    IFS="$lt_save_ifs"
5069    test -z "$ac_dir" && ac_dir=.
5070    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5071      lt_cv_path_LD="$ac_dir/$ac_prog"
5072      # Check to see if the program is GNU ld.  I'd rather use --version,
5073      # but apparently some variants of GNU ld only accept -v.
5074      # Break only if it was the GNU/non-GNU ld that we prefer.
5075      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5076      *GNU* | *'with BFD'*)
5077        test "$with_gnu_ld" != no && break
5078        ;;
5079      *)
5080        test "$with_gnu_ld" != yes && break
5081        ;;
5082      esac
5083    fi
5084  done
5085  IFS="$lt_save_ifs"
5086else
5087  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5088fi
5089fi
5090
5091LD="$lt_cv_path_LD"
5092if test -n "$LD"; then
5093  echo "$as_me:$LINENO: result: $LD" >&5
5094echo "${ECHO_T}$LD" >&6
5095else
5096  echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098fi
5099test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5100echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5101   { (exit 1); exit 1; }; }
5102echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5103echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5104if test "${lt_cv_prog_gnu_ld+set}" = set; then
5105  echo $ECHO_N "(cached) $ECHO_C" >&6
5106else
5107  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5108case `$LD -v 2>&1 </dev/null` in
5109*GNU* | *'with BFD'*)
5110  lt_cv_prog_gnu_ld=yes
5111  ;;
5112*)
5113  lt_cv_prog_gnu_ld=no
5114  ;;
5115esac
5116fi
5117echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5118echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5119with_gnu_ld=$lt_cv_prog_gnu_ld
5120
5121
5122echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5123echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5124if test "${lt_cv_ld_reload_flag+set}" = set; then
5125  echo $ECHO_N "(cached) $ECHO_C" >&6
5126else
5127  lt_cv_ld_reload_flag='-r'
5128fi
5129echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5130echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5131reload_flag=$lt_cv_ld_reload_flag
5132case $reload_flag in
5133"" | " "*) ;;
5134*) reload_flag=" $reload_flag" ;;
5135esac
5136reload_cmds='$LD$reload_flag -o $output$reload_objs'
5137case $host_os in
5138  darwin*)
5139    if test "$GCC" = yes; then
5140      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5141    else
5142      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5143    fi
5144    ;;
5145esac
5146
5147echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5148echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5149if test "${lt_cv_path_NM+set}" = set; then
5150  echo $ECHO_N "(cached) $ECHO_C" >&6
5151else
5152  if test -n "$NM"; then
5153  # Let the user override the test.
5154  lt_cv_path_NM="$NM"
5155else
5156  lt_nm_to_check="${ac_tool_prefix}nm"
5157  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5158    lt_nm_to_check="$lt_nm_to_check nm"
5159  fi
5160  for lt_tmp_nm in $lt_nm_to_check; do
5161    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5162    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5163      IFS="$lt_save_ifs"
5164      test -z "$ac_dir" && ac_dir=.
5165      tmp_nm="$ac_dir/$lt_tmp_nm"
5166      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5167        # Check to see if the nm accepts a BSD-compat flag.
5168        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5169        #   nm: unknown option "B" ignored
5170        # Tru64's nm complains that /dev/null is an invalid object file
5171        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5172        */dev/null* | *'Invalid file or object type'*)
5173          lt_cv_path_NM="$tmp_nm -B"
5174          break
5175          ;;
5176        *)
5177          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5178          */dev/null*)
5179            lt_cv_path_NM="$tmp_nm -p"
5180            break
5181            ;;
5182          *)
5183            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5184            continue # so that we can try to find one that supports BSD flags
5185            ;;
5186          esac
5187          ;;
5188        esac
5189      fi
5190    done
5191    IFS="$lt_save_ifs"
5192  done
5193  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5194fi
5195fi
5196echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5197echo "${ECHO_T}$lt_cv_path_NM" >&6
5198NM="$lt_cv_path_NM"
5199
5200echo "$as_me:$LINENO: checking whether ln -s works" >&5
5201echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5202LN_S=$as_ln_s
5203if test "$LN_S" = "ln -s"; then
5204  echo "$as_me:$LINENO: result: yes" >&5
5205echo "${ECHO_T}yes" >&6
5206else
5207  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5208echo "${ECHO_T}no, using $LN_S" >&6
5209fi
5210
5211echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5212echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5213if test "${lt_cv_deplibs_check_method+set}" = set; then
5214  echo $ECHO_N "(cached) $ECHO_C" >&6
5215else
5216  lt_cv_file_magic_cmd='$MAGIC_CMD'
5217lt_cv_file_magic_test_file=
5218lt_cv_deplibs_check_method='unknown'
5219# Need to set the preceding variable on all platforms that support
5220# interlibrary dependencies.
5221# 'none' -- dependencies not supported.
5222# `unknown' -- same as none, but documents that we really don't know.
5223# 'pass_all' -- all dependencies passed with no checks.
5224# 'test_compile' -- check by making test program.
5225# 'file_magic [[regex]]' -- check by looking for files in library path
5226# which responds to the $file_magic_cmd with a given extended regex.
5227# If you have `file' or equivalent on your system and you're not sure
5228# whether `pass_all' will *always* work, you probably want this one.
5229
5230case $host_os in
5231aix4* | aix5*)
5232  lt_cv_deplibs_check_method=pass_all
5233  ;;
5234
5235beos*)
5236  lt_cv_deplibs_check_method=pass_all
5237  ;;
5238
5239bsdi[45]*)
5240  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5241  lt_cv_file_magic_cmd='/usr/bin/file -L'
5242  lt_cv_file_magic_test_file=/shlib/libc.so
5243  ;;
5244
5245cygwin*)
5246  # func_win32_libid is a shell function defined in ltmain.sh
5247  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5248  lt_cv_file_magic_cmd='func_win32_libid'
5249  ;;
5250
5251mingw* | pw32*)
5252  # Base MSYS/MinGW do not provide the 'file' command needed by
5253  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5254  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5255  lt_cv_file_magic_cmd='$OBJDUMP -f'
5256  ;;
5257
5258darwin* | rhapsody*)
5259  lt_cv_deplibs_check_method=pass_all
5260  ;;
5261
5262freebsd* | kfreebsd*-gnu | dragonfly*)
5263  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5264    case $host_cpu in
5265    i*86 )
5266      # Not sure whether the presence of OpenBSD here was a mistake.
5267      # Let's accept both of them until this is cleared up.
5268      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5269      lt_cv_file_magic_cmd=/usr/bin/file
5270      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5271      ;;
5272    esac
5273  else
5274    lt_cv_deplibs_check_method=pass_all
5275  fi
5276  ;;
5277
5278gnu*)
5279  lt_cv_deplibs_check_method=pass_all
5280  ;;
5281
5282hpux10.20* | hpux11*)
5283  lt_cv_file_magic_cmd=/usr/bin/file
5284  case $host_cpu in
5285  ia64*)
5286    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5287    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5288    ;;
5289  hppa*64*)
5290    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]'
5291    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5292    ;;
5293  *)
5294    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5295    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5296    ;;
5297  esac
5298  ;;
5299
5300interix3*)
5301  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5302  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5303  ;;
5304
5305irix5* | irix6* | nonstopux*)
5306  case $LD in
5307  *-32|*"-32 ") libmagic=32-bit;;
5308  *-n32|*"-n32 ") libmagic=N32;;
5309  *-64|*"-64 ") libmagic=64-bit;;
5310  *) libmagic=never-match;;
5311  esac
5312  lt_cv_deplibs_check_method=pass_all
5313  ;;
5314
5315# This must be Linux ELF.
5316linux*)
5317  lt_cv_deplibs_check_method=pass_all
5318  ;;
5319
5320netbsd*)
5321  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5322    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5323  else
5324    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5325  fi
5326  ;;
5327
5328newos6*)
5329  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5330  lt_cv_file_magic_cmd=/usr/bin/file
5331  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5332  ;;
5333
5334nto-qnx*)
5335  lt_cv_deplibs_check_method=unknown
5336  ;;
5337
5338openbsd*)
5339  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5340    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5341  else
5342    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5343  fi
5344  ;;
5345
5346osf3* | osf4* | osf5*)
5347  lt_cv_deplibs_check_method=pass_all
5348  ;;
5349
5350solaris*)
5351  lt_cv_deplibs_check_method=pass_all
5352  ;;
5353
5354sysv4 | sysv4.3*)
5355  case $host_vendor in
5356  motorola)
5357    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]'
5358    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5359    ;;
5360  ncr)
5361    lt_cv_deplibs_check_method=pass_all
5362    ;;
5363  sequent)
5364    lt_cv_file_magic_cmd='/bin/file'
5365    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5366    ;;
5367  sni)
5368    lt_cv_file_magic_cmd='/bin/file'
5369    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5370    lt_cv_file_magic_test_file=/lib/libc.so
5371    ;;
5372  siemens)
5373    lt_cv_deplibs_check_method=pass_all
5374    ;;
5375  pc)
5376    lt_cv_deplibs_check_method=pass_all
5377    ;;
5378  esac
5379  ;;
5380
5381sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5382  lt_cv_deplibs_check_method=pass_all
5383  ;;
5384esac
5385
5386fi
5387echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5388echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5389file_magic_cmd=$lt_cv_file_magic_cmd
5390deplibs_check_method=$lt_cv_deplibs_check_method
5391test -z "$deplibs_check_method" && deplibs_check_method=unknown
5392
5393
5394
5395
5396# If no C compiler was specified, use CC.
5397LTCC=${LTCC-"$CC"}
5398
5399# If no C compiler flags were specified, use CFLAGS.
5400LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5401
5402# Allow CC to be a program name with arguments.
5403compiler=$CC
5404
5405# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5406if test "${enable_libtool_lock+set}" = set; then
5407  enableval="$enable_libtool_lock"
5408
5409fi;
5410test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5411
5412# Some flags need to be propagated to the compiler or linker for good
5413# libtool support.
5414case $host in
5415ia64-*-hpux*)
5416  # Find out which ABI we are using.
5417  echo 'int i;' > conftest.$ac_ext
5418  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419  (eval $ac_compile) 2>&5
5420  ac_status=$?
5421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422  (exit $ac_status); }; then
5423    case `/usr/bin/file conftest.$ac_objext` in
5424    *ELF-32*)
5425      HPUX_IA64_MODE="32"
5426      ;;
5427    *ELF-64*)
5428      HPUX_IA64_MODE="64"
5429      ;;
5430    esac
5431  fi
5432  rm -rf conftest*
5433  ;;
5434*-*-irix6*)
5435  # Find out which ABI we are using.
5436  echo '#line 5436 "configure"' > conftest.$ac_ext
5437  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5438  (eval $ac_compile) 2>&5
5439  ac_status=$?
5440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441  (exit $ac_status); }; then
5442   if test "$lt_cv_prog_gnu_ld" = yes; then
5443    case `/usr/bin/file conftest.$ac_objext` in
5444    *32-bit*)
5445      LD="${LD-ld} -melf32bsmip"
5446      ;;
5447    *N32*)
5448      LD="${LD-ld} -melf32bmipn32"
5449      ;;
5450    *64-bit*)
5451      LD="${LD-ld} -melf64bmip"
5452      ;;
5453    esac
5454   else
5455    case `/usr/bin/file conftest.$ac_objext` in
5456    *32-bit*)
5457      LD="${LD-ld} -32"
5458      ;;
5459    *N32*)
5460      LD="${LD-ld} -n32"
5461      ;;
5462    *64-bit*)
5463      LD="${LD-ld} -64"
5464      ;;
5465    esac
5466   fi
5467  fi
5468  rm -rf conftest*
5469  ;;
5470
5471x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5472  # Find out which ABI we are using.
5473  echo 'int i;' > conftest.$ac_ext
5474  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5475  (eval $ac_compile) 2>&5
5476  ac_status=$?
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }; then
5479    case `/usr/bin/file conftest.o` in
5480    *32-bit*)
5481      case $host in
5482        x86_64-*linux*)
5483          LD="${LD-ld} -m elf_i386"
5484          ;;
5485        ppc64-*linux*|powerpc64-*linux*)
5486          LD="${LD-ld} -m elf32ppclinux"
5487          ;;
5488        s390x-*linux*)
5489          LD="${LD-ld} -m elf_s390"
5490          ;;
5491        sparc64-*linux*)
5492          LD="${LD-ld} -m elf32_sparc"
5493          ;;
5494      esac
5495      ;;
5496    *64-bit*)
5497      case $host in
5498        x86_64-*linux*)
5499          LD="${LD-ld} -m elf_x86_64"
5500          ;;
5501        ppc*-*linux*|powerpc*-*linux*)
5502          LD="${LD-ld} -m elf64ppc"
5503          ;;
5504        s390*-*linux*)
5505          LD="${LD-ld} -m elf64_s390"
5506          ;;
5507        sparc*-*linux*)
5508          LD="${LD-ld} -m elf64_sparc"
5509          ;;
5510      esac
5511      ;;
5512    esac
5513  fi
5514  rm -rf conftest*
5515  ;;
5516
5517*-*-sco3.2v5*)
5518  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5519  SAVE_CFLAGS="$CFLAGS"
5520  CFLAGS="$CFLAGS -belf"
5521  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5522echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5523if test "${lt_cv_cc_needs_belf+set}" = set; then
5524  echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526  ac_ext=c
5527ac_cpp='$CPP $CPPFLAGS'
5528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530ac_compiler_gnu=$ac_cv_c_compiler_gnu
5531
5532     cat >conftest.$ac_ext <<_ACEOF
5533/* confdefs.h.  */
5534_ACEOF
5535cat confdefs.h >>conftest.$ac_ext
5536cat >>conftest.$ac_ext <<_ACEOF
5537/* end confdefs.h.  */
5538
5539int
5540main ()
5541{
5542
5543  ;
5544  return 0;
5545}
5546_ACEOF
5547rm -f conftest.$ac_objext conftest$ac_exeext
5548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5549  (eval $ac_link) 2>conftest.er1
5550  ac_status=$?
5551  grep -v '^ *+' conftest.er1 >conftest.err
5552  rm -f conftest.er1
5553  cat conftest.err >&5
5554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555  (exit $ac_status); } &&
5556         { ac_try='test -z "$ac_c_werror_flag"
5557                         || test ! -s conftest.err'
5558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559  (eval $ac_try) 2>&5
5560  ac_status=$?
5561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562  (exit $ac_status); }; } &&
5563         { ac_try='test -s conftest$ac_exeext'
5564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565  (eval $ac_try) 2>&5
5566  ac_status=$?
5567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568  (exit $ac_status); }; }; then
5569  lt_cv_cc_needs_belf=yes
5570else
5571  echo "$as_me: failed program was:" >&5
5572sed 's/^/| /' conftest.$ac_ext >&5
5573
5574lt_cv_cc_needs_belf=no
5575fi
5576rm -f conftest.err conftest.$ac_objext \
5577      conftest$ac_exeext conftest.$ac_ext
5578     ac_ext=c
5579ac_cpp='$CPP $CPPFLAGS'
5580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582ac_compiler_gnu=$ac_cv_c_compiler_gnu
5583
5584fi
5585echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5586echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5587  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5588    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5589    CFLAGS="$SAVE_CFLAGS"
5590  fi
5591  ;;
5592sparc*-*solaris*)
5593  # Find out which ABI we are using.
5594  echo 'int i;' > conftest.$ac_ext
5595  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596  (eval $ac_compile) 2>&5
5597  ac_status=$?
5598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599  (exit $ac_status); }; then
5600    case `/usr/bin/file conftest.o` in
5601    *64-bit*)
5602      case $lt_cv_prog_gnu_ld in
5603      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5604      *)    LD="${LD-ld} -64" ;;
5605      esac
5606      ;;
5607    esac
5608  fi
5609  rm -rf conftest*
5610  ;;
5611
5612
5613esac
5614
5615need_locks="$enable_libtool_lock"
5616
5617
5618ac_ext=c
5619ac_cpp='$CPP $CPPFLAGS'
5620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622ac_compiler_gnu=$ac_cv_c_compiler_gnu
5623echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5624echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5625# On Suns, sometimes $CPP names a directory.
5626if test -n "$CPP" && test -d "$CPP"; then
5627  CPP=
5628fi
5629if test -z "$CPP"; then
5630  if test "${ac_cv_prog_CPP+set}" = set; then
5631  echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633      # Double quotes because CPP needs to be expanded
5634    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5635    do
5636      ac_preproc_ok=false
5637for ac_c_preproc_warn_flag in '' yes
5638do
5639  # Use a header file that comes with gcc, so configuring glibc
5640  # with a fresh cross-compiler works.
5641  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5642  # <limits.h> exists even on freestanding compilers.
5643  # On the NeXT, cc -E runs the code through the compiler's parser,
5644  # not just through cpp. "Syntax error" is here to catch this case.
5645  cat >conftest.$ac_ext <<_ACEOF
5646/* confdefs.h.  */
5647_ACEOF
5648cat confdefs.h >>conftest.$ac_ext
5649cat >>conftest.$ac_ext <<_ACEOF
5650/* end confdefs.h.  */
5651#ifdef __STDC__
5652# include <limits.h>
5653#else
5654# include <assert.h>
5655#endif
5656                     Syntax error
5657_ACEOF
5658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5659  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5660  ac_status=$?
5661  grep -v '^ *+' conftest.er1 >conftest.err
5662  rm -f conftest.er1
5663  cat conftest.err >&5
5664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665  (exit $ac_status); } >/dev/null; then
5666  if test -s conftest.err; then
5667    ac_cpp_err=$ac_c_preproc_warn_flag
5668    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5669  else
5670    ac_cpp_err=
5671  fi
5672else
5673  ac_cpp_err=yes
5674fi
5675if test -z "$ac_cpp_err"; then
5676  :
5677else
5678  echo "$as_me: failed program was:" >&5
5679sed 's/^/| /' conftest.$ac_ext >&5
5680
5681  # Broken: fails on valid input.
5682continue
5683fi
5684rm -f conftest.err conftest.$ac_ext
5685
5686  # OK, works on sane cases.  Now check whether non-existent headers
5687  # can be detected and how.
5688  cat >conftest.$ac_ext <<_ACEOF
5689/* confdefs.h.  */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h.  */
5694#include <ac_nonexistent.h>
5695_ACEOF
5696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5697  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5698  ac_status=$?
5699  grep -v '^ *+' conftest.er1 >conftest.err
5700  rm -f conftest.er1
5701  cat conftest.err >&5
5702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703  (exit $ac_status); } >/dev/null; then
5704  if test -s conftest.err; then
5705    ac_cpp_err=$ac_c_preproc_warn_flag
5706    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5707  else
5708    ac_cpp_err=
5709  fi
5710else
5711  ac_cpp_err=yes
5712fi
5713if test -z "$ac_cpp_err"; then
5714  # Broken: success on invalid input.
5715continue
5716else
5717  echo "$as_me: failed program was:" >&5
5718sed 's/^/| /' conftest.$ac_ext >&5
5719
5720  # Passes both tests.
5721ac_preproc_ok=:
5722break
5723fi
5724rm -f conftest.err conftest.$ac_ext
5725
5726done
5727# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5728rm -f conftest.err conftest.$ac_ext
5729if $ac_preproc_ok; then
5730  break
5731fi
5732
5733    done
5734    ac_cv_prog_CPP=$CPP
5735
5736fi
5737  CPP=$ac_cv_prog_CPP
5738else
5739  ac_cv_prog_CPP=$CPP
5740fi
5741echo "$as_me:$LINENO: result: $CPP" >&5
5742echo "${ECHO_T}$CPP" >&6
5743ac_preproc_ok=false
5744for ac_c_preproc_warn_flag in '' yes
5745do
5746  # Use a header file that comes with gcc, so configuring glibc
5747  # with a fresh cross-compiler works.
5748  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5749  # <limits.h> exists even on freestanding compilers.
5750  # On the NeXT, cc -E runs the code through the compiler's parser,
5751  # not just through cpp. "Syntax error" is here to catch this case.
5752  cat >conftest.$ac_ext <<_ACEOF
5753/* confdefs.h.  */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>conftest.$ac_ext <<_ACEOF
5757/* end confdefs.h.  */
5758#ifdef __STDC__
5759# include <limits.h>
5760#else
5761# include <assert.h>
5762#endif
5763                     Syntax error
5764_ACEOF
5765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5766  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5767  ac_status=$?
5768  grep -v '^ *+' conftest.er1 >conftest.err
5769  rm -f conftest.er1
5770  cat conftest.err >&5
5771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); } >/dev/null; then
5773  if test -s conftest.err; then
5774    ac_cpp_err=$ac_c_preproc_warn_flag
5775    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5776  else
5777    ac_cpp_err=
5778  fi
5779else
5780  ac_cpp_err=yes
5781fi
5782if test -z "$ac_cpp_err"; then
5783  :
5784else
5785  echo "$as_me: failed program was:" >&5
5786sed 's/^/| /' conftest.$ac_ext >&5
5787
5788  # Broken: fails on valid input.
5789continue
5790fi
5791rm -f conftest.err conftest.$ac_ext
5792
5793  # OK, works on sane cases.  Now check whether non-existent headers
5794  # can be detected and how.
5795  cat >conftest.$ac_ext <<_ACEOF
5796/* confdefs.h.  */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h.  */
5801#include <ac_nonexistent.h>
5802_ACEOF
5803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5804  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5805  ac_status=$?
5806  grep -v '^ *+' conftest.er1 >conftest.err
5807  rm -f conftest.er1
5808  cat conftest.err >&5
5809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810  (exit $ac_status); } >/dev/null; then
5811  if test -s conftest.err; then
5812    ac_cpp_err=$ac_c_preproc_warn_flag
5813    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5814  else
5815    ac_cpp_err=
5816  fi
5817else
5818  ac_cpp_err=yes
5819fi
5820if test -z "$ac_cpp_err"; then
5821  # Broken: success on invalid input.
5822continue
5823else
5824  echo "$as_me: failed program was:" >&5
5825sed 's/^/| /' conftest.$ac_ext >&5
5826
5827  # Passes both tests.
5828ac_preproc_ok=:
5829break
5830fi
5831rm -f conftest.err conftest.$ac_ext
5832
5833done
5834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835rm -f conftest.err conftest.$ac_ext
5836if $ac_preproc_ok; then
5837  :
5838else
5839  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5840See \`config.log' for more details." >&5
5841echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5842See \`config.log' for more details." >&2;}
5843   { (exit 1); exit 1; }; }
5844fi
5845
5846ac_ext=c
5847ac_cpp='$CPP $CPPFLAGS'
5848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5850ac_compiler_gnu=$ac_cv_c_compiler_gnu
5851
5852
5853echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5854echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5855if test "${ac_cv_header_stdc+set}" = set; then
5856  echo $ECHO_N "(cached) $ECHO_C" >&6
5857else
5858  cat >conftest.$ac_ext <<_ACEOF
5859/* confdefs.h.  */
5860_ACEOF
5861cat confdefs.h >>conftest.$ac_ext
5862cat >>conftest.$ac_ext <<_ACEOF
5863/* end confdefs.h.  */
5864#include <stdlib.h>
5865#include <stdarg.h>
5866#include <string.h>
5867#include <float.h>
5868
5869int
5870main ()
5871{
5872
5873  ;
5874  return 0;
5875}
5876_ACEOF
5877rm -f conftest.$ac_objext
5878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879  (eval $ac_compile) 2>conftest.er1
5880  ac_status=$?
5881  grep -v '^ *+' conftest.er1 >conftest.err
5882  rm -f conftest.er1
5883  cat conftest.err >&5
5884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885  (exit $ac_status); } &&
5886         { ac_try='test -z "$ac_c_werror_flag"
5887                         || test ! -s conftest.err'
5888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889  (eval $ac_try) 2>&5
5890  ac_status=$?
5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892  (exit $ac_status); }; } &&
5893         { ac_try='test -s conftest.$ac_objext'
5894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895  (eval $ac_try) 2>&5
5896  ac_status=$?
5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898  (exit $ac_status); }; }; then
5899  ac_cv_header_stdc=yes
5900else
5901  echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904ac_cv_header_stdc=no
5905fi
5906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907
5908if test $ac_cv_header_stdc = yes; then
5909  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5910  cat >conftest.$ac_ext <<_ACEOF
5911/* confdefs.h.  */
5912_ACEOF
5913cat confdefs.h >>conftest.$ac_ext
5914cat >>conftest.$ac_ext <<_ACEOF
5915/* end confdefs.h.  */
5916#include <string.h>
5917
5918_ACEOF
5919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5920  $EGREP "memchr" >/dev/null 2>&1; then
5921  :
5922else
5923  ac_cv_header_stdc=no
5924fi
5925rm -f conftest*
5926
5927fi
5928
5929if test $ac_cv_header_stdc = yes; then
5930  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5931  cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h.  */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h.  */
5937#include <stdlib.h>
5938
5939_ACEOF
5940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5941  $EGREP "free" >/dev/null 2>&1; then
5942  :
5943else
5944  ac_cv_header_stdc=no
5945fi
5946rm -f conftest*
5947
5948fi
5949
5950if test $ac_cv_header_stdc = yes; then
5951  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5952  if test "$cross_compiling" = yes; then
5953  :
5954else
5955  cat >conftest.$ac_ext <<_ACEOF
5956/* confdefs.h.  */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
5960/* end confdefs.h.  */
5961#include <ctype.h>
5962#if ((' ' & 0x0FF) == 0x020)
5963# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5964# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5965#else
5966# define ISLOWER(c) \
5967                   (('a' <= (c) && (c) <= 'i') \
5968                     || ('j' <= (c) && (c) <= 'r') \
5969                     || ('s' <= (c) && (c) <= 'z'))
5970# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5971#endif
5972
5973#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5974int
5975main ()
5976{
5977  int i;
5978  for (i = 0; i < 256; i++)
5979    if (XOR (islower (i), ISLOWER (i))
5980        || toupper (i) != TOUPPER (i))
5981      exit(2);
5982  exit (0);
5983}
5984_ACEOF
5985rm -f conftest$ac_exeext
5986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987  (eval $ac_link) 2>&5
5988  ac_status=$?
5989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992  (eval $ac_try) 2>&5
5993  ac_status=$?
5994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995  (exit $ac_status); }; }; then
5996  :
5997else
5998  echo "$as_me: program exited with status $ac_status" >&5
5999echo "$as_me: failed program was:" >&5
6000sed 's/^/| /' conftest.$ac_ext >&5
6001
6002( exit $ac_status )
6003ac_cv_header_stdc=no
6004fi
6005rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6006fi
6007fi
6008fi
6009echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6010echo "${ECHO_T}$ac_cv_header_stdc" >&6
6011if test $ac_cv_header_stdc = yes; then
6012
6013cat >>confdefs.h <<\_ACEOF
6014#define STDC_HEADERS 1
6015_ACEOF
6016
6017fi
6018
6019# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6030                  inttypes.h stdint.h unistd.h
6031do
6032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6033echo "$as_me:$LINENO: checking for $ac_header" >&5
6034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6035if eval "test \"\${$as_ac_Header+set}\" = set"; then
6036  echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038  cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h.  */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h.  */
6044$ac_includes_default
6045
6046#include <$ac_header>
6047_ACEOF
6048rm -f conftest.$ac_objext
6049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6050  (eval $ac_compile) 2>conftest.er1
6051  ac_status=$?
6052  grep -v '^ *+' conftest.er1 >conftest.err
6053  rm -f conftest.er1
6054  cat conftest.err >&5
6055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056  (exit $ac_status); } &&
6057         { ac_try='test -z "$ac_c_werror_flag"
6058                         || test ! -s conftest.err'
6059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060  (eval $ac_try) 2>&5
6061  ac_status=$?
6062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063  (exit $ac_status); }; } &&
6064         { ac_try='test -s conftest.$ac_objext'
6065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066  (eval $ac_try) 2>&5
6067  ac_status=$?
6068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069  (exit $ac_status); }; }; then
6070  eval "$as_ac_Header=yes"
6071else
6072  echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075eval "$as_ac_Header=no"
6076fi
6077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6078fi
6079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6081if test `eval echo '${'$as_ac_Header'}'` = yes; then
6082  cat >>confdefs.h <<_ACEOF
6083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6084_ACEOF
6085
6086fi
6087
6088done
6089
6090
6091
6092for ac_header in dlfcn.h
6093do
6094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6095if eval "test \"\${$as_ac_Header+set}\" = set"; then
6096  echo "$as_me:$LINENO: checking for $ac_header" >&5
6097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6098if eval "test \"\${$as_ac_Header+set}\" = set"; then
6099  echo $ECHO_N "(cached) $ECHO_C" >&6
6100fi
6101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6103else
6104  # Is the header compilable?
6105echo "$as_me:$LINENO: checking $ac_header usability" >&5
6106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6107cat >conftest.$ac_ext <<_ACEOF
6108/* confdefs.h.  */
6109_ACEOF
6110cat confdefs.h >>conftest.$ac_ext
6111cat >>conftest.$ac_ext <<_ACEOF
6112/* end confdefs.h.  */
6113$ac_includes_default
6114#include <$ac_header>
6115_ACEOF
6116rm -f conftest.$ac_objext
6117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118  (eval $ac_compile) 2>conftest.er1
6119  ac_status=$?
6120  grep -v '^ *+' conftest.er1 >conftest.err
6121  rm -f conftest.er1
6122  cat conftest.err >&5
6123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124  (exit $ac_status); } &&
6125         { ac_try='test -z "$ac_c_werror_flag"
6126                         || test ! -s conftest.err'
6127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128  (eval $ac_try) 2>&5
6129  ac_status=$?
6130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131  (exit $ac_status); }; } &&
6132         { ac_try='test -s conftest.$ac_objext'
6133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134  (eval $ac_try) 2>&5
6135  ac_status=$?
6136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137  (exit $ac_status); }; }; then
6138  ac_header_compiler=yes
6139else
6140  echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143ac_header_compiler=no
6144fi
6145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6147echo "${ECHO_T}$ac_header_compiler" >&6
6148
6149# Is the header present?
6150echo "$as_me:$LINENO: checking $ac_header presence" >&5
6151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6152cat >conftest.$ac_ext <<_ACEOF
6153/* confdefs.h.  */
6154_ACEOF
6155cat confdefs.h >>conftest.$ac_ext
6156cat >>conftest.$ac_ext <<_ACEOF
6157/* end confdefs.h.  */
6158#include <$ac_header>
6159_ACEOF
6160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6161  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6162  ac_status=$?
6163  grep -v '^ *+' conftest.er1 >conftest.err
6164  rm -f conftest.er1
6165  cat conftest.err >&5
6166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167  (exit $ac_status); } >/dev/null; then
6168  if test -s conftest.err; then
6169    ac_cpp_err=$ac_c_preproc_warn_flag
6170    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6171  else
6172    ac_cpp_err=
6173  fi
6174else
6175  ac_cpp_err=yes
6176fi
6177if test -z "$ac_cpp_err"; then
6178  ac_header_preproc=yes
6179else
6180  echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183  ac_header_preproc=no
6184fi
6185rm -f conftest.err conftest.$ac_ext
6186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6187echo "${ECHO_T}$ac_header_preproc" >&6
6188
6189# So?  What about this header?
6190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6191  yes:no: )
6192    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6194    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6196    ac_header_preproc=yes
6197    ;;
6198  no:yes:* )
6199    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6201    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6202echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6203    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6205    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6206echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6207    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6209    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6211    (
6212      cat <<\_ASBOX
6213## --------------------------------------------------------------- ##
6214## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6215## --------------------------------------------------------------- ##
6216_ASBOX
6217    ) |
6218      sed "s/^/$as_me: WARNING:     /" >&2
6219    ;;
6220esac
6221echo "$as_me:$LINENO: checking for $ac_header" >&5
6222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6223if eval "test \"\${$as_ac_Header+set}\" = set"; then
6224  echo $ECHO_N "(cached) $ECHO_C" >&6
6225else
6226  eval "$as_ac_Header=\$ac_header_preproc"
6227fi
6228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6230
6231fi
6232if test `eval echo '${'$as_ac_Header'}'` = yes; then
6233  cat >>confdefs.h <<_ACEOF
6234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6235_ACEOF
6236
6237fi
6238
6239done
6240
6241ac_ext=cc
6242ac_cpp='$CXXCPP $CPPFLAGS'
6243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6246if test -n "$ac_tool_prefix"; then
6247  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6248  do
6249    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6251echo "$as_me:$LINENO: checking for $ac_word" >&5
6252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253if test "${ac_cv_prog_CXX+set}" = set; then
6254  echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256  if test -n "$CXX"; then
6257  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262  IFS=$as_save_IFS
6263  test -z "$as_dir" && as_dir=.
6264  for ac_exec_ext in '' $ac_executable_extensions; do
6265  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268    break 2
6269  fi
6270done
6271done
6272
6273fi
6274fi
6275CXX=$ac_cv_prog_CXX
6276if test -n "$CXX"; then
6277  echo "$as_me:$LINENO: result: $CXX" >&5
6278echo "${ECHO_T}$CXX" >&6
6279else
6280  echo "$as_me:$LINENO: result: no" >&5
6281echo "${ECHO_T}no" >&6
6282fi
6283
6284    test -n "$CXX" && break
6285  done
6286fi
6287if test -z "$CXX"; then
6288  ac_ct_CXX=$CXX
6289  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6290do
6291  # Extract the first word of "$ac_prog", so it can be a program name with args.
6292set dummy $ac_prog; ac_word=$2
6293echo "$as_me:$LINENO: checking for $ac_word" >&5
6294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6295if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6296  echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298  if test -n "$ac_ct_CXX"; then
6299  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6300else
6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302for as_dir in $PATH
6303do
6304  IFS=$as_save_IFS
6305  test -z "$as_dir" && as_dir=.
6306  for ac_exec_ext in '' $ac_executable_extensions; do
6307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308    ac_cv_prog_ac_ct_CXX="$ac_prog"
6309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310    break 2
6311  fi
6312done
6313done
6314
6315fi
6316fi
6317ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6318if test -n "$ac_ct_CXX"; then
6319  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6320echo "${ECHO_T}$ac_ct_CXX" >&6
6321else
6322  echo "$as_me:$LINENO: result: no" >&5
6323echo "${ECHO_T}no" >&6
6324fi
6325
6326  test -n "$ac_ct_CXX" && break
6327done
6328test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6329
6330  CXX=$ac_ct_CXX
6331fi
6332
6333
6334# Provide some information about the compiler.
6335echo "$as_me:$LINENO:" \
6336     "checking for C++ compiler version" >&5
6337ac_compiler=`set X $ac_compile; echo $2`
6338{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6339  (eval $ac_compiler --version </dev/null >&5) 2>&5
6340  ac_status=$?
6341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342  (exit $ac_status); }
6343{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6344  (eval $ac_compiler -v </dev/null >&5) 2>&5
6345  ac_status=$?
6346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347  (exit $ac_status); }
6348{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6349  (eval $ac_compiler -V </dev/null >&5) 2>&5
6350  ac_status=$?
6351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352  (exit $ac_status); }
6353
6354echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6355echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6356if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6357  echo $ECHO_N "(cached) $ECHO_C" >&6
6358else
6359  cat >conftest.$ac_ext <<_ACEOF
6360/* confdefs.h.  */
6361_ACEOF
6362cat confdefs.h >>conftest.$ac_ext
6363cat >>conftest.$ac_ext <<_ACEOF
6364/* end confdefs.h.  */
6365
6366int
6367main ()
6368{
6369#ifndef __GNUC__
6370       choke me
6371#endif
6372
6373  ;
6374  return 0;
6375}
6376_ACEOF
6377rm -f conftest.$ac_objext
6378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6379  (eval $ac_compile) 2>conftest.er1
6380  ac_status=$?
6381  grep -v '^ *+' conftest.er1 >conftest.err
6382  rm -f conftest.er1
6383  cat conftest.err >&5
6384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385  (exit $ac_status); } &&
6386         { ac_try='test -z "$ac_cxx_werror_flag"
6387                         || test ! -s conftest.err'
6388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389  (eval $ac_try) 2>&5
6390  ac_status=$?
6391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392  (exit $ac_status); }; } &&
6393         { ac_try='test -s conftest.$ac_objext'
6394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395  (eval $ac_try) 2>&5
6396  ac_status=$?
6397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398  (exit $ac_status); }; }; then
6399  ac_compiler_gnu=yes
6400else
6401  echo "$as_me: failed program was:" >&5
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
6404ac_compiler_gnu=no
6405fi
6406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6407ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6408
6409fi
6410echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6411echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6412GXX=`test $ac_compiler_gnu = yes && echo yes`
6413ac_test_CXXFLAGS=${CXXFLAGS+set}
6414ac_save_CXXFLAGS=$CXXFLAGS
6415CXXFLAGS="-g"
6416echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6417echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6418if test "${ac_cv_prog_cxx_g+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  cat >conftest.$ac_ext <<_ACEOF
6422/* confdefs.h.  */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
6426/* end confdefs.h.  */
6427
6428int
6429main ()
6430{
6431
6432  ;
6433  return 0;
6434}
6435_ACEOF
6436rm -f conftest.$ac_objext
6437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6438  (eval $ac_compile) 2>conftest.er1
6439  ac_status=$?
6440  grep -v '^ *+' conftest.er1 >conftest.err
6441  rm -f conftest.er1
6442  cat conftest.err >&5
6443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444  (exit $ac_status); } &&
6445         { ac_try='test -z "$ac_cxx_werror_flag"
6446                         || test ! -s conftest.err'
6447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448  (eval $ac_try) 2>&5
6449  ac_status=$?
6450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451  (exit $ac_status); }; } &&
6452         { ac_try='test -s conftest.$ac_objext'
6453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454  (eval $ac_try) 2>&5
6455  ac_status=$?
6456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457  (exit $ac_status); }; }; then
6458  ac_cv_prog_cxx_g=yes
6459else
6460  echo "$as_me: failed program was:" >&5
6461sed 's/^/| /' conftest.$ac_ext >&5
6462
6463ac_cv_prog_cxx_g=no
6464fi
6465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6466fi
6467echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6468echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6469if test "$ac_test_CXXFLAGS" = set; then
6470  CXXFLAGS=$ac_save_CXXFLAGS
6471elif test $ac_cv_prog_cxx_g = yes; then
6472  if test "$GXX" = yes; then
6473    CXXFLAGS="-g -O2"
6474  else
6475    CXXFLAGS="-g"
6476  fi
6477else
6478  if test "$GXX" = yes; then
6479    CXXFLAGS="-O2"
6480  else
6481    CXXFLAGS=
6482  fi
6483fi
6484for ac_declaration in \
6485   '' \
6486   'extern "C" void std::exit (int) throw (); using std::exit;' \
6487   'extern "C" void std::exit (int); using std::exit;' \
6488   'extern "C" void exit (int) throw ();' \
6489   'extern "C" void exit (int);' \
6490   'void exit (int);'
6491do
6492  cat >conftest.$ac_ext <<_ACEOF
6493/* confdefs.h.  */
6494_ACEOF
6495cat confdefs.h >>conftest.$ac_ext
6496cat >>conftest.$ac_ext <<_ACEOF
6497/* end confdefs.h.  */
6498$ac_declaration
6499#include <stdlib.h>
6500int
6501main ()
6502{
6503exit (42);
6504  ;
6505  return 0;
6506}
6507_ACEOF
6508rm -f conftest.$ac_objext
6509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510  (eval $ac_compile) 2>conftest.er1
6511  ac_status=$?
6512  grep -v '^ *+' conftest.er1 >conftest.err
6513  rm -f conftest.er1
6514  cat conftest.err >&5
6515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516  (exit $ac_status); } &&
6517         { ac_try='test -z "$ac_cxx_werror_flag"
6518                         || test ! -s conftest.err'
6519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520  (eval $ac_try) 2>&5
6521  ac_status=$?
6522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523  (exit $ac_status); }; } &&
6524         { ac_try='test -s conftest.$ac_objext'
6525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526  (eval $ac_try) 2>&5
6527  ac_status=$?
6528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529  (exit $ac_status); }; }; then
6530  :
6531else
6532  echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535continue
6536fi
6537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6538  cat >conftest.$ac_ext <<_ACEOF
6539/* confdefs.h.  */
6540_ACEOF
6541cat confdefs.h >>conftest.$ac_ext
6542cat >>conftest.$ac_ext <<_ACEOF
6543/* end confdefs.h.  */
6544$ac_declaration
6545int
6546main ()
6547{
6548exit (42);
6549  ;
6550  return 0;
6551}
6552_ACEOF
6553rm -f conftest.$ac_objext
6554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555  (eval $ac_compile) 2>conftest.er1
6556  ac_status=$?
6557  grep -v '^ *+' conftest.er1 >conftest.err
6558  rm -f conftest.er1
6559  cat conftest.err >&5
6560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561  (exit $ac_status); } &&
6562         { ac_try='test -z "$ac_cxx_werror_flag"
6563                         || test ! -s conftest.err'
6564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565  (eval $ac_try) 2>&5
6566  ac_status=$?
6567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568  (exit $ac_status); }; } &&
6569         { ac_try='test -s conftest.$ac_objext'
6570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571  (eval $ac_try) 2>&5
6572  ac_status=$?
6573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574  (exit $ac_status); }; }; then
6575  break
6576else
6577  echo "$as_me: failed program was:" >&5
6578sed 's/^/| /' conftest.$ac_ext >&5
6579
6580fi
6581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6582done
6583rm -f conftest*
6584if test -n "$ac_declaration"; then
6585  echo '#ifdef __cplusplus' >>confdefs.h
6586  echo $ac_declaration      >>confdefs.h
6587  echo '#endif'             >>confdefs.h
6588fi
6589
6590ac_ext=cc
6591ac_cpp='$CXXCPP $CPPFLAGS'
6592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6595
6596depcc="$CXX"  am_compiler_list=
6597
6598echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6599echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6600if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6601  echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6604  # We make a subdir and do the tests there.  Otherwise we can end up
6605  # making bogus files that we don't know about and never remove.  For
6606  # instance it was reported that on HP-UX the gcc test will end up
6607  # making a dummy file named `D' -- because `-MD' means `put the output
6608  # in D'.
6609  mkdir conftest.dir
6610  # Copy depcomp to subdir because otherwise we won't find it if we're
6611  # using a relative directory.
6612  cp "$am_depcomp" conftest.dir
6613  cd conftest.dir
6614  # We will build objects and dependencies in a subdirectory because
6615  # it helps to detect inapplicable dependency modes.  For instance
6616  # both Tru64's cc and ICC support -MD to output dependencies as a
6617  # side effect of compilation, but ICC will put the dependencies in
6618  # the current directory while Tru64 will put them in the object
6619  # directory.
6620  mkdir sub
6621
6622  am_cv_CXX_dependencies_compiler_type=none
6623  if test "$am_compiler_list" = ""; then
6624     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6625  fi
6626  for depmode in $am_compiler_list; do
6627    # Setup a source with many dependencies, because some compilers
6628    # like to wrap large dependency lists on column 80 (with \), and
6629    # we should not choose a depcomp mode which is confused by this.
6630    #
6631    # We need to recreate these files for each test, as the compiler may
6632    # overwrite some of them when testing with obscure command lines.
6633    # This happens at least with the AIX C compiler.
6634    : > sub/conftest.c
6635    for i in 1 2 3 4 5 6; do
6636      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6637      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6638      # Solaris 8's {/usr,}/bin/sh.
6639      touch sub/conftst$i.h
6640    done
6641    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6642
6643    case $depmode in
6644    nosideeffect)
6645      # after this tag, mechanisms are not by side-effect, so they'll
6646      # only be used when explicitly requested
6647      if test "x$enable_dependency_tracking" = xyes; then
6648        continue
6649      else
6650        break
6651      fi
6652      ;;
6653    none) break ;;
6654    esac
6655    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6656    # mode.  It turns out that the SunPro C++ compiler does not properly
6657    # handle `-M -o', and we need to detect this.
6658    if depmode=$depmode \
6659       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6660       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6661       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6662         >/dev/null 2>conftest.err &&
6663       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6664       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6665       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6666      # icc doesn't choke on unknown options, it will just issue warnings
6667      # or remarks (even with -Werror).  So we grep stderr for any message
6668      # that says an option was ignored or not supported.
6669      # When given -MP, icc 7.0 and 7.1 complain thusly:
6670      #   icc: Command line warning: ignoring option '-M'; no argument required
6671      # The diagnosis changed in icc 8.0:
6672      #   icc: Command line remark: option '-MP' not supported
6673      if (grep 'ignoring option' conftest.err ||
6674          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6675        am_cv_CXX_dependencies_compiler_type=$depmode
6676        break
6677      fi
6678    fi
6679  done
6680
6681  cd ..
6682  rm -rf conftest.dir
6683else
6684  am_cv_CXX_dependencies_compiler_type=none
6685fi
6686
6687fi
6688echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6689echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6690CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6691
6692
6693
6694if
6695  test "x$enable_dependency_tracking" != xno \
6696  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6697  am__fastdepCXX_TRUE=
6698  am__fastdepCXX_FALSE='#'
6699else
6700  am__fastdepCXX_TRUE='#'
6701  am__fastdepCXX_FALSE=
6702fi
6703
6704
6705
6706
6707if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6708    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6709    (test "X$CXX" != "Xg++"))) ; then
6710  ac_ext=cc
6711ac_cpp='$CXXCPP $CPPFLAGS'
6712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6715echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6716echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6717if test -z "$CXXCPP"; then
6718  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6719  echo $ECHO_N "(cached) $ECHO_C" >&6
6720else
6721      # Double quotes because CXXCPP needs to be expanded
6722    for CXXCPP in "$CXX -E" "/lib/cpp"
6723    do
6724      ac_preproc_ok=false
6725for ac_cxx_preproc_warn_flag in '' yes
6726do
6727  # Use a header file that comes with gcc, so configuring glibc
6728  # with a fresh cross-compiler works.
6729  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6730  # <limits.h> exists even on freestanding compilers.
6731  # On the NeXT, cc -E runs the code through the compiler's parser,
6732  # not just through cpp. "Syntax error" is here to catch this case.
6733  cat >conftest.$ac_ext <<_ACEOF
6734/* confdefs.h.  */
6735_ACEOF
6736cat confdefs.h >>conftest.$ac_ext
6737cat >>conftest.$ac_ext <<_ACEOF
6738/* end confdefs.h.  */
6739#ifdef __STDC__
6740# include <limits.h>
6741#else
6742# include <assert.h>
6743#endif
6744                     Syntax error
6745_ACEOF
6746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6747  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6748  ac_status=$?
6749  grep -v '^ *+' conftest.er1 >conftest.err
6750  rm -f conftest.er1
6751  cat conftest.err >&5
6752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753  (exit $ac_status); } >/dev/null; then
6754  if test -s conftest.err; then
6755    ac_cpp_err=$ac_cxx_preproc_warn_flag
6756    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6757  else
6758    ac_cpp_err=
6759  fi
6760else
6761  ac_cpp_err=yes
6762fi
6763if test -z "$ac_cpp_err"; then
6764  :
6765else
6766  echo "$as_me: failed program was:" >&5
6767sed 's/^/| /' conftest.$ac_ext >&5
6768
6769  # Broken: fails on valid input.
6770continue
6771fi
6772rm -f conftest.err conftest.$ac_ext
6773
6774  # OK, works on sane cases.  Now check whether non-existent headers
6775  # can be detected and how.
6776  cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h.  */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h.  */
6782#include <ac_nonexistent.h>
6783_ACEOF
6784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6785  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6786  ac_status=$?
6787  grep -v '^ *+' conftest.er1 >conftest.err
6788  rm -f conftest.er1
6789  cat conftest.err >&5
6790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791  (exit $ac_status); } >/dev/null; then
6792  if test -s conftest.err; then
6793    ac_cpp_err=$ac_cxx_preproc_warn_flag
6794    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6795  else
6796    ac_cpp_err=
6797  fi
6798else
6799  ac_cpp_err=yes
6800fi
6801if test -z "$ac_cpp_err"; then
6802  # Broken: success on invalid input.
6803continue
6804else
6805  echo "$as_me: failed program was:" >&5
6806sed 's/^/| /' conftest.$ac_ext >&5
6807
6808  # Passes both tests.
6809ac_preproc_ok=:
6810break
6811fi
6812rm -f conftest.err conftest.$ac_ext
6813
6814done
6815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6816rm -f conftest.err conftest.$ac_ext
6817if $ac_preproc_ok; then
6818  break
6819fi
6820
6821    done
6822    ac_cv_prog_CXXCPP=$CXXCPP
6823
6824fi
6825  CXXCPP=$ac_cv_prog_CXXCPP
6826else
6827  ac_cv_prog_CXXCPP=$CXXCPP
6828fi
6829echo "$as_me:$LINENO: result: $CXXCPP" >&5
6830echo "${ECHO_T}$CXXCPP" >&6
6831ac_preproc_ok=false
6832for ac_cxx_preproc_warn_flag in '' yes
6833do
6834  # Use a header file that comes with gcc, so configuring glibc
6835  # with a fresh cross-compiler works.
6836  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837  # <limits.h> exists even on freestanding compilers.
6838  # On the NeXT, cc -E runs the code through the compiler's parser,
6839  # not just through cpp. "Syntax error" is here to catch this case.
6840  cat >conftest.$ac_ext <<_ACEOF
6841/* confdefs.h.  */
6842_ACEOF
6843cat confdefs.h >>conftest.$ac_ext
6844cat >>conftest.$ac_ext <<_ACEOF
6845/* end confdefs.h.  */
6846#ifdef __STDC__
6847# include <limits.h>
6848#else
6849# include <assert.h>
6850#endif
6851                     Syntax error
6852_ACEOF
6853if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6854  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6855  ac_status=$?
6856  grep -v '^ *+' conftest.er1 >conftest.err
6857  rm -f conftest.er1
6858  cat conftest.err >&5
6859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860  (exit $ac_status); } >/dev/null; then
6861  if test -s conftest.err; then
6862    ac_cpp_err=$ac_cxx_preproc_warn_flag
6863    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6864  else
6865    ac_cpp_err=
6866  fi
6867else
6868  ac_cpp_err=yes
6869fi
6870if test -z "$ac_cpp_err"; then
6871  :
6872else
6873  echo "$as_me: failed program was:" >&5
6874sed 's/^/| /' conftest.$ac_ext >&5
6875
6876  # Broken: fails on valid input.
6877continue
6878fi
6879rm -f conftest.err conftest.$ac_ext
6880
6881  # OK, works on sane cases.  Now check whether non-existent headers
6882  # can be detected and how.
6883  cat >conftest.$ac_ext <<_ACEOF
6884/* confdefs.h.  */
6885_ACEOF
6886cat confdefs.h >>conftest.$ac_ext
6887cat >>conftest.$ac_ext <<_ACEOF
6888/* end confdefs.h.  */
6889#include <ac_nonexistent.h>
6890_ACEOF
6891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6892  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6893  ac_status=$?
6894  grep -v '^ *+' conftest.er1 >conftest.err
6895  rm -f conftest.er1
6896  cat conftest.err >&5
6897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898  (exit $ac_status); } >/dev/null; then
6899  if test -s conftest.err; then
6900    ac_cpp_err=$ac_cxx_preproc_warn_flag
6901    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6902  else
6903    ac_cpp_err=
6904  fi
6905else
6906  ac_cpp_err=yes
6907fi
6908if test -z "$ac_cpp_err"; then
6909  # Broken: success on invalid input.
6910continue
6911else
6912  echo "$as_me: failed program was:" >&5
6913sed 's/^/| /' conftest.$ac_ext >&5
6914
6915  # Passes both tests.
6916ac_preproc_ok=:
6917break
6918fi
6919rm -f conftest.err conftest.$ac_ext
6920
6921done
6922# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6923rm -f conftest.err conftest.$ac_ext
6924if $ac_preproc_ok; then
6925  :
6926else
6927  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6928See \`config.log' for more details." >&5
6929echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6930See \`config.log' for more details." >&2;}
6931   { (exit 1); exit 1; }; }
6932fi
6933
6934ac_ext=cc
6935ac_cpp='$CXXCPP $CPPFLAGS'
6936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6939
6940fi
6941
6942
6943
6944# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6945
6946# find the maximum length of command line arguments
6947echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6948echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6949if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6950  echo $ECHO_N "(cached) $ECHO_C" >&6
6951else
6952    i=0
6953  teststring="ABCD"
6954
6955  case $build_os in
6956  msdosdjgpp*)
6957    # On DJGPP, this test can blow up pretty badly due to problems in libc
6958    # (any single argument exceeding 2000 bytes causes a buffer overrun
6959    # during glob expansion).  Even if it were fixed, the result of this
6960    # check would be larger than it should be.
6961    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6962    ;;
6963
6964  gnu*)
6965    # Under GNU Hurd, this test is not required because there is
6966    # no limit to the length of command line arguments.
6967    # Libtool will interpret -1 as no limit whatsoever
6968    lt_cv_sys_max_cmd_len=-1;
6969    ;;
6970
6971  cygwin* | mingw*)
6972    # On Win9x/ME, this test blows up -- it succeeds, but takes
6973    # about 5 minutes as the teststring grows exponentially.
6974    # Worse, since 9x/ME are not pre-emptively multitasking,
6975    # you end up with a "frozen" computer, even though with patience
6976    # the test eventually succeeds (with a max line length of 256k).
6977    # Instead, let's just punt: use the minimum linelength reported by
6978    # all of the supported platforms: 8192 (on NT/2K/XP).
6979    lt_cv_sys_max_cmd_len=8192;
6980    ;;
6981
6982  amigaos*)
6983    # On AmigaOS with pdksh, this test takes hours, literally.
6984    # So we just punt and use a minimum line length of 8192.
6985    lt_cv_sys_max_cmd_len=8192;
6986    ;;
6987
6988  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6989    # This has been around since 386BSD, at least.  Likely further.
6990    if test -x /sbin/sysctl; then
6991      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6992    elif test -x /usr/sbin/sysctl; then
6993      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6994    else
6995      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6996    fi
6997    # And add a safety zone
6998    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6999    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7000    ;;
7001
7002  interix*)
7003    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7004    lt_cv_sys_max_cmd_len=196608
7005    ;;
7006
7007  osf*)
7008    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7009    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7010    # nice to cause kernel panics so lets avoid the loop below.
7011    # First set a reasonable default.
7012    lt_cv_sys_max_cmd_len=16384
7013    #
7014    if test -x /sbin/sysconfig; then
7015      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7016        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7017      esac
7018    fi
7019    ;;
7020  sco3.2v5*)
7021    lt_cv_sys_max_cmd_len=102400
7022    ;;
7023  sysv5* | sco5v6* | sysv4.2uw2*)
7024    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7025    if test -n "$kargmax"; then
7026      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7027    else
7028      lt_cv_sys_max_cmd_len=32768
7029    fi
7030    ;;
7031  *)
7032    # If test is not a shell built-in, we'll probably end up computing a
7033    # maximum length that is only half of the actual maximum length, but
7034    # we can't tell.
7035    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7036    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7037               = "XX$teststring") >/dev/null 2>&1 &&
7038            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7039            lt_cv_sys_max_cmd_len=$new_result &&
7040            test $i != 17 # 1/2 MB should be enough
7041    do
7042      i=`expr $i + 1`
7043      teststring=$teststring$teststring
7044    done
7045    teststring=
7046    # Add a significant safety factor because C++ compilers can tack on massive
7047    # amounts of additional arguments before passing them to the linker.
7048    # It appears as though 1/2 is a usable value.
7049    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7050    ;;
7051  esac
7052
7053fi
7054
7055if test -n $lt_cv_sys_max_cmd_len ; then
7056  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7057echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7058else
7059  echo "$as_me:$LINENO: result: none" >&5
7060echo "${ECHO_T}none" >&6
7061fi
7062
7063
7064
7065
7066# Check for command to grab the raw symbol name followed by C symbol from nm.
7067echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7068echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7069if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7070  echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072
7073# These are sane defaults that work on at least a few old systems.
7074# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7075
7076# Character class describing NM global symbol codes.
7077symcode='[BCDEGRST]'
7078
7079# Regexp to match symbols that can be accessed directly from C.
7080sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7081
7082# Transform an extracted symbol line into a proper C declaration
7083lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7084
7085# Transform an extracted symbol line into symbol name and symbol address
7086lt_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
7088# Define system-specific variables.
7089case $host_os in
7090aix*)
7091  symcode='[BCDT]'
7092  ;;
7093cygwin* | mingw* | pw32*)
7094  symcode='[ABCDGISTW]'
7095  ;;
7096hpux*) # Its linker distinguishes data from code symbols
7097  if test "$host_cpu" = ia64; then
7098    symcode='[ABCDEGRST]'
7099  fi
7100  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7101  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'"
7102  ;;
7103linux*)
7104  if test "$host_cpu" = ia64; then
7105    symcode='[ABCDGIRSTW]'
7106    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7107    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'"
7108  fi
7109  ;;
7110irix* | nonstopux*)
7111  symcode='[BCDEGRST]'
7112  ;;
7113osf*)
7114  symcode='[BCDEGQRST]'
7115  ;;
7116solaris*)
7117  symcode='[BDRT]'
7118  ;;
7119sco3.2v5*)
7120  symcode='[DT]'
7121  ;;
7122sysv4.2uw2*)
7123  symcode='[DT]'
7124  ;;
7125sysv5* | sco5v6* | unixware* | OpenUNIX*)
7126  symcode='[ABDT]'
7127  ;;
7128sysv4)
7129  symcode='[DFNSTU]'
7130  ;;
7131esac
7132
7133# Handle CRLF in mingw tool chain
7134opt_cr=
7135case $build_os in
7136mingw*)
7137  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7138  ;;
7139esac
7140
7141# If we're using GNU nm, then use its standard symbol codes.
7142case `$NM -V 2>&1` in
7143*GNU* | *'with BFD'*)
7144  symcode='[ABCDGIRSTW]' ;;
7145esac
7146
7147# Try without a prefix undercore, then with it.
7148for ac_symprfx in "" "_"; do
7149
7150  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7151  symxfrm="\\1 $ac_symprfx\\2 \\2"
7152
7153  # Write the raw and C identifiers.
7154  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7155
7156  # Check to see that the pipe works correctly.
7157  pipe_works=no
7158
7159  rm -f conftest*
7160  cat > conftest.$ac_ext <<EOF
7161#ifdef __cplusplus
7162extern "C" {
7163#endif
7164char nm_test_var;
7165void nm_test_func(){}
7166#ifdef __cplusplus
7167}
7168#endif
7169int main(){nm_test_var='a';nm_test_func();return(0);}
7170EOF
7171
7172  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7173  (eval $ac_compile) 2>&5
7174  ac_status=$?
7175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176  (exit $ac_status); }; then
7177    # Now try to grab the symbols.
7178    nlist=conftest.nm
7179    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7180  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); } && test -s "$nlist"; then
7184      # Try sorting and uniquifying the output.
7185      if sort "$nlist" | uniq > "$nlist"T; then
7186        mv -f "$nlist"T "$nlist"
7187      else
7188        rm -f "$nlist"T
7189      fi
7190
7191      # Make sure that we snagged all the symbols we need.
7192      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7193        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7194          cat <<EOF > conftest.$ac_ext
7195#ifdef __cplusplus
7196extern "C" {
7197#endif
7198
7199EOF
7200          # Now generate the symbol file.
7201          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7202
7203          cat <<EOF >> conftest.$ac_ext
7204#if defined (__STDC__) && __STDC__
7205# define lt_ptr_t void *
7206#else
7207# define lt_ptr_t char *
7208# define const
7209#endif
7210
7211/* The mapping between symbol names and symbols. */
7212const struct {
7213  const char *name;
7214  lt_ptr_t address;
7215}
7216lt_preloaded_symbols[] =
7217{
7218EOF
7219          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7220          cat <<\EOF >> conftest.$ac_ext
7221  {0, (lt_ptr_t) 0}
7222};
7223
7224#ifdef __cplusplus
7225}
7226#endif
7227EOF
7228          # Now try linking the two files.
7229          mv conftest.$ac_objext conftstm.$ac_objext
7230          lt_save_LIBS="$LIBS"
7231          lt_save_CFLAGS="$CFLAGS"
7232          LIBS="conftstm.$ac_objext"
7233          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7234          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7235  (eval $ac_link) 2>&5
7236  ac_status=$?
7237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7239            pipe_works=yes
7240          fi
7241          LIBS="$lt_save_LIBS"
7242          CFLAGS="$lt_save_CFLAGS"
7243        else
7244          echo "cannot find nm_test_func in $nlist" >&5
7245        fi
7246      else
7247        echo "cannot find nm_test_var in $nlist" >&5
7248      fi
7249    else
7250      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7251    fi
7252  else
7253    echo "$progname: failed program was:" >&5
7254    cat conftest.$ac_ext >&5
7255  fi
7256  rm -f conftest* conftst*
7257
7258  # Do not use the global_symbol_pipe unless it works.
7259  if test "$pipe_works" = yes; then
7260    break
7261  else
7262    lt_cv_sys_global_symbol_pipe=
7263  fi
7264done
7265
7266fi
7267
7268if test -z "$lt_cv_sys_global_symbol_pipe"; then
7269  lt_cv_sys_global_symbol_to_cdecl=
7270fi
7271if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7272  echo "$as_me:$LINENO: result: failed" >&5
7273echo "${ECHO_T}failed" >&6
7274else
7275  echo "$as_me:$LINENO: result: ok" >&5
7276echo "${ECHO_T}ok" >&6
7277fi
7278
7279echo "$as_me:$LINENO: checking for objdir" >&5
7280echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7281if test "${lt_cv_objdir+set}" = set; then
7282  echo $ECHO_N "(cached) $ECHO_C" >&6
7283else
7284  rm -f .libs 2>/dev/null
7285mkdir .libs 2>/dev/null
7286if test -d .libs; then
7287  lt_cv_objdir=.libs
7288else
7289  # MS-DOS does not allow filenames that begin with a dot.
7290  lt_cv_objdir=_libs
7291fi
7292rmdir .libs 2>/dev/null
7293fi
7294echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7295echo "${ECHO_T}$lt_cv_objdir" >&6
7296objdir=$lt_cv_objdir
7297
7298
7299
7300
7301
7302case $host_os in
7303aix3*)
7304  # AIX sometimes has problems with the GCC collect2 program.  For some
7305  # reason, if we set the COLLECT_NAMES environment variable, the problems
7306  # vanish in a puff of smoke.
7307  if test "X${COLLECT_NAMES+set}" != Xset; then
7308    COLLECT_NAMES=
7309    export COLLECT_NAMES
7310  fi
7311  ;;
7312esac
7313
7314# Sed substitution that helps us do robust quoting.  It backslashifies
7315# metacharacters that are still active within double-quoted strings.
7316Xsed='sed -e 1s/^X//'
7317sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7318
7319# Same as above, but do not quote variable references.
7320double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7321
7322# Sed substitution to delay expansion of an escaped shell variable in a
7323# double_quote_subst'ed string.
7324delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7325
7326# Sed substitution to avoid accidental globbing in evaled expressions
7327no_glob_subst='s/\*/\\\*/g'
7328
7329# Constants:
7330rm="rm -f"
7331
7332# Global variables:
7333default_ofile=libtool
7334can_build_shared=yes
7335
7336# All known linkers require a `.a' archive for static linking (except MSVC,
7337# which needs '.lib').
7338libext=a
7339ltmain="$ac_aux_dir/ltmain.sh"
7340ofile="$default_ofile"
7341with_gnu_ld="$lt_cv_prog_gnu_ld"
7342
7343if test -n "$ac_tool_prefix"; then
7344  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7345set dummy ${ac_tool_prefix}ar; ac_word=$2
7346echo "$as_me:$LINENO: checking for $ac_word" >&5
7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7348if test "${ac_cv_prog_AR+set}" = set; then
7349  echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351  if test -n "$AR"; then
7352  ac_cv_prog_AR="$AR" # Let the user override the test.
7353else
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357  IFS=$as_save_IFS
7358  test -z "$as_dir" && as_dir=.
7359  for ac_exec_ext in '' $ac_executable_extensions; do
7360  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361    ac_cv_prog_AR="${ac_tool_prefix}ar"
7362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363    break 2
7364  fi
7365done
7366done
7367
7368fi
7369fi
7370AR=$ac_cv_prog_AR
7371if test -n "$AR"; then
7372  echo "$as_me:$LINENO: result: $AR" >&5
7373echo "${ECHO_T}$AR" >&6
7374else
7375  echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
7377fi
7378
7379fi
7380if test -z "$ac_cv_prog_AR"; then
7381  ac_ct_AR=$AR
7382  # Extract the first word of "ar", so it can be a program name with args.
7383set dummy ar; ac_word=$2
7384echo "$as_me:$LINENO: checking for $ac_word" >&5
7385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7386if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7387  echo $ECHO_N "(cached) $ECHO_C" >&6
7388else
7389  if test -n "$ac_ct_AR"; then
7390  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7391else
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395  IFS=$as_save_IFS
7396  test -z "$as_dir" && as_dir=.
7397  for ac_exec_ext in '' $ac_executable_extensions; do
7398  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399    ac_cv_prog_ac_ct_AR="ar"
7400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401    break 2
7402  fi
7403done
7404done
7405
7406  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7407fi
7408fi
7409ac_ct_AR=$ac_cv_prog_ac_ct_AR
7410if test -n "$ac_ct_AR"; then
7411  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7412echo "${ECHO_T}$ac_ct_AR" >&6
7413else
7414  echo "$as_me:$LINENO: result: no" >&5
7415echo "${ECHO_T}no" >&6
7416fi
7417
7418  AR=$ac_ct_AR
7419else
7420  AR="$ac_cv_prog_AR"
7421fi
7422
7423if test -n "$ac_tool_prefix"; then
7424  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7425set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7426echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7428if test "${ac_cv_prog_RANLIB+set}" = set; then
7429  echo $ECHO_N "(cached) $ECHO_C" >&6
7430else
7431  if test -n "$RANLIB"; then
7432  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7433else
7434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437  IFS=$as_save_IFS
7438  test -z "$as_dir" && as_dir=.
7439  for ac_exec_ext in '' $ac_executable_extensions; do
7440  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7442    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443    break 2
7444  fi
7445done
7446done
7447
7448fi
7449fi
7450RANLIB=$ac_cv_prog_RANLIB
7451if test -n "$RANLIB"; then
7452  echo "$as_me:$LINENO: result: $RANLIB" >&5
7453echo "${ECHO_T}$RANLIB" >&6
7454else
7455  echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457fi
7458
7459fi
7460if test -z "$ac_cv_prog_RANLIB"; then
7461  ac_ct_RANLIB=$RANLIB
7462  # Extract the first word of "ranlib", so it can be a program name with args.
7463set dummy ranlib; ac_word=$2
7464echo "$as_me:$LINENO: checking for $ac_word" >&5
7465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7466if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7467  echo $ECHO_N "(cached) $ECHO_C" >&6
7468else
7469  if test -n "$ac_ct_RANLIB"; then
7470  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7471else
7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475  IFS=$as_save_IFS
7476  test -z "$as_dir" && as_dir=.
7477  for ac_exec_ext in '' $ac_executable_extensions; do
7478  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479    ac_cv_prog_ac_ct_RANLIB="ranlib"
7480    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7481    break 2
7482  fi
7483done
7484done
7485
7486  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7487fi
7488fi
7489ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7490if test -n "$ac_ct_RANLIB"; then
7491  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7492echo "${ECHO_T}$ac_ct_RANLIB" >&6
7493else
7494  echo "$as_me:$LINENO: result: no" >&5
7495echo "${ECHO_T}no" >&6
7496fi
7497
7498  RANLIB=$ac_ct_RANLIB
7499else
7500  RANLIB="$ac_cv_prog_RANLIB"
7501fi
7502
7503if test -n "$ac_tool_prefix"; then
7504  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7505set dummy ${ac_tool_prefix}strip; ac_word=$2
7506echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7508if test "${ac_cv_prog_STRIP+set}" = set; then
7509  echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511  if test -n "$STRIP"; then
7512  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7513else
7514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517  IFS=$as_save_IFS
7518  test -z "$as_dir" && as_dir=.
7519  for ac_exec_ext in '' $ac_executable_extensions; do
7520  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7522    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7523    break 2
7524  fi
7525done
7526done
7527
7528fi
7529fi
7530STRIP=$ac_cv_prog_STRIP
7531if test -n "$STRIP"; then
7532  echo "$as_me:$LINENO: result: $STRIP" >&5
7533echo "${ECHO_T}$STRIP" >&6
7534else
7535  echo "$as_me:$LINENO: result: no" >&5
7536echo "${ECHO_T}no" >&6
7537fi
7538
7539fi
7540if test -z "$ac_cv_prog_STRIP"; then
7541  ac_ct_STRIP=$STRIP
7542  # Extract the first word of "strip", so it can be a program name with args.
7543set dummy strip; ac_word=$2
7544echo "$as_me:$LINENO: checking for $ac_word" >&5
7545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7547  echo $ECHO_N "(cached) $ECHO_C" >&6
7548else
7549  if test -n "$ac_ct_STRIP"; then
7550  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7551else
7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555  IFS=$as_save_IFS
7556  test -z "$as_dir" && as_dir=.
7557  for ac_exec_ext in '' $ac_executable_extensions; do
7558  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559    ac_cv_prog_ac_ct_STRIP="strip"
7560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561    break 2
7562  fi
7563done
7564done
7565
7566  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7567fi
7568fi
7569ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7570if test -n "$ac_ct_STRIP"; then
7571  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7572echo "${ECHO_T}$ac_ct_STRIP" >&6
7573else
7574  echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6
7576fi
7577
7578  STRIP=$ac_ct_STRIP
7579else
7580  STRIP="$ac_cv_prog_STRIP"
7581fi
7582
7583
7584old_CC="$CC"
7585old_CFLAGS="$CFLAGS"
7586
7587# Set sane defaults for various variables
7588test -z "$AR" && AR=ar
7589test -z "$AR_FLAGS" && AR_FLAGS=cru
7590test -z "$AS" && AS=as
7591test -z "$CC" && CC=cc
7592test -z "$LTCC" && LTCC=$CC
7593test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7594test -z "$DLLTOOL" && DLLTOOL=dlltool
7595test -z "$LD" && LD=ld
7596test -z "$LN_S" && LN_S="ln -s"
7597test -z "$MAGIC_CMD" && MAGIC_CMD=file
7598test -z "$NM" && NM=nm
7599test -z "$SED" && SED=sed
7600test -z "$OBJDUMP" && OBJDUMP=objdump
7601test -z "$RANLIB" && RANLIB=:
7602test -z "$STRIP" && STRIP=:
7603test -z "$ac_objext" && ac_objext=o
7604
7605# Determine commands to create old-style static archives.
7606old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7607old_postinstall_cmds='chmod 644 $oldlib'
7608old_postuninstall_cmds=
7609
7610if test -n "$RANLIB"; then
7611  case $host_os in
7612  openbsd*)
7613    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7614    ;;
7615  *)
7616    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7617    ;;
7618  esac
7619  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7620fi
7621
7622for cc_temp in $compiler""; do
7623  case $cc_temp in
7624    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7625    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7626    \-*) ;;
7627    *) break;;
7628  esac
7629done
7630cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7631
7632
7633# Only perform the check for file, if the check method requires it
7634case $deplibs_check_method in
7635file_magic*)
7636  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7637    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7638echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7639if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7640  echo $ECHO_N "(cached) $ECHO_C" >&6
7641else
7642  case $MAGIC_CMD in
7643[\\/*] |  ?:[\\/]*)
7644  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7645  ;;
7646*)
7647  lt_save_MAGIC_CMD="$MAGIC_CMD"
7648  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7649  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7650  for ac_dir in $ac_dummy; do
7651    IFS="$lt_save_ifs"
7652    test -z "$ac_dir" && ac_dir=.
7653    if test -f $ac_dir/${ac_tool_prefix}file; then
7654      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7655      if test -n "$file_magic_test_file"; then
7656        case $deplibs_check_method in
7657        "file_magic "*)
7658          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7659          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7660          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7661            $EGREP "$file_magic_regex" > /dev/null; then
7662            :
7663          else
7664            cat <<EOF 1>&2
7665
7666*** Warning: the command libtool uses to detect shared libraries,
7667*** $file_magic_cmd, produces output that libtool cannot recognize.
7668*** The result is that libtool may fail to recognize shared libraries
7669*** as such.  This will affect the creation of libtool libraries that
7670*** depend on shared libraries, but programs linked with such libtool
7671*** libraries will work regardless of this problem.  Nevertheless, you
7672*** may want to report the problem to your system manager and/or to
7673*** bug-libtool@gnu.org
7674
7675EOF
7676          fi ;;
7677        esac
7678      fi
7679      break
7680    fi
7681  done
7682  IFS="$lt_save_ifs"
7683  MAGIC_CMD="$lt_save_MAGIC_CMD"
7684  ;;
7685esac
7686fi
7687
7688MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7689if test -n "$MAGIC_CMD"; then
7690  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7691echo "${ECHO_T}$MAGIC_CMD" >&6
7692else
7693  echo "$as_me:$LINENO: result: no" >&5
7694echo "${ECHO_T}no" >&6
7695fi
7696
7697if test -z "$lt_cv_path_MAGIC_CMD"; then
7698  if test -n "$ac_tool_prefix"; then
7699    echo "$as_me:$LINENO: checking for file" >&5
7700echo $ECHO_N "checking for file... $ECHO_C" >&6
7701if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7702  echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704  case $MAGIC_CMD in
7705[\\/*] |  ?:[\\/]*)
7706  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7707  ;;
7708*)
7709  lt_save_MAGIC_CMD="$MAGIC_CMD"
7710  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7711  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7712  for ac_dir in $ac_dummy; do
7713    IFS="$lt_save_ifs"
7714    test -z "$ac_dir" && ac_dir=.
7715    if test -f $ac_dir/file; then
7716      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7717      if test -n "$file_magic_test_file"; then
7718        case $deplibs_check_method in
7719        "file_magic "*)
7720          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7721          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7722          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7723            $EGREP "$file_magic_regex" > /dev/null; then
7724            :
7725          else
7726            cat <<EOF 1>&2
7727
7728*** Warning: the command libtool uses to detect shared libraries,
7729*** $file_magic_cmd, produces output that libtool cannot recognize.
7730*** The result is that libtool may fail to recognize shared libraries
7731*** as such.  This will affect the creation of libtool libraries that
7732*** depend on shared libraries, but programs linked with such libtool
7733*** libraries will work regardless of this problem.  Nevertheless, you
7734*** may want to report the problem to your system manager and/or to
7735*** bug-libtool@gnu.org
7736
7737EOF
7738          fi ;;
7739        esac
7740      fi
7741      break
7742    fi
7743  done
7744  IFS="$lt_save_ifs"
7745  MAGIC_CMD="$lt_save_MAGIC_CMD"
7746  ;;
7747esac
7748fi
7749
7750MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751if test -n "$MAGIC_CMD"; then
7752  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7753echo "${ECHO_T}$MAGIC_CMD" >&6
7754else
7755  echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6
7757fi
7758
7759  else
7760    MAGIC_CMD=:
7761  fi
7762fi
7763
7764  fi
7765  ;;
7766esac
7767
7768enable_dlopen=no
7769enable_win32_dll=no
7770
7771# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7772if test "${enable_libtool_lock+set}" = set; then
7773  enableval="$enable_libtool_lock"
7774
7775fi;
7776test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7777
7778
7779# Check whether --with-pic or --without-pic was given.
7780if test "${with_pic+set}" = set; then
7781  withval="$with_pic"
7782  pic_mode="$withval"
7783else
7784  pic_mode=default
7785fi;
7786test -z "$pic_mode" && pic_mode=default
7787
7788# Use C for the default configuration in the libtool script
7789tagname=
7790lt_save_CC="$CC"
7791ac_ext=c
7792ac_cpp='$CPP $CPPFLAGS'
7793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7795ac_compiler_gnu=$ac_cv_c_compiler_gnu
7796
7797
7798# Source file extension for C test sources.
7799ac_ext=c
7800
7801# Object file extension for compiled C test sources.
7802objext=o
7803objext=$objext
7804
7805# Code to be used in simple compile tests
7806lt_simple_compile_test_code="int some_variable = 0;\n"
7807
7808# Code to be used in simple link tests
7809lt_simple_link_test_code='int main(){return(0);}\n'
7810
7811
7812# If no C compiler was specified, use CC.
7813LTCC=${LTCC-"$CC"}
7814
7815# If no C compiler flags were specified, use CFLAGS.
7816LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7817
7818# Allow CC to be a program name with arguments.
7819compiler=$CC
7820
7821
7822# save warnings/boilerplate of simple test code
7823ac_outfile=conftest.$ac_objext
7824printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7825eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7826_lt_compiler_boilerplate=`cat conftest.err`
7827$rm conftest*
7828
7829ac_outfile=conftest.$ac_objext
7830printf "$lt_simple_link_test_code" >conftest.$ac_ext
7831eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7832_lt_linker_boilerplate=`cat conftest.err`
7833$rm conftest*
7834
7835
7836## CAVEAT EMPTOR:
7837## There is no encapsulation within the following macros, do not change
7838## the running order or otherwise move them around unless you know exactly
7839## what you are doing...
7840
7841lt_prog_compiler_no_builtin_flag=
7842
7843if test "$GCC" = yes; then
7844  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7845
7846
7847echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7848echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7849if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7850  echo $ECHO_N "(cached) $ECHO_C" >&6
7851else
7852  lt_cv_prog_compiler_rtti_exceptions=no
7853  ac_outfile=conftest.$ac_objext
7854   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7855   lt_compiler_flag="-fno-rtti -fno-exceptions"
7856   # Insert the option either (1) after the last *FLAGS variable, or
7857   # (2) before a word containing "conftest.", or (3) at the end.
7858   # Note that $ac_compile itself does not contain backslashes and begins
7859   # with a dollar sign (not a hyphen), so the echo should work correctly.
7860   # The option is referenced via a variable to avoid confusing sed.
7861   lt_compile=`echo "$ac_compile" | $SED \
7862   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7863   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7864   -e 's:$: $lt_compiler_flag:'`
7865   (eval echo "\"\$as_me:7865: $lt_compile\"" >&5)
7866   (eval "$lt_compile" 2>conftest.err)
7867   ac_status=$?
7868   cat conftest.err >&5
7869   echo "$as_me:7869: \$? = $ac_status" >&5
7870   if (exit $ac_status) && test -s "$ac_outfile"; then
7871     # The compiler can only warn and ignore the option if not recognized
7872     # So say no if there are warnings other than the usual output.
7873     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7874     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7875     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7876       lt_cv_prog_compiler_rtti_exceptions=yes
7877     fi
7878   fi
7879   $rm conftest*
7880
7881fi
7882echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7883echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7884
7885if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7886    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7887else
7888    :
7889fi
7890
7891fi
7892
7893lt_prog_compiler_wl=
7894lt_prog_compiler_pic=
7895lt_prog_compiler_static=
7896
7897echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7898echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7899
7900  if test "$GCC" = yes; then
7901    lt_prog_compiler_wl='-Wl,'
7902    lt_prog_compiler_static='-static'
7903
7904    case $host_os in
7905      aix*)
7906      # All AIX code is PIC.
7907      if test "$host_cpu" = ia64; then
7908        # AIX 5 now supports IA64 processor
7909        lt_prog_compiler_static='-Bstatic'
7910      fi
7911      ;;
7912
7913    amigaos*)
7914      # FIXME: we need at least 68020 code to build shared libraries, but
7915      # adding the `-m68020' flag to GCC prevents building anything better,
7916      # like `-m68040'.
7917      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7918      ;;
7919
7920    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7921      # PIC is the default for these OSes.
7922      ;;
7923
7924    mingw* | pw32* | os2*)
7925      # This hack is so that the source file can tell whether it is being
7926      # built for inclusion in a dll (and should export symbols for example).
7927      lt_prog_compiler_pic='-DDLL_EXPORT'
7928      ;;
7929
7930    darwin* | rhapsody*)
7931      # PIC is the default on this platform
7932      # Common symbols not allowed in MH_DYLIB files
7933      lt_prog_compiler_pic='-fno-common'
7934      ;;
7935
7936    interix3*)
7937      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7938      # Instead, we relocate shared libraries at runtime.
7939      ;;
7940
7941    msdosdjgpp*)
7942      # Just because we use GCC doesn't mean we suddenly get shared libraries
7943      # on systems that don't support them.
7944      lt_prog_compiler_can_build_shared=no
7945      enable_shared=no
7946      ;;
7947
7948    sysv4*MP*)
7949      if test -d /usr/nec; then
7950        lt_prog_compiler_pic=-Kconform_pic
7951      fi
7952      ;;
7953
7954    hpux*)
7955      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7956      # not for PA HP-UX.
7957      case $host_cpu in
7958      hppa*64*|ia64*)
7959        # +Z the default
7960        ;;
7961      *)
7962        lt_prog_compiler_pic='-fPIC'
7963        ;;
7964      esac
7965      ;;
7966
7967    *)
7968      lt_prog_compiler_pic='-fPIC'
7969      ;;
7970    esac
7971  else
7972    # PORTME Check for flag to pass linker flags through the system compiler.
7973    case $host_os in
7974    aix*)
7975      lt_prog_compiler_wl='-Wl,'
7976      if test "$host_cpu" = ia64; then
7977        # AIX 5 now supports IA64 processor
7978        lt_prog_compiler_static='-Bstatic'
7979      else
7980        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7981      fi
7982      ;;
7983      darwin*)
7984        # PIC is the default on this platform
7985        # Common symbols not allowed in MH_DYLIB files
7986       case $cc_basename in
7987         xlc*)
7988         lt_prog_compiler_pic='-qnocommon'
7989         lt_prog_compiler_wl='-Wl,'
7990         ;;
7991       esac
7992       ;;
7993
7994    mingw* | pw32* | os2*)
7995      # This hack is so that the source file can tell whether it is being
7996      # built for inclusion in a dll (and should export symbols for example).
7997      lt_prog_compiler_pic='-DDLL_EXPORT'
7998      ;;
7999
8000    hpux9* | hpux10* | hpux11*)
8001      lt_prog_compiler_wl='-Wl,'
8002      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8003      # not for PA HP-UX.
8004      case $host_cpu in
8005      hppa*64*|ia64*)
8006        # +Z the default
8007        ;;
8008      *)
8009        lt_prog_compiler_pic='+Z'
8010        ;;
8011      esac
8012      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8013      lt_prog_compiler_static='${wl}-a ${wl}archive'
8014      ;;
8015
8016    irix5* | irix6* | nonstopux*)
8017      lt_prog_compiler_wl='-Wl,'
8018      # PIC (with -KPIC) is the default.
8019      lt_prog_compiler_static='-non_shared'
8020      ;;
8021
8022    newsos6)
8023      lt_prog_compiler_pic='-KPIC'
8024      lt_prog_compiler_static='-Bstatic'
8025      ;;
8026
8027    linux*)
8028      case $cc_basename in
8029      icc* | ecc*)
8030        lt_prog_compiler_wl='-Wl,'
8031        lt_prog_compiler_pic='-KPIC'
8032        lt_prog_compiler_static='-static'
8033        ;;
8034      pgcc* | pgf77* | pgf90* | pgf95*)
8035        # Portland Group compilers (*not* the Pentium gcc compiler,
8036        # which looks to be a dead project)
8037        lt_prog_compiler_wl='-Wl,'
8038        lt_prog_compiler_pic='-fpic'
8039        lt_prog_compiler_static='-Bstatic'
8040        ;;
8041      ccc*)
8042        lt_prog_compiler_wl='-Wl,'
8043        # All Alpha code is PIC.
8044        lt_prog_compiler_static='-non_shared'
8045        ;;
8046      esac
8047      ;;
8048
8049    osf3* | osf4* | osf5*)
8050      lt_prog_compiler_wl='-Wl,'
8051      # All OSF/1 code is PIC.
8052      lt_prog_compiler_static='-non_shared'
8053      ;;
8054
8055    solaris*)
8056      lt_prog_compiler_pic='-KPIC'
8057      lt_prog_compiler_static='-Bstatic'
8058      case $cc_basename in
8059      f77* | f90* | f95*)
8060        lt_prog_compiler_wl='-Qoption ld ';;
8061      *)
8062        lt_prog_compiler_wl='-Wl,';;
8063      esac
8064      ;;
8065
8066    sunos4*)
8067      lt_prog_compiler_wl='-Qoption ld '
8068      lt_prog_compiler_pic='-PIC'
8069      lt_prog_compiler_static='-Bstatic'
8070      ;;
8071
8072    sysv4 | sysv4.2uw2* | sysv4.3*)
8073      lt_prog_compiler_wl='-Wl,'
8074      lt_prog_compiler_pic='-KPIC'
8075      lt_prog_compiler_static='-Bstatic'
8076      ;;
8077
8078    sysv4*MP*)
8079      if test -d /usr/nec ;then
8080        lt_prog_compiler_pic='-Kconform_pic'
8081        lt_prog_compiler_static='-Bstatic'
8082      fi
8083      ;;
8084
8085    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8086      lt_prog_compiler_wl='-Wl,'
8087      lt_prog_compiler_pic='-KPIC'
8088      lt_prog_compiler_static='-Bstatic'
8089      ;;
8090
8091    unicos*)
8092      lt_prog_compiler_wl='-Wl,'
8093      lt_prog_compiler_can_build_shared=no
8094      ;;
8095
8096    uts4*)
8097      lt_prog_compiler_pic='-pic'
8098      lt_prog_compiler_static='-Bstatic'
8099      ;;
8100
8101    *)
8102      lt_prog_compiler_can_build_shared=no
8103      ;;
8104    esac
8105  fi
8106
8107echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8108echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8109
8110#
8111# Check to make sure the PIC flag actually works.
8112#
8113if test -n "$lt_prog_compiler_pic"; then
8114
8115echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8116echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8117if test "${lt_prog_compiler_pic_works+set}" = set; then
8118  echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120  lt_prog_compiler_pic_works=no
8121  ac_outfile=conftest.$ac_objext
8122   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8123   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8124   # Insert the option either (1) after the last *FLAGS variable, or
8125   # (2) before a word containing "conftest.", or (3) at the end.
8126   # Note that $ac_compile itself does not contain backslashes and begins
8127   # with a dollar sign (not a hyphen), so the echo should work correctly.
8128   # The option is referenced via a variable to avoid confusing sed.
8129   lt_compile=`echo "$ac_compile" | $SED \
8130   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8131   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8132   -e 's:$: $lt_compiler_flag:'`
8133   (eval echo "\"\$as_me:8133: $lt_compile\"" >&5)
8134   (eval "$lt_compile" 2>conftest.err)
8135   ac_status=$?
8136   cat conftest.err >&5
8137   echo "$as_me:8137: \$? = $ac_status" >&5
8138   if (exit $ac_status) && test -s "$ac_outfile"; then
8139     # The compiler can only warn and ignore the option if not recognized
8140     # So say no if there are warnings other than the usual output.
8141     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8142     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8143     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8144       lt_prog_compiler_pic_works=yes
8145     fi
8146   fi
8147   $rm conftest*
8148
8149fi
8150echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8151echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8152
8153if test x"$lt_prog_compiler_pic_works" = xyes; then
8154    case $lt_prog_compiler_pic in
8155     "" | " "*) ;;
8156     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8157     esac
8158else
8159    lt_prog_compiler_pic=
8160     lt_prog_compiler_can_build_shared=no
8161fi
8162
8163fi
8164case $host_os in
8165  # For platforms which do not support PIC, -DPIC is meaningless:
8166  *djgpp*)
8167    lt_prog_compiler_pic=
8168    ;;
8169  *)
8170    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8171    ;;
8172esac
8173
8174#
8175# Check to make sure the static flag actually works.
8176#
8177wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8178echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8179echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8180if test "${lt_prog_compiler_static_works+set}" = set; then
8181  echo $ECHO_N "(cached) $ECHO_C" >&6
8182else
8183  lt_prog_compiler_static_works=no
8184   save_LDFLAGS="$LDFLAGS"
8185   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8186   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8187   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8188     # The linker can only warn and ignore the option if not recognized
8189     # So say no if there are warnings
8190     if test -s conftest.err; then
8191       # Append any errors to the config.log.
8192       cat conftest.err 1>&5
8193       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8194       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8195       if diff conftest.exp conftest.er2 >/dev/null; then
8196         lt_prog_compiler_static_works=yes
8197       fi
8198     else
8199       lt_prog_compiler_static_works=yes
8200     fi
8201   fi
8202   $rm conftest*
8203   LDFLAGS="$save_LDFLAGS"
8204
8205fi
8206echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8207echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8208
8209if test x"$lt_prog_compiler_static_works" = xyes; then
8210    :
8211else
8212    lt_prog_compiler_static=
8213fi
8214
8215
8216echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8217echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8218if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8219  echo $ECHO_N "(cached) $ECHO_C" >&6
8220else
8221  lt_cv_prog_compiler_c_o=no
8222   $rm -r conftest 2>/dev/null
8223   mkdir conftest
8224   cd conftest
8225   mkdir out
8226   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8227
8228   lt_compiler_flag="-o out/conftest2.$ac_objext"
8229   # Insert the option either (1) after the last *FLAGS variable, or
8230   # (2) before a word containing "conftest.", or (3) at the end.
8231   # Note that $ac_compile itself does not contain backslashes and begins
8232   # with a dollar sign (not a hyphen), so the echo should work correctly.
8233   lt_compile=`echo "$ac_compile" | $SED \
8234   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8235   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8236   -e 's:$: $lt_compiler_flag:'`
8237   (eval echo "\"\$as_me:8237: $lt_compile\"" >&5)
8238   (eval "$lt_compile" 2>out/conftest.err)
8239   ac_status=$?
8240   cat out/conftest.err >&5
8241   echo "$as_me:8241: \$? = $ac_status" >&5
8242   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8243   then
8244     # The compiler can only warn and ignore the option if not recognized
8245     # So say no if there are warnings
8246     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8247     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8248     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8249       lt_cv_prog_compiler_c_o=yes
8250     fi
8251   fi
8252   chmod u+w . 2>&5
8253   $rm conftest*
8254   # SGI C++ compiler will create directory out/ii_files/ for
8255   # template instantiation
8256   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8257   $rm out/* && rmdir out
8258   cd ..
8259   rmdir conftest
8260   $rm conftest*
8261
8262fi
8263echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8264echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8265
8266
8267hard_links="nottested"
8268if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8269  # do not overwrite the value of need_locks provided by the user
8270  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8271echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8272  hard_links=yes
8273  $rm conftest*
8274  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8275  touch conftest.a
8276  ln conftest.a conftest.b 2>&5 || hard_links=no
8277  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8278  echo "$as_me:$LINENO: result: $hard_links" >&5
8279echo "${ECHO_T}$hard_links" >&6
8280  if test "$hard_links" = no; then
8281    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8282echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8283    need_locks=warn
8284  fi
8285else
8286  need_locks=no
8287fi
8288
8289echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8290echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8291
8292  runpath_var=
8293  allow_undefined_flag=
8294  enable_shared_with_static_runtimes=no
8295  archive_cmds=
8296  archive_expsym_cmds=
8297  old_archive_From_new_cmds=
8298  old_archive_from_expsyms_cmds=
8299  export_dynamic_flag_spec=
8300  whole_archive_flag_spec=
8301  thread_safe_flag_spec=
8302  hardcode_libdir_flag_spec=
8303  hardcode_libdir_flag_spec_ld=
8304  hardcode_libdir_separator=
8305  hardcode_direct=no
8306  hardcode_minus_L=no
8307  hardcode_shlibpath_var=unsupported
8308  link_all_deplibs=unknown
8309  hardcode_automatic=no
8310  module_cmds=
8311  module_expsym_cmds=
8312  always_export_symbols=no
8313  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8314  # include_expsyms should be a list of space-separated symbols to be *always*
8315  # included in the symbol list
8316  include_expsyms=
8317  # exclude_expsyms can be an extended regexp of symbols to exclude
8318  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8319  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8320  # as well as any symbol that contains `d'.
8321  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8322  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8323  # platforms (ab)use it in PIC code, but their linkers get confused if
8324  # the symbol is explicitly referenced.  Since portable code cannot
8325  # rely on this symbol name, it's probably fine to never include it in
8326  # preloaded symbol tables.
8327  extract_expsyms_cmds=
8328  # Just being paranoid about ensuring that cc_basename is set.
8329  for cc_temp in $compiler""; do
8330  case $cc_temp in
8331    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8332    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8333    \-*) ;;
8334    *) break;;
8335  esac
8336done
8337cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8338
8339  case $host_os in
8340  cygwin* | mingw* | pw32*)
8341    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8342    # When not using gcc, we currently assume that we are using
8343    # Microsoft Visual C++.
8344    if test "$GCC" != yes; then
8345      with_gnu_ld=no
8346    fi
8347    ;;
8348  interix*)
8349    # we just hope/assume this is gcc and not c89 (= MSVC++)
8350    with_gnu_ld=yes
8351    ;;
8352  openbsd*)
8353    with_gnu_ld=no
8354    ;;
8355  esac
8356
8357  ld_shlibs=yes
8358  if test "$with_gnu_ld" = yes; then
8359    # If archive_cmds runs LD, not CC, wlarc should be empty
8360    wlarc='${wl}'
8361
8362    # Set some defaults for GNU ld with shared library support. These
8363    # are reset later if shared libraries are not supported. Putting them
8364    # here allows them to be overridden if necessary.
8365    runpath_var=LD_RUN_PATH
8366    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8367    export_dynamic_flag_spec='${wl}--export-dynamic'
8368    # ancient GNU ld didn't support --whole-archive et. al.
8369    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8370        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8371      else
8372        whole_archive_flag_spec=
8373    fi
8374    supports_anon_versioning=no
8375    case `$LD -v 2>/dev/null` in
8376      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8377      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8378      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8379      *\ 2.11.*) ;; # other 2.11 versions
8380      *) supports_anon_versioning=yes ;;
8381    esac
8382
8383    # See if GNU ld supports shared libraries.
8384    case $host_os in
8385    aix3* | aix4* | aix5*)
8386      # On AIX/PPC, the GNU linker is very broken
8387      if test "$host_cpu" != ia64; then
8388        ld_shlibs=no
8389        cat <<EOF 1>&2
8390
8391*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8392*** to be unable to reliably create shared libraries on AIX.
8393*** Therefore, libtool is disabling shared libraries support.  If you
8394*** really care for shared libraries, you may want to modify your PATH
8395*** so that a non-GNU linker is found, and then restart.
8396
8397EOF
8398      fi
8399      ;;
8400
8401    amigaos*)
8402      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)'
8403      hardcode_libdir_flag_spec='-L$libdir'
8404      hardcode_minus_L=yes
8405
8406      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8407      # that the semantics of dynamic libraries on AmigaOS, at least up
8408      # to version 4, is to share data among multiple programs linked
8409      # with the same dynamic library.  Since this doesn't match the
8410      # behavior of shared libraries on other platforms, we can't use
8411      # them.
8412      ld_shlibs=no
8413      ;;
8414
8415    beos*)
8416      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8417        allow_undefined_flag=unsupported
8418        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8419        # support --undefined.  This deserves some investigation.  FIXME
8420        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8421      else
8422        ld_shlibs=no
8423      fi
8424      ;;
8425
8426    cygwin* | mingw* | pw32*)
8427      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8428      # as there is no search path for DLLs.
8429      hardcode_libdir_flag_spec='-L$libdir'
8430      allow_undefined_flag=unsupported
8431      always_export_symbols=no
8432      enable_shared_with_static_runtimes=yes
8433      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8434
8435      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8436        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8437        # If the export-symbols file already is a .def file (1st line
8438        # is EXPORTS), use it as is; otherwise, prepend...
8439        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8440          cp $export_symbols $output_objdir/$soname.def;
8441        else
8442          echo EXPORTS > $output_objdir/$soname.def;
8443          cat $export_symbols >> $output_objdir/$soname.def;
8444        fi~
8445        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8446      else
8447        ld_shlibs=no
8448      fi
8449      ;;
8450
8451    interix3*)
8452      hardcode_direct=no
8453      hardcode_shlibpath_var=no
8454      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8455      export_dynamic_flag_spec='${wl}-E'
8456      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8457      # Instead, shared libraries are loaded at an image base (0x10000000 by
8458      # default) and relocated if they conflict, which is a slow very memory
8459      # consuming and fragmenting process.  To avoid this, we pick a random,
8460      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8461      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8462      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8463      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'
8464      ;;
8465
8466    linux*)
8467      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8468        tmp_addflag=
8469        case $cc_basename,$host_cpu in
8470        pgcc*)                          # Portland Group C compiler
8471          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'
8472          tmp_addflag=' $pic_flag'
8473          ;;
8474        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8475          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'
8476          tmp_addflag=' $pic_flag -Mnomain' ;;
8477        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8478          tmp_addflag=' -i_dynamic' ;;
8479        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8480          tmp_addflag=' -i_dynamic -nofor_main' ;;
8481        ifc* | ifort*)                  # Intel Fortran compiler
8482          tmp_addflag=' -nofor_main' ;;
8483        esac
8484        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8485
8486        if test $supports_anon_versioning = yes; then
8487          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8488  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8489  $echo "local: *; };" >> $output_objdir/$libname.ver~
8490          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8491        fi
8492      else
8493        ld_shlibs=no
8494      fi
8495      ;;
8496
8497    netbsd*)
8498      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8499        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8500        wlarc=
8501      else
8502        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8503        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8504      fi
8505      ;;
8506
8507    solaris*)
8508      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8509        ld_shlibs=no
8510        cat <<EOF 1>&2
8511
8512*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8513*** create shared libraries on Solaris systems.  Therefore, libtool
8514*** is disabling shared libraries support.  We urge you to upgrade GNU
8515*** binutils to release 2.9.1 or newer.  Another option is to modify
8516*** your PATH or compiler configuration so that the native linker is
8517*** used, and then restart.
8518
8519EOF
8520      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8521        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8522        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8523      else
8524        ld_shlibs=no
8525      fi
8526      ;;
8527
8528    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8529      case `$LD -v 2>&1` in
8530        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8531        ld_shlibs=no
8532        cat <<_LT_EOF 1>&2
8533
8534*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8535*** reliably create shared libraries on SCO systems.  Therefore, libtool
8536*** is disabling shared libraries support.  We urge you to upgrade GNU
8537*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8538*** your PATH or compiler configuration so that the native linker is
8539*** used, and then restart.
8540
8541_LT_EOF
8542        ;;
8543        *)
8544          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8545            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8546            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8547            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8548          else
8549            ld_shlibs=no
8550          fi
8551        ;;
8552      esac
8553      ;;
8554
8555    sunos4*)
8556      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8557      wlarc=
8558      hardcode_direct=yes
8559      hardcode_shlibpath_var=no
8560      ;;
8561
8562    *)
8563      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8564        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8565        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8566      else
8567        ld_shlibs=no
8568      fi
8569      ;;
8570    esac
8571
8572    if test "$ld_shlibs" = no; then
8573      runpath_var=
8574      hardcode_libdir_flag_spec=
8575      export_dynamic_flag_spec=
8576      whole_archive_flag_spec=
8577    fi
8578  else
8579    # PORTME fill in a description of your system's linker (not GNU ld)
8580    case $host_os in
8581    aix3*)
8582      allow_undefined_flag=unsupported
8583      always_export_symbols=yes
8584      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'
8585      # Note: this linker hardcodes the directories in LIBPATH if there
8586      # are no directories specified by -L.
8587      hardcode_minus_L=yes
8588      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8589        # Neither direct hardcoding nor static linking is supported with a
8590        # broken collect2.
8591        hardcode_direct=unsupported
8592      fi
8593      ;;
8594
8595    aix4* | aix5*)
8596      if test "$host_cpu" = ia64; then
8597        # On IA64, the linker does run time linking by default, so we don't
8598        # have to do anything special.
8599        aix_use_runtimelinking=no
8600        exp_sym_flag='-Bexport'
8601        no_entry_flag=""
8602      else
8603        # If we're using GNU nm, then we don't want the "-C" option.
8604        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8605        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8606          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'
8607        else
8608          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'
8609        fi
8610        aix_use_runtimelinking=no
8611
8612        # Test if we are trying to use run time linking or normal
8613        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8614        # need to do runtime linking.
8615        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8616          for ld_flag in $LDFLAGS; do
8617          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8618            aix_use_runtimelinking=yes
8619            break
8620          fi
8621          done
8622          ;;
8623        esac
8624
8625        exp_sym_flag='-bexport'
8626        no_entry_flag='-bnoentry'
8627      fi
8628
8629      # When large executables or shared objects are built, AIX ld can
8630      # have problems creating the table of contents.  If linking a library
8631      # or program results in "error TOC overflow" add -mminimal-toc to
8632      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8633      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8634
8635      archive_cmds=''
8636      hardcode_direct=yes
8637      hardcode_libdir_separator=':'
8638      link_all_deplibs=yes
8639
8640      if test "$GCC" = yes; then
8641        case $host_os in aix4.[012]|aix4.[012].*)
8642        # We only want to do this on AIX 4.2 and lower, the check
8643        # below for broken collect2 doesn't work under 4.3+
8644          collect2name=`${CC} -print-prog-name=collect2`
8645          if test -f "$collect2name" && \
8646           strings "$collect2name" | grep resolve_lib_name >/dev/null
8647          then
8648          # We have reworked collect2
8649          hardcode_direct=yes
8650          else
8651          # We have old collect2
8652          hardcode_direct=unsupported
8653          # It fails to find uninstalled libraries when the uninstalled
8654          # path is not listed in the libpath.  Setting hardcode_minus_L
8655          # to unsupported forces relinking
8656          hardcode_minus_L=yes
8657          hardcode_libdir_flag_spec='-L$libdir'
8658          hardcode_libdir_separator=
8659          fi
8660          ;;
8661        esac
8662        shared_flag='-shared'
8663        if test "$aix_use_runtimelinking" = yes; then
8664          shared_flag="$shared_flag "'${wl}-G'
8665        fi
8666      else
8667        # not using gcc
8668        if test "$host_cpu" = ia64; then
8669        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8670        # chokes on -Wl,-G. The following line is correct:
8671          shared_flag='-G'
8672        else
8673          if test "$aix_use_runtimelinking" = yes; then
8674            shared_flag='${wl}-G'
8675          else
8676            shared_flag='${wl}-bM:SRE'
8677          fi
8678        fi
8679      fi
8680
8681      # It seems that -bexpall does not export symbols beginning with
8682      # underscore (_), so it is better to generate a list of symbols to export.
8683      always_export_symbols=yes
8684      if test "$aix_use_runtimelinking" = yes; then
8685        # Warning - without using the other runtime loading flags (-brtl),
8686        # -berok will link without error, but may produce a broken library.
8687        allow_undefined_flag='-berok'
8688       # Determine the default libpath from the value encoded in an empty executable.
8689       cat >conftest.$ac_ext <<_ACEOF
8690/* confdefs.h.  */
8691_ACEOF
8692cat confdefs.h >>conftest.$ac_ext
8693cat >>conftest.$ac_ext <<_ACEOF
8694/* end confdefs.h.  */
8695
8696int
8697main ()
8698{
8699
8700  ;
8701  return 0;
8702}
8703_ACEOF
8704rm -f conftest.$ac_objext conftest$ac_exeext
8705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706  (eval $ac_link) 2>conftest.er1
8707  ac_status=$?
8708  grep -v '^ *+' conftest.er1 >conftest.err
8709  rm -f conftest.er1
8710  cat conftest.err >&5
8711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712  (exit $ac_status); } &&
8713         { ac_try='test -z "$ac_c_werror_flag"
8714                         || test ! -s conftest.err'
8715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716  (eval $ac_try) 2>&5
8717  ac_status=$?
8718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719  (exit $ac_status); }; } &&
8720         { ac_try='test -s conftest$ac_exeext'
8721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722  (eval $ac_try) 2>&5
8723  ac_status=$?
8724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725  (exit $ac_status); }; }; then
8726
8727aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8728}'`
8729# Check for a 64-bit object if we didn't find anything.
8730if 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; }
8731}'`; fi
8732else
8733  echo "$as_me: failed program was:" >&5
8734sed 's/^/| /' conftest.$ac_ext >&5
8735
8736fi
8737rm -f conftest.err conftest.$ac_objext \
8738      conftest$ac_exeext conftest.$ac_ext
8739if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8740
8741       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8742        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"
8743       else
8744        if test "$host_cpu" = ia64; then
8745          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8746          allow_undefined_flag="-z nodefs"
8747          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"
8748        else
8749         # Determine the default libpath from the value encoded in an empty executable.
8750         cat >conftest.$ac_ext <<_ACEOF
8751/* confdefs.h.  */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>conftest.$ac_ext <<_ACEOF
8755/* end confdefs.h.  */
8756
8757int
8758main ()
8759{
8760
8761  ;
8762  return 0;
8763}
8764_ACEOF
8765rm -f conftest.$ac_objext conftest$ac_exeext
8766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8767  (eval $ac_link) 2>conftest.er1
8768  ac_status=$?
8769  grep -v '^ *+' conftest.er1 >conftest.err
8770  rm -f conftest.er1
8771  cat conftest.err >&5
8772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773  (exit $ac_status); } &&
8774         { ac_try='test -z "$ac_c_werror_flag"
8775                         || test ! -s conftest.err'
8776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777  (eval $ac_try) 2>&5
8778  ac_status=$?
8779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780  (exit $ac_status); }; } &&
8781         { ac_try='test -s conftest$ac_exeext'
8782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783  (eval $ac_try) 2>&5
8784  ac_status=$?
8785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786  (exit $ac_status); }; }; then
8787
8788aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8789}'`
8790# Check for a 64-bit object if we didn't find anything.
8791if 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; }
8792}'`; fi
8793else
8794  echo "$as_me: failed program was:" >&5
8795sed 's/^/| /' conftest.$ac_ext >&5
8796
8797fi
8798rm -f conftest.err conftest.$ac_objext \
8799      conftest$ac_exeext conftest.$ac_ext
8800if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8801
8802         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8803          # Warning - without using the other run time loading flags,
8804          # -berok will link without error, but may produce a broken library.
8805          no_undefined_flag=' ${wl}-bernotok'
8806          allow_undefined_flag=' ${wl}-berok'
8807          # Exported symbols can be pulled into shared objects from archives
8808          whole_archive_flag_spec='$convenience'
8809          archive_cmds_need_lc=yes
8810          # This is similar to how AIX traditionally builds its shared libraries.
8811          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'
8812        fi
8813      fi
8814      ;;
8815
8816    amigaos*)
8817      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)'
8818      hardcode_libdir_flag_spec='-L$libdir'
8819      hardcode_minus_L=yes
8820      # see comment about different semantics on the GNU ld section
8821      ld_shlibs=no
8822      ;;
8823
8824    bsdi[45]*)
8825      export_dynamic_flag_spec=-rdynamic
8826      ;;
8827
8828    cygwin* | mingw* | pw32*)
8829      # When not using gcc, we currently assume that we are using
8830      # Microsoft Visual C++.
8831      # hardcode_libdir_flag_spec is actually meaningless, as there is
8832      # no search path for DLLs.
8833      hardcode_libdir_flag_spec=' '
8834      allow_undefined_flag=unsupported
8835      # Tell ltmain to make .lib files, not .a files.
8836      libext=lib
8837      # Tell ltmain to make .dll files, not .so files.
8838      shrext_cmds=".dll"
8839      # FIXME: Setting linknames here is a bad hack.
8840      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8841      # The linker will automatically build a .lib file if we build a DLL.
8842      old_archive_From_new_cmds='true'
8843      # FIXME: Should let the user specify the lib program.
8844      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8845      fix_srcfile_path='`cygpath -w "$srcfile"`'
8846      enable_shared_with_static_runtimes=yes
8847      ;;
8848
8849    darwin* | rhapsody*)
8850      case $host_os in
8851        rhapsody* | darwin1.[012])
8852         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8853         ;;
8854       *) # Darwin 1.3 on
8855         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8856           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8857         else
8858           case ${MACOSX_DEPLOYMENT_TARGET} in
8859             10.[012])
8860               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8861               ;;
8862             10.*)
8863               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8864               ;;
8865           esac
8866         fi
8867         ;;
8868      esac
8869      archive_cmds_need_lc=no
8870      hardcode_direct=no
8871      hardcode_automatic=yes
8872      hardcode_shlibpath_var=unsupported
8873      whole_archive_flag_spec=''
8874      link_all_deplibs=yes
8875    if test "$GCC" = yes ; then
8876        output_verbose_link_cmd='echo'
8877        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8878      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8879      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8880      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}'
8881      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}'
8882    else
8883      case $cc_basename in
8884        xlc*)
8885         output_verbose_link_cmd='echo'
8886         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8887         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8888          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8889         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}'
8890          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}'
8891          ;;
8892       *)
8893         ld_shlibs=no
8894          ;;
8895      esac
8896    fi
8897      ;;
8898
8899    dgux*)
8900      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8901      hardcode_libdir_flag_spec='-L$libdir'
8902      hardcode_shlibpath_var=no
8903      ;;
8904
8905    freebsd1*)
8906      ld_shlibs=no
8907      ;;
8908
8909    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8910    # support.  Future versions do this automatically, but an explicit c++rt0.o
8911    # does not break anything, and helps significantly (at the cost of a little
8912    # extra space).
8913    freebsd2.2*)
8914      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8915      hardcode_libdir_flag_spec='-R$libdir'
8916      hardcode_direct=yes
8917      hardcode_shlibpath_var=no
8918      ;;
8919
8920    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8921    freebsd2*)
8922      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8923      hardcode_direct=yes
8924      hardcode_minus_L=yes
8925      hardcode_shlibpath_var=no
8926      ;;
8927
8928    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8929    freebsd* | kfreebsd*-gnu | dragonfly*)
8930      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8931      hardcode_libdir_flag_spec='-R$libdir'
8932      hardcode_direct=yes
8933      hardcode_shlibpath_var=no
8934      ;;
8935
8936    hpux9*)
8937      if test "$GCC" = yes; then
8938        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'
8939      else
8940        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'
8941      fi
8942      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8943      hardcode_libdir_separator=:
8944      hardcode_direct=yes
8945
8946      # hardcode_minus_L: Not really in the search PATH,
8947      # but as the default location of the library.
8948      hardcode_minus_L=yes
8949      export_dynamic_flag_spec='${wl}-E'
8950      ;;
8951
8952    hpux10*)
8953      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8954        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8955      else
8956        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8957      fi
8958      if test "$with_gnu_ld" = no; then
8959        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8960        hardcode_libdir_separator=:
8961
8962        hardcode_direct=yes
8963        export_dynamic_flag_spec='${wl}-E'
8964
8965        # hardcode_minus_L: Not really in the search PATH,
8966        # but as the default location of the library.
8967        hardcode_minus_L=yes
8968      fi
8969      ;;
8970
8971    hpux11*)
8972      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8973        case $host_cpu in
8974        hppa*64*)
8975          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976          ;;
8977        ia64*)
8978          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8979          ;;
8980        *)
8981          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8982          ;;
8983        esac
8984      else
8985        case $host_cpu in
8986        hppa*64*)
8987          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8988          ;;
8989        ia64*)
8990          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8991          ;;
8992        *)
8993          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8994          ;;
8995        esac
8996      fi
8997      if test "$with_gnu_ld" = no; then
8998        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8999        hardcode_libdir_separator=:
9000
9001        case $host_cpu in
9002        hppa*64*|ia64*)
9003          hardcode_libdir_flag_spec_ld='+b $libdir'
9004          hardcode_direct=no
9005          hardcode_shlibpath_var=no
9006          ;;
9007        *)
9008          hardcode_direct=yes
9009          export_dynamic_flag_spec='${wl}-E'
9010
9011          # hardcode_minus_L: Not really in the search PATH,
9012          # but as the default location of the library.
9013          hardcode_minus_L=yes
9014          ;;
9015        esac
9016      fi
9017      ;;
9018
9019    irix5* | irix6* | nonstopux*)
9020      if test "$GCC" = yes; then
9021        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'
9022      else
9023        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'
9024        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9025      fi
9026      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9027      hardcode_libdir_separator=:
9028      link_all_deplibs=yes
9029      ;;
9030
9031    netbsd*)
9032      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9033        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9034      else
9035        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9036      fi
9037      hardcode_libdir_flag_spec='-R$libdir'
9038      hardcode_direct=yes
9039      hardcode_shlibpath_var=no
9040      ;;
9041
9042    newsos6)
9043      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9044      hardcode_direct=yes
9045      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9046      hardcode_libdir_separator=:
9047      hardcode_shlibpath_var=no
9048      ;;
9049
9050    openbsd*)
9051      hardcode_direct=yes
9052      hardcode_shlibpath_var=no
9053      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9054        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9055        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9056        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9057        export_dynamic_flag_spec='${wl}-E'
9058      else
9059       case $host_os in
9060         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9061           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9062           hardcode_libdir_flag_spec='-R$libdir'
9063           ;;
9064         *)
9065           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9066           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9067           ;;
9068       esac
9069      fi
9070      ;;
9071
9072    os2*)
9073      hardcode_libdir_flag_spec='-L$libdir'
9074      hardcode_minus_L=yes
9075      allow_undefined_flag=unsupported
9076      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'
9077      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9078      ;;
9079
9080    osf3*)
9081      if test "$GCC" = yes; then
9082        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9083        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'
9084      else
9085        allow_undefined_flag=' -expect_unresolved \*'
9086        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'
9087      fi
9088      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9089      hardcode_libdir_separator=:
9090      ;;
9091
9092    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9093      if test "$GCC" = yes; then
9094        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9095        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'
9096        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9097      else
9098        allow_undefined_flag=' -expect_unresolved \*'
9099        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'
9100        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9101        $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'
9102
9103        # Both c and cxx compiler support -rpath directly
9104        hardcode_libdir_flag_spec='-rpath $libdir'
9105      fi
9106      hardcode_libdir_separator=:
9107      ;;
9108
9109    solaris*)
9110      no_undefined_flag=' -z text'
9111      if test "$GCC" = yes; then
9112        wlarc='${wl}'
9113        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9114        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9115          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9116      else
9117        wlarc=''
9118        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9119        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9120        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9121      fi
9122      hardcode_libdir_flag_spec='-R$libdir'
9123      hardcode_shlibpath_var=no
9124      case $host_os in
9125      solaris2.[0-5] | solaris2.[0-5].*) ;;
9126      *)
9127        # The compiler driver will combine linker options so we
9128        # cannot just pass the convience library names through
9129        # without $wl, iff we do not link with $LD.
9130        # Luckily, gcc supports the same syntax we need for Sun Studio.
9131        # Supported since Solaris 2.6 (maybe 2.5.1?)
9132        case $wlarc in
9133        '')
9134          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9135        *)
9136          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' ;;
9137        esac ;;
9138      esac
9139      link_all_deplibs=yes
9140      ;;
9141
9142    sunos4*)
9143      if test "x$host_vendor" = xsequent; then
9144        # Use $CC to link under sequent, because it throws in some extra .o
9145        # files that make .init and .fini sections work.
9146        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9147      else
9148        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9149      fi
9150      hardcode_libdir_flag_spec='-L$libdir'
9151      hardcode_direct=yes
9152      hardcode_minus_L=yes
9153      hardcode_shlibpath_var=no
9154      ;;
9155
9156    sysv4)
9157      case $host_vendor in
9158        sni)
9159          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9160          hardcode_direct=yes # is this really true???
9161        ;;
9162        siemens)
9163          ## LD is ld it makes a PLAMLIB
9164          ## CC just makes a GrossModule.
9165          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9166          reload_cmds='$CC -r -o $output$reload_objs'
9167          hardcode_direct=no
9168        ;;
9169        motorola)
9170          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9171          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9172        ;;
9173      esac
9174      runpath_var='LD_RUN_PATH'
9175      hardcode_shlibpath_var=no
9176      ;;
9177
9178    sysv4.3*)
9179      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9180      hardcode_shlibpath_var=no
9181      export_dynamic_flag_spec='-Bexport'
9182      ;;
9183
9184    sysv4*MP*)
9185      if test -d /usr/nec; then
9186        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187        hardcode_shlibpath_var=no
9188        runpath_var=LD_RUN_PATH
9189        hardcode_runpath_var=yes
9190        ld_shlibs=yes
9191      fi
9192      ;;
9193
9194    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9195      no_undefined_flag='${wl}-z,text'
9196      archive_cmds_need_lc=no
9197      hardcode_shlibpath_var=no
9198      runpath_var='LD_RUN_PATH'
9199
9200      if test "$GCC" = yes; then
9201        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9202        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9203      else
9204        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9205        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9206      fi
9207      ;;
9208
9209    sysv5* | sco3.2v5* | sco5v6*)
9210      # Note: We can NOT use -z defs as we might desire, because we do not
9211      # link with -lc, and that would cause any symbols used from libc to
9212      # always be unresolved, which means just about no library would
9213      # ever link correctly.  If we're not using GNU ld we use -z text
9214      # though, which does catch some bad symbols but isn't as heavy-handed
9215      # as -z defs.
9216      no_undefined_flag='${wl}-z,text'
9217      allow_undefined_flag='${wl}-z,nodefs'
9218      archive_cmds_need_lc=no
9219      hardcode_shlibpath_var=no
9220      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9221      hardcode_libdir_separator=':'
9222      link_all_deplibs=yes
9223      export_dynamic_flag_spec='${wl}-Bexport'
9224      runpath_var='LD_RUN_PATH'
9225
9226      if test "$GCC" = yes; then
9227        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9228        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9229      else
9230        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9231        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9232      fi
9233      ;;
9234
9235    uts4*)
9236      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237      hardcode_libdir_flag_spec='-L$libdir'
9238      hardcode_shlibpath_var=no
9239      ;;
9240
9241    *)
9242      ld_shlibs=no
9243      ;;
9244    esac
9245  fi
9246
9247echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9248echo "${ECHO_T}$ld_shlibs" >&6
9249test "$ld_shlibs" = no && can_build_shared=no
9250
9251#
9252# Do we need to explicitly link libc?
9253#
9254case "x$archive_cmds_need_lc" in
9255x|xyes)
9256  # Assume -lc should be added
9257  archive_cmds_need_lc=yes
9258
9259  if test "$enable_shared" = yes && test "$GCC" = yes; then
9260    case $archive_cmds in
9261    *'~'*)
9262      # FIXME: we may have to deal with multi-command sequences.
9263      ;;
9264    '$CC '*)
9265      # Test whether the compiler implicitly links with -lc since on some
9266      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9267      # to ld, don't add -lc before -lgcc.
9268      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9269echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9270      $rm conftest*
9271      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9272
9273      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9274  (eval $ac_compile) 2>&5
9275  ac_status=$?
9276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277  (exit $ac_status); } 2>conftest.err; then
9278        soname=conftest
9279        lib=conftest
9280        libobjs=conftest.$ac_objext
9281        deplibs=
9282        wl=$lt_prog_compiler_wl
9283        pic_flag=$lt_prog_compiler_pic
9284        compiler_flags=-v
9285        linker_flags=-v
9286        verstring=
9287        output_objdir=.
9288        libname=conftest
9289        lt_save_allow_undefined_flag=$allow_undefined_flag
9290        allow_undefined_flag=
9291        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9292  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9293  ac_status=$?
9294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295  (exit $ac_status); }
9296        then
9297          archive_cmds_need_lc=no
9298        else
9299          archive_cmds_need_lc=yes
9300        fi
9301        allow_undefined_flag=$lt_save_allow_undefined_flag
9302      else
9303        cat conftest.err 1>&5
9304      fi
9305      $rm conftest*
9306      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9307echo "${ECHO_T}$archive_cmds_need_lc" >&6
9308      ;;
9309    esac
9310  fi
9311  ;;
9312esac
9313
9314echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9315echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9316library_names_spec=
9317libname_spec='lib$name'
9318soname_spec=
9319shrext_cmds=".so"
9320postinstall_cmds=
9321postuninstall_cmds=
9322finish_cmds=
9323finish_eval=
9324shlibpath_var=
9325shlibpath_overrides_runpath=unknown
9326version_type=none
9327dynamic_linker="$host_os ld.so"
9328sys_lib_dlsearch_path_spec="/lib /usr/lib"
9329if test "$GCC" = yes; then
9330  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9331  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9332    # if the path contains ";" then we assume it to be the separator
9333    # otherwise default to the standard path separator (i.e. ":") - it is
9334    # assumed that no part of a normal pathname contains ";" but that should
9335    # okay in the real world where ";" in dirpaths is itself problematic.
9336    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9337  else
9338    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9339  fi
9340else
9341  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9342fi
9343need_lib_prefix=unknown
9344hardcode_into_libs=no
9345
9346# when you set need_version to no, make sure it does not cause -set_version
9347# flags to be left without arguments
9348need_version=unknown
9349
9350case $host_os in
9351aix3*)
9352  version_type=linux
9353  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9354  shlibpath_var=LIBPATH
9355
9356  # AIX 3 has no versioning support, so we append a major version to the name.
9357  soname_spec='${libname}${release}${shared_ext}$major'
9358  ;;
9359
9360aix4* | aix5*)
9361  version_type=linux
9362  need_lib_prefix=no
9363  need_version=no
9364  hardcode_into_libs=yes
9365  if test "$host_cpu" = ia64; then
9366    # AIX 5 supports IA64
9367    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9368    shlibpath_var=LD_LIBRARY_PATH
9369  else
9370    # With GCC up to 2.95.x, collect2 would create an import file
9371    # for dependence libraries.  The import file would start with
9372    # the line `#! .'.  This would cause the generated library to
9373    # depend on `.', always an invalid library.  This was fixed in
9374    # development snapshots of GCC prior to 3.0.
9375    case $host_os in
9376      aix4 | aix4.[01] | aix4.[01].*)
9377      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9378           echo ' yes '
9379           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9380        :
9381      else
9382        can_build_shared=no
9383      fi
9384      ;;
9385    esac
9386    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9387    # soname into executable. Probably we can add versioning support to
9388    # collect2, so additional links can be useful in future.
9389    if test "$aix_use_runtimelinking" = yes; then
9390      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9391      # instead of lib<name>.a to let people know that these are not
9392      # typical AIX shared libraries.
9393      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394    else
9395      # We preserve .a as extension for shared libraries through AIX4.2
9396      # and later when we are not doing run time linking.
9397      library_names_spec='${libname}${release}.a $libname.a'
9398      soname_spec='${libname}${release}${shared_ext}$major'
9399    fi
9400    shlibpath_var=LIBPATH
9401  fi
9402  ;;
9403
9404amigaos*)
9405  library_names_spec='$libname.ixlibrary $libname.a'
9406  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9407  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'
9408  ;;
9409
9410beos*)
9411  library_names_spec='${libname}${shared_ext}'
9412  dynamic_linker="$host_os ld.so"
9413  shlibpath_var=LIBRARY_PATH
9414  ;;
9415
9416bsdi[45]*)
9417  version_type=linux
9418  need_version=no
9419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9420  soname_spec='${libname}${release}${shared_ext}$major'
9421  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9422  shlibpath_var=LD_LIBRARY_PATH
9423  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9424  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9425  # the default ld.so.conf also contains /usr/contrib/lib and
9426  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9427  # libtool to hard-code these into programs
9428  ;;
9429
9430cygwin* | mingw* | pw32*)
9431  version_type=windows
9432  shrext_cmds=".dll"
9433  need_version=no
9434  need_lib_prefix=no
9435
9436  case $GCC,$host_os in
9437  yes,cygwin* | yes,mingw* | yes,pw32*)
9438    library_names_spec='$libname.dll.a'
9439    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9440    postinstall_cmds='base_file=`basename \${file}`~
9441      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9442      dldir=$destdir/`dirname \$dlpath`~
9443      test -d \$dldir || mkdir -p \$dldir~
9444      $install_prog $dir/$dlname \$dldir/$dlname~
9445      chmod a+x \$dldir/$dlname'
9446    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9447      dlpath=$dir/\$dldll~
9448       $rm \$dlpath'
9449    shlibpath_overrides_runpath=yes
9450
9451    case $host_os in
9452    cygwin*)
9453      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9454      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9455      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9456      ;;
9457    mingw*)
9458      # MinGW DLLs use traditional 'lib' prefix
9459      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9460      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9461      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9462        # It is most probably a Windows format PATH printed by
9463        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9464        # path with ; separators, and with drive letters. We can handle the
9465        # drive letters (cygwin fileutils understands them), so leave them,
9466        # especially as we might pass files found there to a mingw objdump,
9467        # which wouldn't understand a cygwinified path. Ahh.
9468        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9469      else
9470        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9471      fi
9472      ;;
9473    pw32*)
9474      # pw32 DLLs use 'pw' prefix rather than 'lib'
9475      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9476      ;;
9477    esac
9478    ;;
9479
9480  *)
9481    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9482    ;;
9483  esac
9484  dynamic_linker='Win32 ld.exe'
9485  # FIXME: first we should search . and the directory the executable is in
9486  shlibpath_var=PATH
9487  ;;
9488
9489darwin* | rhapsody*)
9490  dynamic_linker="$host_os dyld"
9491  version_type=darwin
9492  need_lib_prefix=no
9493  need_version=no
9494  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9495  soname_spec='${libname}${release}${major}$shared_ext'
9496  shlibpath_overrides_runpath=yes
9497  shlibpath_var=DYLD_LIBRARY_PATH
9498  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9499  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9500  if test "$GCC" = yes; then
9501    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"`
9502  else
9503    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9504  fi
9505  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9506  ;;
9507
9508dgux*)
9509  version_type=linux
9510  need_lib_prefix=no
9511  need_version=no
9512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9513  soname_spec='${libname}${release}${shared_ext}$major'
9514  shlibpath_var=LD_LIBRARY_PATH
9515  ;;
9516
9517freebsd1*)
9518  dynamic_linker=no
9519  ;;
9520
9521kfreebsd*-gnu)
9522  version_type=linux
9523  need_lib_prefix=no
9524  need_version=no
9525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9526  soname_spec='${libname}${release}${shared_ext}$major'
9527  shlibpath_var=LD_LIBRARY_PATH
9528  shlibpath_overrides_runpath=no
9529  hardcode_into_libs=yes
9530  dynamic_linker='GNU ld.so'
9531  ;;
9532
9533freebsd* | dragonfly*)
9534  # DragonFly does not have aout.  When/if they implement a new
9535  # versioning mechanism, adjust this.
9536  if test -x /usr/bin/objformat; then
9537    objformat=`/usr/bin/objformat`
9538  else
9539    case $host_os in
9540    freebsd[123]*) objformat=aout ;;
9541    *) objformat=elf ;;
9542    esac
9543  fi
9544  version_type=freebsd-$objformat
9545  case $version_type in
9546    freebsd-elf*)
9547      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9548      need_version=no
9549      need_lib_prefix=no
9550      ;;
9551    freebsd-*)
9552      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9553      need_version=yes
9554      ;;
9555  esac
9556  shlibpath_var=LD_LIBRARY_PATH
9557  case $host_os in
9558  freebsd2*)
9559    shlibpath_overrides_runpath=yes
9560    ;;
9561  freebsd3.[01]* | freebsdelf3.[01]*)
9562    shlibpath_overrides_runpath=yes
9563    hardcode_into_libs=yes
9564    ;;
9565  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9566  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9567    shlibpath_overrides_runpath=no
9568    hardcode_into_libs=yes
9569    ;;
9570  freebsd*) # from 4.6 on
9571    shlibpath_overrides_runpath=yes
9572    hardcode_into_libs=yes
9573    ;;
9574  esac
9575  ;;
9576
9577gnu*)
9578  version_type=linux
9579  need_lib_prefix=no
9580  need_version=no
9581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9582  soname_spec='${libname}${release}${shared_ext}$major'
9583  shlibpath_var=LD_LIBRARY_PATH
9584  hardcode_into_libs=yes
9585  ;;
9586
9587hpux9* | hpux10* | hpux11*)
9588  # Give a soname corresponding to the major version so that dld.sl refuses to
9589  # link against other versions.
9590  version_type=sunos
9591  need_lib_prefix=no
9592  need_version=no
9593  case $host_cpu in
9594  ia64*)
9595    shrext_cmds='.so'
9596    hardcode_into_libs=yes
9597    dynamic_linker="$host_os dld.so"
9598    shlibpath_var=LD_LIBRARY_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    if test "X$HPUX_IA64_MODE" = X32; then
9603      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9604    else
9605      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9606    fi
9607    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9608    ;;
9609   hppa*64*)
9610     shrext_cmds='.sl'
9611     hardcode_into_libs=yes
9612     dynamic_linker="$host_os dld.sl"
9613     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9614     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9616     soname_spec='${libname}${release}${shared_ext}$major'
9617     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9618     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9619     ;;
9620   *)
9621    shrext_cmds='.sl'
9622    dynamic_linker="$host_os dld.sl"
9623    shlibpath_var=SHLIB_PATH
9624    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9625    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9626    soname_spec='${libname}${release}${shared_ext}$major'
9627    ;;
9628  esac
9629  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9630  postinstall_cmds='chmod 555 $lib'
9631  ;;
9632
9633interix3*)
9634  version_type=linux
9635  need_lib_prefix=no
9636  need_version=no
9637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9638  soname_spec='${libname}${release}${shared_ext}$major'
9639  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9640  shlibpath_var=LD_LIBRARY_PATH
9641  shlibpath_overrides_runpath=no
9642  hardcode_into_libs=yes
9643  ;;
9644
9645irix5* | irix6* | nonstopux*)
9646  case $host_os in
9647    nonstopux*) version_type=nonstopux ;;
9648    *)
9649        if test "$lt_cv_prog_gnu_ld" = yes; then
9650                version_type=linux
9651        else
9652                version_type=irix
9653        fi ;;
9654  esac
9655  need_lib_prefix=no
9656  need_version=no
9657  soname_spec='${libname}${release}${shared_ext}$major'
9658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9659  case $host_os in
9660  irix5* | nonstopux*)
9661    libsuff= shlibsuff=
9662    ;;
9663  *)
9664    case $LD in # libtool.m4 will add one of these switches to LD
9665    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9666      libsuff= shlibsuff= libmagic=32-bit;;
9667    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9668      libsuff=32 shlibsuff=N32 libmagic=N32;;
9669    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9670      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9671    *) libsuff= shlibsuff= libmagic=never-match;;
9672    esac
9673    ;;
9674  esac
9675  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9676  shlibpath_overrides_runpath=no
9677  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9678  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9679  hardcode_into_libs=yes
9680  ;;
9681
9682# No shared lib support for Linux oldld, aout, or coff.
9683linux*oldld* | linux*aout* | linux*coff*)
9684  dynamic_linker=no
9685  ;;
9686
9687# This must be Linux ELF.
9688linux*)
9689  version_type=linux
9690  need_lib_prefix=no
9691  need_version=no
9692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693  soname_spec='${libname}${release}${shared_ext}$major'
9694  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9695  shlibpath_var=LD_LIBRARY_PATH
9696  shlibpath_overrides_runpath=no
9697  # This implies no fast_install, which is unacceptable.
9698  # Some rework will be needed to allow for fast_install
9699  # before this can be enabled.
9700  hardcode_into_libs=yes
9701
9702  # Append ld.so.conf contents to the search path
9703  if test -f /etc/ld.so.conf; then
9704    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' ' '`
9705    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9706  fi
9707
9708  # We used to test for /lib/ld.so.1 and disable shared libraries on
9709  # powerpc, because MkLinux only supported shared libraries with the
9710  # GNU dynamic linker.  Since this was broken with cross compilers,
9711  # most powerpc-linux boxes support dynamic linking these days and
9712  # people can always --disable-shared, the test was removed, and we
9713  # assume the GNU/Linux dynamic linker is in use.
9714  dynamic_linker='GNU/Linux ld.so'
9715  ;;
9716
9717knetbsd*-gnu)
9718  version_type=linux
9719  need_lib_prefix=no
9720  need_version=no
9721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9722  soname_spec='${libname}${release}${shared_ext}$major'
9723  shlibpath_var=LD_LIBRARY_PATH
9724  shlibpath_overrides_runpath=no
9725  hardcode_into_libs=yes
9726  dynamic_linker='GNU ld.so'
9727  ;;
9728
9729netbsd*)
9730  version_type=sunos
9731  need_lib_prefix=no
9732  need_version=no
9733  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9734    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9735    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9736    dynamic_linker='NetBSD (a.out) ld.so'
9737  else
9738    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9739    soname_spec='${libname}${release}${shared_ext}$major'
9740    dynamic_linker='NetBSD ld.elf_so'
9741  fi
9742  shlibpath_var=LD_LIBRARY_PATH
9743  shlibpath_overrides_runpath=yes
9744  hardcode_into_libs=yes
9745  ;;
9746
9747newsos6)
9748  version_type=linux
9749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750  shlibpath_var=LD_LIBRARY_PATH
9751  shlibpath_overrides_runpath=yes
9752  ;;
9753
9754nto-qnx*)
9755  version_type=linux
9756  need_lib_prefix=no
9757  need_version=no
9758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9759  soname_spec='${libname}${release}${shared_ext}$major'
9760  shlibpath_var=LD_LIBRARY_PATH
9761  shlibpath_overrides_runpath=yes
9762  ;;
9763
9764openbsd*)
9765  version_type=sunos
9766  sys_lib_dlsearch_path_spec="/usr/lib"
9767  need_lib_prefix=no
9768  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9769  case $host_os in
9770    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9771    *)                         need_version=no  ;;
9772  esac
9773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9774  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9775  shlibpath_var=LD_LIBRARY_PATH
9776  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9777    case $host_os in
9778      openbsd2.[89] | openbsd2.[89].*)
9779        shlibpath_overrides_runpath=no
9780        ;;
9781      *)
9782        shlibpath_overrides_runpath=yes
9783        ;;
9784      esac
9785  else
9786    shlibpath_overrides_runpath=yes
9787  fi
9788  ;;
9789
9790os2*)
9791  libname_spec='$name'
9792  shrext_cmds=".dll"
9793  need_lib_prefix=no
9794  library_names_spec='$libname${shared_ext} $libname.a'
9795  dynamic_linker='OS/2 ld.exe'
9796  shlibpath_var=LIBPATH
9797  ;;
9798
9799osf3* | osf4* | osf5*)
9800  version_type=osf
9801  need_lib_prefix=no
9802  need_version=no
9803  soname_spec='${libname}${release}${shared_ext}$major'
9804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805  shlibpath_var=LD_LIBRARY_PATH
9806  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9807  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9808  ;;
9809
9810solaris*)
9811  version_type=linux
9812  need_lib_prefix=no
9813  need_version=no
9814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815  soname_spec='${libname}${release}${shared_ext}$major'
9816  shlibpath_var=LD_LIBRARY_PATH
9817  shlibpath_overrides_runpath=yes
9818  hardcode_into_libs=yes
9819  # ldd complains unless libraries are executable
9820  postinstall_cmds='chmod +x $lib'
9821  ;;
9822
9823sunos4*)
9824  version_type=sunos
9825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9826  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9827  shlibpath_var=LD_LIBRARY_PATH
9828  shlibpath_overrides_runpath=yes
9829  if test "$with_gnu_ld" = yes; then
9830    need_lib_prefix=no
9831  fi
9832  need_version=yes
9833  ;;
9834
9835sysv4 | sysv4.3*)
9836  version_type=linux
9837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838  soname_spec='${libname}${release}${shared_ext}$major'
9839  shlibpath_var=LD_LIBRARY_PATH
9840  case $host_vendor in
9841    sni)
9842      shlibpath_overrides_runpath=no
9843      need_lib_prefix=no
9844      export_dynamic_flag_spec='${wl}-Blargedynsym'
9845      runpath_var=LD_RUN_PATH
9846      ;;
9847    siemens)
9848      need_lib_prefix=no
9849      ;;
9850    motorola)
9851      need_lib_prefix=no
9852      need_version=no
9853      shlibpath_overrides_runpath=no
9854      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9855      ;;
9856  esac
9857  ;;
9858
9859sysv4*MP*)
9860  if test -d /usr/nec ;then
9861    version_type=linux
9862    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9863    soname_spec='$libname${shared_ext}.$major'
9864    shlibpath_var=LD_LIBRARY_PATH
9865  fi
9866  ;;
9867
9868sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9869  version_type=freebsd-elf
9870  need_lib_prefix=no
9871  need_version=no
9872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9873  soname_spec='${libname}${release}${shared_ext}$major'
9874  shlibpath_var=LD_LIBRARY_PATH
9875  hardcode_into_libs=yes
9876  if test "$with_gnu_ld" = yes; then
9877    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9878    shlibpath_overrides_runpath=no
9879  else
9880    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9881    shlibpath_overrides_runpath=yes
9882    case $host_os in
9883      sco3.2v5*)
9884        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9885        ;;
9886    esac
9887  fi
9888  sys_lib_dlsearch_path_spec='/usr/lib'
9889  ;;
9890
9891uts4*)
9892  version_type=linux
9893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9894  soname_spec='${libname}${release}${shared_ext}$major'
9895  shlibpath_var=LD_LIBRARY_PATH
9896  ;;
9897
9898*)
9899  dynamic_linker=no
9900  ;;
9901esac
9902echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9903echo "${ECHO_T}$dynamic_linker" >&6
9904test "$dynamic_linker" = no && can_build_shared=no
9905
9906variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9907if test "$GCC" = yes; then
9908  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9909fi
9910
9911echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9912echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9913hardcode_action=
9914if test -n "$hardcode_libdir_flag_spec" || \
9915   test -n "$runpath_var" || \
9916   test "X$hardcode_automatic" = "Xyes" ; then
9917
9918  # We can hardcode non-existant directories.
9919  if test "$hardcode_direct" != no &&
9920     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9921     # have to relink, otherwise we might link with an installed library
9922     # when we should be linking with a yet-to-be-installed one
9923     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9924     test "$hardcode_minus_L" != no; then
9925    # Linking always hardcodes the temporary library directory.
9926    hardcode_action=relink
9927  else
9928    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9929    hardcode_action=immediate
9930  fi
9931else
9932  # We cannot hardcode anything, or else we can only hardcode existing
9933  # directories.
9934  hardcode_action=unsupported
9935fi
9936echo "$as_me:$LINENO: result: $hardcode_action" >&5
9937echo "${ECHO_T}$hardcode_action" >&6
9938
9939if test "$hardcode_action" = relink; then
9940  # Fast installation is not supported
9941  enable_fast_install=no
9942elif test "$shlibpath_overrides_runpath" = yes ||
9943     test "$enable_shared" = no; then
9944  # Fast installation is not necessary
9945  enable_fast_install=needless
9946fi
9947
9948striplib=
9949old_striplib=
9950echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9951echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9952if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9953  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9954  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9955  echo "$as_me:$LINENO: result: yes" >&5
9956echo "${ECHO_T}yes" >&6
9957else
9958# FIXME - insert some real tests, host_os isn't really good enough
9959  case $host_os in
9960   darwin*)
9961       if test -n "$STRIP" ; then
9962         striplib="$STRIP -x"
9963         echo "$as_me:$LINENO: result: yes" >&5
9964echo "${ECHO_T}yes" >&6
9965       else
9966  echo "$as_me:$LINENO: result: no" >&5
9967echo "${ECHO_T}no" >&6
9968fi
9969       ;;
9970   *)
9971  echo "$as_me:$LINENO: result: no" >&5
9972echo "${ECHO_T}no" >&6
9973    ;;
9974  esac
9975fi
9976
9977if test "x$enable_dlopen" != xyes; then
9978  enable_dlopen=unknown
9979  enable_dlopen_self=unknown
9980  enable_dlopen_self_static=unknown
9981else
9982  lt_cv_dlopen=no
9983  lt_cv_dlopen_libs=
9984
9985  case $host_os in
9986  beos*)
9987    lt_cv_dlopen="load_add_on"
9988    lt_cv_dlopen_libs=
9989    lt_cv_dlopen_self=yes
9990    ;;
9991
9992  mingw* | pw32*)
9993    lt_cv_dlopen="LoadLibrary"
9994    lt_cv_dlopen_libs=
9995   ;;
9996
9997  cygwin*)
9998    lt_cv_dlopen="dlopen"
9999    lt_cv_dlopen_libs=
10000   ;;
10001
10002  darwin*)
10003  # if libdl is installed we need to link against it
10004    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10005echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10006if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10007  echo $ECHO_N "(cached) $ECHO_C" >&6
10008else
10009  ac_check_lib_save_LIBS=$LIBS
10010LIBS="-ldl  $LIBS"
10011cat >conftest.$ac_ext <<_ACEOF
10012/* confdefs.h.  */
10013_ACEOF
10014cat confdefs.h >>conftest.$ac_ext
10015cat >>conftest.$ac_ext <<_ACEOF
10016/* end confdefs.h.  */
10017
10018/* Override any gcc2 internal prototype to avoid an error.  */
10019#ifdef __cplusplus
10020extern "C"
10021#endif
10022/* We use char because int might match the return type of a gcc2
10023   builtin and then its argument prototype would still apply.  */
10024char dlopen ();
10025int
10026main ()
10027{
10028dlopen ();
10029  ;
10030  return 0;
10031}
10032_ACEOF
10033rm -f conftest.$ac_objext conftest$ac_exeext
10034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035  (eval $ac_link) 2>conftest.er1
10036  ac_status=$?
10037  grep -v '^ *+' conftest.er1 >conftest.err
10038  rm -f conftest.er1
10039  cat conftest.err >&5
10040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041  (exit $ac_status); } &&
10042         { ac_try='test -z "$ac_c_werror_flag"
10043                         || test ! -s conftest.err'
10044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045  (eval $ac_try) 2>&5
10046  ac_status=$?
10047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048  (exit $ac_status); }; } &&
10049         { ac_try='test -s conftest$ac_exeext'
10050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051  (eval $ac_try) 2>&5
10052  ac_status=$?
10053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054  (exit $ac_status); }; }; then
10055  ac_cv_lib_dl_dlopen=yes
10056else
10057  echo "$as_me: failed program was:" >&5
10058sed 's/^/| /' conftest.$ac_ext >&5
10059
10060ac_cv_lib_dl_dlopen=no
10061fi
10062rm -f conftest.err conftest.$ac_objext \
10063      conftest$ac_exeext conftest.$ac_ext
10064LIBS=$ac_check_lib_save_LIBS
10065fi
10066echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10067echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10068if test $ac_cv_lib_dl_dlopen = yes; then
10069  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10070else
10071
10072    lt_cv_dlopen="dyld"
10073    lt_cv_dlopen_libs=
10074    lt_cv_dlopen_self=yes
10075
10076fi
10077
10078   ;;
10079
10080  *)
10081    echo "$as_me:$LINENO: checking for shl_load" >&5
10082echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10083if test "${ac_cv_func_shl_load+set}" = set; then
10084  echo $ECHO_N "(cached) $ECHO_C" >&6
10085else
10086  cat >conftest.$ac_ext <<_ACEOF
10087/* confdefs.h.  */
10088_ACEOF
10089cat confdefs.h >>conftest.$ac_ext
10090cat >>conftest.$ac_ext <<_ACEOF
10091/* end confdefs.h.  */
10092/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10093   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10094#define shl_load innocuous_shl_load
10095
10096/* System header to define __stub macros and hopefully few prototypes,
10097    which can conflict with char shl_load (); below.
10098    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10099    <limits.h> exists even on freestanding compilers.  */
10100
10101#ifdef __STDC__
10102# include <limits.h>
10103#else
10104# include <assert.h>
10105#endif
10106
10107#undef shl_load
10108
10109/* Override any gcc2 internal prototype to avoid an error.  */
10110#ifdef __cplusplus
10111extern "C"
10112{
10113#endif
10114/* We use char because int might match the return type of a gcc2
10115   builtin and then its argument prototype would still apply.  */
10116char shl_load ();
10117/* The GNU C library defines this for functions which it implements
10118    to always fail with ENOSYS.  Some functions are actually named
10119    something starting with __ and the normal name is an alias.  */
10120#if defined (__stub_shl_load) || defined (__stub___shl_load)
10121choke me
10122#else
10123char (*f) () = shl_load;
10124#endif
10125#ifdef __cplusplus
10126}
10127#endif
10128
10129int
10130main ()
10131{
10132return f != shl_load;
10133  ;
10134  return 0;
10135}
10136_ACEOF
10137rm -f conftest.$ac_objext conftest$ac_exeext
10138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139  (eval $ac_link) 2>conftest.er1
10140  ac_status=$?
10141  grep -v '^ *+' conftest.er1 >conftest.err
10142  rm -f conftest.er1
10143  cat conftest.err >&5
10144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145  (exit $ac_status); } &&
10146         { ac_try='test -z "$ac_c_werror_flag"
10147                         || test ! -s conftest.err'
10148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10149  (eval $ac_try) 2>&5
10150  ac_status=$?
10151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152  (exit $ac_status); }; } &&
10153         { ac_try='test -s conftest$ac_exeext'
10154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155  (eval $ac_try) 2>&5
10156  ac_status=$?
10157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158  (exit $ac_status); }; }; then
10159  ac_cv_func_shl_load=yes
10160else
10161  echo "$as_me: failed program was:" >&5
10162sed 's/^/| /' conftest.$ac_ext >&5
10163
10164ac_cv_func_shl_load=no
10165fi
10166rm -f conftest.err conftest.$ac_objext \
10167      conftest$ac_exeext conftest.$ac_ext
10168fi
10169echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10170echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10171if test $ac_cv_func_shl_load = yes; then
10172  lt_cv_dlopen="shl_load"
10173else
10174  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10175echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10176if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10177  echo $ECHO_N "(cached) $ECHO_C" >&6
10178else
10179  ac_check_lib_save_LIBS=$LIBS
10180LIBS="-ldld  $LIBS"
10181cat >conftest.$ac_ext <<_ACEOF
10182/* confdefs.h.  */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h.  */
10187
10188/* Override any gcc2 internal prototype to avoid an error.  */
10189#ifdef __cplusplus
10190extern "C"
10191#endif
10192/* We use char because int might match the return type of a gcc2
10193   builtin and then its argument prototype would still apply.  */
10194char shl_load ();
10195int
10196main ()
10197{
10198shl_load ();
10199  ;
10200  return 0;
10201}
10202_ACEOF
10203rm -f conftest.$ac_objext conftest$ac_exeext
10204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205  (eval $ac_link) 2>conftest.er1
10206  ac_status=$?
10207  grep -v '^ *+' conftest.er1 >conftest.err
10208  rm -f conftest.er1
10209  cat conftest.err >&5
10210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211  (exit $ac_status); } &&
10212         { ac_try='test -z "$ac_c_werror_flag"
10213                         || test ! -s conftest.err'
10214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215  (eval $ac_try) 2>&5
10216  ac_status=$?
10217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218  (exit $ac_status); }; } &&
10219         { ac_try='test -s conftest$ac_exeext'
10220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221  (eval $ac_try) 2>&5
10222  ac_status=$?
10223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224  (exit $ac_status); }; }; then
10225  ac_cv_lib_dld_shl_load=yes
10226else
10227  echo "$as_me: failed program was:" >&5
10228sed 's/^/| /' conftest.$ac_ext >&5
10229
10230ac_cv_lib_dld_shl_load=no
10231fi
10232rm -f conftest.err conftest.$ac_objext \
10233      conftest$ac_exeext conftest.$ac_ext
10234LIBS=$ac_check_lib_save_LIBS
10235fi
10236echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10237echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10238if test $ac_cv_lib_dld_shl_load = yes; then
10239  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10240else
10241  echo "$as_me:$LINENO: checking for dlopen" >&5
10242echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10243if test "${ac_cv_func_dlopen+set}" = set; then
10244  echo $ECHO_N "(cached) $ECHO_C" >&6
10245else
10246  cat >conftest.$ac_ext <<_ACEOF
10247/* confdefs.h.  */
10248_ACEOF
10249cat confdefs.h >>conftest.$ac_ext
10250cat >>conftest.$ac_ext <<_ACEOF
10251/* end confdefs.h.  */
10252/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10253   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10254#define dlopen innocuous_dlopen
10255
10256/* System header to define __stub macros and hopefully few prototypes,
10257    which can conflict with char dlopen (); below.
10258    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10259    <limits.h> exists even on freestanding compilers.  */
10260
10261#ifdef __STDC__
10262# include <limits.h>
10263#else
10264# include <assert.h>
10265#endif
10266
10267#undef dlopen
10268
10269/* Override any gcc2 internal prototype to avoid an error.  */
10270#ifdef __cplusplus
10271extern "C"
10272{
10273#endif
10274/* We use char because int might match the return type of a gcc2
10275   builtin and then its argument prototype would still apply.  */
10276char dlopen ();
10277/* The GNU C library defines this for functions which it implements
10278    to always fail with ENOSYS.  Some functions are actually named
10279    something starting with __ and the normal name is an alias.  */
10280#if defined (__stub_dlopen) || defined (__stub___dlopen)
10281choke me
10282#else
10283char (*f) () = dlopen;
10284#endif
10285#ifdef __cplusplus
10286}
10287#endif
10288
10289int
10290main ()
10291{
10292return f != dlopen;
10293  ;
10294  return 0;
10295}
10296_ACEOF
10297rm -f conftest.$ac_objext conftest$ac_exeext
10298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299  (eval $ac_link) 2>conftest.er1
10300  ac_status=$?
10301  grep -v '^ *+' conftest.er1 >conftest.err
10302  rm -f conftest.er1
10303  cat conftest.err >&5
10304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305  (exit $ac_status); } &&
10306         { ac_try='test -z "$ac_c_werror_flag"
10307                         || test ! -s conftest.err'
10308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309  (eval $ac_try) 2>&5
10310  ac_status=$?
10311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312  (exit $ac_status); }; } &&
10313         { ac_try='test -s conftest$ac_exeext'
10314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315  (eval $ac_try) 2>&5
10316  ac_status=$?
10317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318  (exit $ac_status); }; }; then
10319  ac_cv_func_dlopen=yes
10320else
10321  echo "$as_me: failed program was:" >&5
10322sed 's/^/| /' conftest.$ac_ext >&5
10323
10324ac_cv_func_dlopen=no
10325fi
10326rm -f conftest.err conftest.$ac_objext \
10327      conftest$ac_exeext conftest.$ac_ext
10328fi
10329echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10330echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10331if test $ac_cv_func_dlopen = yes; then
10332  lt_cv_dlopen="dlopen"
10333else
10334  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10335echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10336if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10337  echo $ECHO_N "(cached) $ECHO_C" >&6
10338else
10339  ac_check_lib_save_LIBS=$LIBS
10340LIBS="-ldl  $LIBS"
10341cat >conftest.$ac_ext <<_ACEOF
10342/* confdefs.h.  */
10343_ACEOF
10344cat confdefs.h >>conftest.$ac_ext
10345cat >>conftest.$ac_ext <<_ACEOF
10346/* end confdefs.h.  */
10347
10348/* Override any gcc2 internal prototype to avoid an error.  */
10349#ifdef __cplusplus
10350extern "C"
10351#endif
10352/* We use char because int might match the return type of a gcc2
10353   builtin and then its argument prototype would still apply.  */
10354char dlopen ();
10355int
10356main ()
10357{
10358dlopen ();
10359  ;
10360  return 0;
10361}
10362_ACEOF
10363rm -f conftest.$ac_objext conftest$ac_exeext
10364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365  (eval $ac_link) 2>conftest.er1
10366  ac_status=$?
10367  grep -v '^ *+' conftest.er1 >conftest.err
10368  rm -f conftest.er1
10369  cat conftest.err >&5
10370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371  (exit $ac_status); } &&
10372         { ac_try='test -z "$ac_c_werror_flag"
10373                         || test ! -s conftest.err'
10374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375  (eval $ac_try) 2>&5
10376  ac_status=$?
10377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378  (exit $ac_status); }; } &&
10379         { ac_try='test -s conftest$ac_exeext'
10380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381  (eval $ac_try) 2>&5
10382  ac_status=$?
10383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384  (exit $ac_status); }; }; then
10385  ac_cv_lib_dl_dlopen=yes
10386else
10387  echo "$as_me: failed program was:" >&5
10388sed 's/^/| /' conftest.$ac_ext >&5
10389
10390ac_cv_lib_dl_dlopen=no
10391fi
10392rm -f conftest.err conftest.$ac_objext \
10393      conftest$ac_exeext conftest.$ac_ext
10394LIBS=$ac_check_lib_save_LIBS
10395fi
10396echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10397echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10398if test $ac_cv_lib_dl_dlopen = yes; then
10399  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10400else
10401  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10402echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10403if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10404  echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406  ac_check_lib_save_LIBS=$LIBS
10407LIBS="-lsvld  $LIBS"
10408cat >conftest.$ac_ext <<_ACEOF
10409/* confdefs.h.  */
10410_ACEOF
10411cat confdefs.h >>conftest.$ac_ext
10412cat >>conftest.$ac_ext <<_ACEOF
10413/* end confdefs.h.  */
10414
10415/* Override any gcc2 internal prototype to avoid an error.  */
10416#ifdef __cplusplus
10417extern "C"
10418#endif
10419/* We use char because int might match the return type of a gcc2
10420   builtin and then its argument prototype would still apply.  */
10421char dlopen ();
10422int
10423main ()
10424{
10425dlopen ();
10426  ;
10427  return 0;
10428}
10429_ACEOF
10430rm -f conftest.$ac_objext conftest$ac_exeext
10431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432  (eval $ac_link) 2>conftest.er1
10433  ac_status=$?
10434  grep -v '^ *+' conftest.er1 >conftest.err
10435  rm -f conftest.er1
10436  cat conftest.err >&5
10437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438  (exit $ac_status); } &&
10439         { ac_try='test -z "$ac_c_werror_flag"
10440                         || test ! -s conftest.err'
10441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442  (eval $ac_try) 2>&5
10443  ac_status=$?
10444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445  (exit $ac_status); }; } &&
10446         { ac_try='test -s conftest$ac_exeext'
10447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448  (eval $ac_try) 2>&5
10449  ac_status=$?
10450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451  (exit $ac_status); }; }; then
10452  ac_cv_lib_svld_dlopen=yes
10453else
10454  echo "$as_me: failed program was:" >&5
10455sed 's/^/| /' conftest.$ac_ext >&5
10456
10457ac_cv_lib_svld_dlopen=no
10458fi
10459rm -f conftest.err conftest.$ac_objext \
10460      conftest$ac_exeext conftest.$ac_ext
10461LIBS=$ac_check_lib_save_LIBS
10462fi
10463echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10464echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10465if test $ac_cv_lib_svld_dlopen = yes; then
10466  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10467else
10468  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10469echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10470if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10471  echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
10473  ac_check_lib_save_LIBS=$LIBS
10474LIBS="-ldld  $LIBS"
10475cat >conftest.$ac_ext <<_ACEOF
10476/* confdefs.h.  */
10477_ACEOF
10478cat confdefs.h >>conftest.$ac_ext
10479cat >>conftest.$ac_ext <<_ACEOF
10480/* end confdefs.h.  */
10481
10482/* Override any gcc2 internal prototype to avoid an error.  */
10483#ifdef __cplusplus
10484extern "C"
10485#endif
10486/* We use char because int might match the return type of a gcc2
10487   builtin and then its argument prototype would still apply.  */
10488char dld_link ();
10489int
10490main ()
10491{
10492dld_link ();
10493  ;
10494  return 0;
10495}
10496_ACEOF
10497rm -f conftest.$ac_objext conftest$ac_exeext
10498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10499  (eval $ac_link) 2>conftest.er1
10500  ac_status=$?
10501  grep -v '^ *+' conftest.er1 >conftest.err
10502  rm -f conftest.er1
10503  cat conftest.err >&5
10504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505  (exit $ac_status); } &&
10506         { ac_try='test -z "$ac_c_werror_flag"
10507                         || test ! -s conftest.err'
10508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509  (eval $ac_try) 2>&5
10510  ac_status=$?
10511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512  (exit $ac_status); }; } &&
10513         { ac_try='test -s conftest$ac_exeext'
10514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515  (eval $ac_try) 2>&5
10516  ac_status=$?
10517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518  (exit $ac_status); }; }; then
10519  ac_cv_lib_dld_dld_link=yes
10520else
10521  echo "$as_me: failed program was:" >&5
10522sed 's/^/| /' conftest.$ac_ext >&5
10523
10524ac_cv_lib_dld_dld_link=no
10525fi
10526rm -f conftest.err conftest.$ac_objext \
10527      conftest$ac_exeext conftest.$ac_ext
10528LIBS=$ac_check_lib_save_LIBS
10529fi
10530echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10531echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10532if test $ac_cv_lib_dld_dld_link = yes; then
10533  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10534fi
10535
10536
10537fi
10538
10539
10540fi
10541
10542
10543fi
10544
10545
10546fi
10547
10548
10549fi
10550
10551    ;;
10552  esac
10553
10554  if test "x$lt_cv_dlopen" != xno; then
10555    enable_dlopen=yes
10556  else
10557    enable_dlopen=no
10558  fi
10559
10560  case $lt_cv_dlopen in
10561  dlopen)
10562    save_CPPFLAGS="$CPPFLAGS"
10563    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10564
10565    save_LDFLAGS="$LDFLAGS"
10566    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10567
10568    save_LIBS="$LIBS"
10569    LIBS="$lt_cv_dlopen_libs $LIBS"
10570
10571    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10572echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10573if test "${lt_cv_dlopen_self+set}" = set; then
10574  echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576          if test "$cross_compiling" = yes; then :
10577  lt_cv_dlopen_self=cross
10578else
10579  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10580  lt_status=$lt_dlunknown
10581  cat > conftest.$ac_ext <<EOF
10582#line 10582 "configure"
10583#include "confdefs.h"
10584
10585#if HAVE_DLFCN_H
10586#include <dlfcn.h>
10587#endif
10588
10589#include <stdio.h>
10590
10591#ifdef RTLD_GLOBAL
10592#  define LT_DLGLOBAL           RTLD_GLOBAL
10593#else
10594#  ifdef DL_GLOBAL
10595#    define LT_DLGLOBAL         DL_GLOBAL
10596#  else
10597#    define LT_DLGLOBAL         0
10598#  endif
10599#endif
10600
10601/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10602   find out it does not work in some platform. */
10603#ifndef LT_DLLAZY_OR_NOW
10604#  ifdef RTLD_LAZY
10605#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10606#  else
10607#    ifdef DL_LAZY
10608#      define LT_DLLAZY_OR_NOW          DL_LAZY
10609#    else
10610#      ifdef RTLD_NOW
10611#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10612#      else
10613#        ifdef DL_NOW
10614#          define LT_DLLAZY_OR_NOW      DL_NOW
10615#        else
10616#          define LT_DLLAZY_OR_NOW      0
10617#        endif
10618#      endif
10619#    endif
10620#  endif
10621#endif
10622
10623#ifdef __cplusplus
10624extern "C" void exit (int);
10625#endif
10626
10627void fnord() { int i=42;}
10628int main ()
10629{
10630  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10631  int status = $lt_dlunknown;
10632
10633  if (self)
10634    {
10635      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10636      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10637      /* dlclose (self); */
10638    }
10639  else
10640    puts (dlerror ());
10641
10642    exit (status);
10643}
10644EOF
10645  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10646  (eval $ac_link) 2>&5
10647  ac_status=$?
10648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10650    (./conftest; exit; ) >&5 2>/dev/null
10651    lt_status=$?
10652    case x$lt_status in
10653      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10654      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10655      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10656    esac
10657  else :
10658    # compilation failed
10659    lt_cv_dlopen_self=no
10660  fi
10661fi
10662rm -fr conftest*
10663
10664
10665fi
10666echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10667echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10668
10669    if test "x$lt_cv_dlopen_self" = xyes; then
10670      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10671      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10672echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10673if test "${lt_cv_dlopen_self_static+set}" = set; then
10674  echo $ECHO_N "(cached) $ECHO_C" >&6
10675else
10676          if test "$cross_compiling" = yes; then :
10677  lt_cv_dlopen_self_static=cross
10678else
10679  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10680  lt_status=$lt_dlunknown
10681  cat > conftest.$ac_ext <<EOF
10682#line 10682 "configure"
10683#include "confdefs.h"
10684
10685#if HAVE_DLFCN_H
10686#include <dlfcn.h>
10687#endif
10688
10689#include <stdio.h>
10690
10691#ifdef RTLD_GLOBAL
10692#  define LT_DLGLOBAL           RTLD_GLOBAL
10693#else
10694#  ifdef DL_GLOBAL
10695#    define LT_DLGLOBAL         DL_GLOBAL
10696#  else
10697#    define LT_DLGLOBAL         0
10698#  endif
10699#endif
10700
10701/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10702   find out it does not work in some platform. */
10703#ifndef LT_DLLAZY_OR_NOW
10704#  ifdef RTLD_LAZY
10705#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10706#  else
10707#    ifdef DL_LAZY
10708#      define LT_DLLAZY_OR_NOW          DL_LAZY
10709#    else
10710#      ifdef RTLD_NOW
10711#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10712#      else
10713#        ifdef DL_NOW
10714#          define LT_DLLAZY_OR_NOW      DL_NOW
10715#        else
10716#          define LT_DLLAZY_OR_NOW      0
10717#        endif
10718#      endif
10719#    endif
10720#  endif
10721#endif
10722
10723#ifdef __cplusplus
10724extern "C" void exit (int);
10725#endif
10726
10727void fnord() { int i=42;}
10728int main ()
10729{
10730  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10731  int status = $lt_dlunknown;
10732
10733  if (self)
10734    {
10735      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10736      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10737      /* dlclose (self); */
10738    }
10739  else
10740    puts (dlerror ());
10741
10742    exit (status);
10743}
10744EOF
10745  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10746  (eval $ac_link) 2>&5
10747  ac_status=$?
10748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10750    (./conftest; exit; ) >&5 2>/dev/null
10751    lt_status=$?
10752    case x$lt_status in
10753      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10754      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10755      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10756    esac
10757  else :
10758    # compilation failed
10759    lt_cv_dlopen_self_static=no
10760  fi
10761fi
10762rm -fr conftest*
10763
10764
10765fi
10766echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10767echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10768    fi
10769
10770    CPPFLAGS="$save_CPPFLAGS"
10771    LDFLAGS="$save_LDFLAGS"
10772    LIBS="$save_LIBS"
10773    ;;
10774  esac
10775
10776  case $lt_cv_dlopen_self in
10777  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10778  *) enable_dlopen_self=unknown ;;
10779  esac
10780
10781  case $lt_cv_dlopen_self_static in
10782  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10783  *) enable_dlopen_self_static=unknown ;;
10784  esac
10785fi
10786
10787
10788# Report which library types will actually be built
10789echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10790echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10791echo "$as_me:$LINENO: result: $can_build_shared" >&5
10792echo "${ECHO_T}$can_