source: ThirdParty/Blas/releases/1.0.2/configure @ 1038

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

synchronizing Blas stable with trunk (rev 216)

  • Property svn:executable set to *
File size: 698.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyBlas 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyBlas 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyBlas 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-blas compile this project (Blas) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS. Set to mingw to use gcc/g++/ld with
1077                          -mno-cygwin. Set to msvc to use cl/link. Default
1078                          when mentioned: mingw. Default when not mentioned:
1079                          disabled.
1080  --enable-static[=PKGS]
1081                          build static libraries [default=no]
1082  --disable-dependency-tracking  speeds up one-time build
1083  --enable-dependency-tracking   do not reject slow dependency extractors
1084  --enable-maintainer-mode  enable make rules and dependencies not useful
1085                          (and sometimes confusing) to the casual installer
1086  --enable-shared[=PKGS]
1087                          build shared libraries [default=yes]
1088  --enable-fast-install[=PKGS]
1089                          optimize for fast installation [default=yes]
1090  --disable-libtool-lock  avoid locking (might break parallel builds)
1091
1092Optional Packages:
1093  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1094  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1095  --with-blas-verbosity specify the debug verbosity level for project Blas
1096  --with-blas-checklevel specify the sanity check level for project Blas
1097  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1098  --with-pic              try to use only PIC/non-PIC objects [default=use
1099                          both]
1100  --with-tags[=TAGS]
1101                          include additional configurations [automatic]
1102
1103Some influential environment variables:
1104  CDEFS       Additional -D flags to be used when compiling C code.
1105  ADD_CFLAGS  Additional C compiler options
1106  DBG_CFLAGS  Debug C compiler options
1107  OPT_CFLAGS  Optimize C compiler options
1108  CC          C compiler command
1109  CFLAGS      C compiler flags
1110  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1111              nonstandard directory <lib dir>
1112  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1113              headers in a nonstandard directory <include dir>
1114  MPICC       C MPI Compiler
1115  ADD_FFLAGS  Additional Fortran compiler options
1116  DBG_FFLAGS  Debug Fortran compiler options
1117  OPT_FFLAGS  Optimize Fortran compiler options
1118  F77         Fortran 77 compiler command
1119  FFLAGS      Fortran 77 compiler flags
1120  MPIF77      Fortran MPI Compiler
1121  CPP         C preprocessor
1122  CXX         C++ compiler command
1123  CXXFLAGS    C++ compiler flags
1124  CXXCPP      C++ preprocessor
1125
1126Use these variables to override the choices made by `configure' or to help
1127it to find libraries and programs with nonstandard names/locations.
1128
1129Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1130_ACEOF
1131fi
1132
1133if test "$ac_init_help" = "recursive"; then
1134  # If there are subdirs, report their specific --help.
1135  ac_popdir=`pwd`
1136  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1137    test -d $ac_dir || continue
1138    ac_builddir=.
1139
1140if test "$ac_dir" != .; then
1141  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1142  # A "../" for each directory in $ac_dir_suffix.
1143  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1144else
1145  ac_dir_suffix= ac_top_builddir=
1146fi
1147
1148case $srcdir in
1149  .)  # No --srcdir option.  We are building in place.
1150    ac_srcdir=.
1151    if test -z "$ac_top_builddir"; then
1152       ac_top_srcdir=.
1153    else
1154       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1155    fi ;;
1156  [\\/]* | ?:[\\/]* )  # Absolute path.
1157    ac_srcdir=$srcdir$ac_dir_suffix;
1158    ac_top_srcdir=$srcdir ;;
1159  *) # Relative path.
1160    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1161    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1162esac
1163
1164# Do not use `cd foo && pwd` to compute absolute paths, because
1165# the directories may not exist.
1166case `pwd` in
1167.) ac_abs_builddir="$ac_dir";;
1168*)
1169  case "$ac_dir" in
1170  .) ac_abs_builddir=`pwd`;;
1171  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1172  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1173  esac;;
1174esac
1175case $ac_abs_builddir in
1176.) ac_abs_top_builddir=${ac_top_builddir}.;;
1177*)
1178  case ${ac_top_builddir}. in
1179  .) ac_abs_top_builddir=$ac_abs_builddir;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1181  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1182  esac;;
1183esac
1184case $ac_abs_builddir in
1185.) ac_abs_srcdir=$ac_srcdir;;
1186*)
1187  case $ac_srcdir in
1188  .) ac_abs_srcdir=$ac_abs_builddir;;
1189  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1190  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1191  esac;;
1192esac
1193case $ac_abs_builddir in
1194.) ac_abs_top_srcdir=$ac_top_srcdir;;
1195*)
1196  case $ac_top_srcdir in
1197  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1198  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1199  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1200  esac;;
1201esac
1202
1203    cd $ac_dir
1204    # Check for guested configure; otherwise get Cygnus style configure.
1205    if test -f $ac_srcdir/configure.gnu; then
1206      echo
1207      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1208    elif test -f $ac_srcdir/configure; then
1209      echo
1210      $SHELL $ac_srcdir/configure  --help=recursive
1211    elif test -f $ac_srcdir/configure.ac ||
1212           test -f $ac_srcdir/configure.in; then
1213      echo
1214      $ac_configure --help
1215    else
1216      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1217    fi
1218    cd $ac_popdir
1219  done
1220fi
1221
1222test -n "$ac_init_help" && exit 0
1223if $ac_init_version; then
1224  cat <<\_ACEOF
1225ThirdPartyBlas configure 0.0
1226generated by GNU Autoconf 2.59
1227
1228Copyright (C) 2003 Free Software Foundation, Inc.
1229This configure script is free software; the Free Software Foundation
1230gives unlimited permission to copy, distribute and modify it.
1231
1232
1233Copyright 2006 International Business Machines and others.
1234All Rights Reserved.
1235This file is part of the open source package Coin which is distributed
1236under the Common Public License.
1237_ACEOF
1238  exit 0
1239fi
1240exec 5>config.log
1241cat >&5 <<_ACEOF
1242This file contains any messages produced by compilers while
1243running configure, to aid debugging if configure makes a mistake.
1244
1245It was created by ThirdPartyBlas $as_me 0.0, which was
1246generated by GNU Autoconf 2.59.  Invocation command line was
1247
1248  $ $0 $@
1249
1250_ACEOF
1251{
1252cat <<_ASUNAME
1253## --------- ##
1254## Platform. ##
1255## --------- ##
1256
1257hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1258uname -m = `(uname -m) 2>/dev/null || echo unknown`
1259uname -r = `(uname -r) 2>/dev/null || echo unknown`
1260uname -s = `(uname -s) 2>/dev/null || echo unknown`
1261uname -v = `(uname -v) 2>/dev/null || echo unknown`
1262
1263/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1264/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1265
1266/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1267/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1268/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1269hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1270/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1271/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1272/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1273
1274_ASUNAME
1275
1276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1277for as_dir in $PATH
1278do
1279  IFS=$as_save_IFS
1280  test -z "$as_dir" && as_dir=.
1281  echo "PATH: $as_dir"
1282done
1283
1284} >&5
1285
1286cat >&5 <<_ACEOF
1287
1288
1289## ----------- ##
1290## Core tests. ##
1291## ----------- ##
1292
1293_ACEOF
1294
1295
1296# Keep a trace of the command line.
1297# Strip out --no-create and --no-recursion so they do not pile up.
1298# Strip out --silent because we don't want to record it for future runs.
1299# Also quote any args containing shell meta-characters.
1300# Make two passes to allow for proper duplicate-argument suppression.
1301ac_configure_args=
1302ac_configure_args0=
1303ac_configure_args1=
1304ac_sep=
1305ac_must_keep_next=false
1306for ac_pass in 1 2
1307do
1308  for ac_arg
1309  do
1310    case $ac_arg in
1311    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1312    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1313    | -silent | --silent | --silen | --sile | --sil)
1314      continue ;;
1315    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1316      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1317    esac
1318    case $ac_pass in
1319    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1320    2)
1321      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1322      if test $ac_must_keep_next = true; then
1323        ac_must_keep_next=false # Got value, back to normal.
1324      else
1325        case $ac_arg in
1326          *=* | --config-cache | -C | -disable-* | --disable-* \
1327          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1328          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1329          | -with-* | --with-* | -without-* | --without-* | --x)
1330            case "$ac_configure_args0 " in
1331              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1332            esac
1333            ;;
1334          -* ) ac_must_keep_next=true ;;
1335        esac
1336      fi
1337      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1338      # Get rid of the leading space.
1339      ac_sep=" "
1340      ;;
1341    esac
1342  done
1343done
1344$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1345$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1346
1347# When interrupted or exit'd, cleanup temporary files, and complete
1348# config.log.  We remove comments because anyway the quotes in there
1349# would cause problems or look ugly.
1350# WARNING: Be sure not to use single quotes in there, as some shells,
1351# such as our DU 5.0 friend, will then `close' the trap.
1352trap 'exit_status=$?
1353  # Save into config.log some information that might help in debugging.
1354  {
1355    echo
1356
1357    cat <<\_ASBOX
1358## ---------------- ##
1359## Cache variables. ##
1360## ---------------- ##
1361_ASBOX
1362    echo
1363    # The following way of writing the cache mishandles newlines in values,
1364{
1365  (set) 2>&1 |
1366    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1367    *ac_space=\ *)
1368      sed -n \
1369        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1370          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1371      ;;
1372    *)
1373      sed -n \
1374        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1375      ;;
1376    esac;
1377}
1378    echo
1379
1380    cat <<\_ASBOX
1381## ----------------- ##
1382## Output variables. ##
1383## ----------------- ##
1384_ASBOX
1385    echo
1386    for ac_var in $ac_subst_vars
1387    do
1388      eval ac_val=$`echo $ac_var`
1389      echo "$ac_var='"'"'$ac_val'"'"'"
1390    done | sort
1391    echo
1392
1393    if test -n "$ac_subst_files"; then
1394      cat <<\_ASBOX
1395## ------------- ##
1396## Output files. ##
1397## ------------- ##
1398_ASBOX
1399      echo
1400      for ac_var in $ac_subst_files
1401      do
1402        eval ac_val=$`echo $ac_var`
1403        echo "$ac_var='"'"'$ac_val'"'"'"
1404      done | sort
1405      echo
1406    fi
1407
1408    if test -s confdefs.h; then
1409      cat <<\_ASBOX
1410## ----------- ##
1411## confdefs.h. ##
1412## ----------- ##
1413_ASBOX
1414      echo
1415      sed "/^$/d" confdefs.h | sort
1416      echo
1417    fi
1418    test "$ac_signal" != 0 &&
1419      echo "$as_me: caught signal $ac_signal"
1420    echo "$as_me: exit $exit_status"
1421  } >&5
1422  rm -f core *.core &&
1423  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1424    exit $exit_status
1425     ' 0
1426for ac_signal in 1 2 13 15; do
1427  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1428done
1429ac_signal=0
1430
1431# confdefs.h avoids OS command line length limits that DEFS can exceed.
1432rm -rf conftest* confdefs.h
1433# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1434echo >confdefs.h
1435
1436# Predefined preprocessor variables.
1437
1438cat >>confdefs.h <<_ACEOF
1439#define PACKAGE_NAME "$PACKAGE_NAME"
1440_ACEOF
1441
1442
1443cat >>confdefs.h <<_ACEOF
1444#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1445_ACEOF
1446
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_VERSION "$PACKAGE_VERSION"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_STRING "$PACKAGE_STRING"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1460_ACEOF
1461
1462
1463# Let the site file select an alternate cache file if it wants to.
1464# Prefer explicitly selected file to automatically selected ones.
1465if test -z "$CONFIG_SITE"; then
1466  if test "x$prefix" != xNONE; then
1467    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1468  else
1469    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1470  fi
1471fi
1472for ac_site_file in $CONFIG_SITE; do
1473  if test -r "$ac_site_file"; then
1474    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1475echo "$as_me: loading site script $ac_site_file" >&6;}
1476    sed 's/^/| /' "$ac_site_file" >&5
1477    . "$ac_site_file"
1478  fi
1479done
1480
1481if test -r "$cache_file"; then
1482  # Some versions of bash will fail to source /dev/null (special
1483  # files actually), so we avoid doing that.
1484  if test -f "$cache_file"; then
1485    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1486echo "$as_me: loading cache $cache_file" >&6;}
1487    case $cache_file in
1488      [\\/]* | ?:[\\/]* ) . $cache_file;;
1489      *)                      . ./$cache_file;;
1490    esac
1491  fi
1492else
1493  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1494echo "$as_me: creating cache $cache_file" >&6;}
1495  >$cache_file
1496fi
1497
1498# Check that the precious variables saved in the cache have kept the same
1499# value.
1500ac_cache_corrupted=false
1501for ac_var in `(set) 2>&1 |
1502               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1503  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1504  eval ac_new_set=\$ac_env_${ac_var}_set
1505  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1506  eval ac_new_val="\$ac_env_${ac_var}_value"
1507  case $ac_old_set,$ac_new_set in
1508    set,)
1509      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1510echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1511      ac_cache_corrupted=: ;;
1512    ,set)
1513      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1514echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1515      ac_cache_corrupted=: ;;
1516    ,);;
1517    *)
1518      if test "x$ac_old_val" != "x$ac_new_val"; then
1519        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1520echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1521        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1522echo "$as_me:   former value:  $ac_old_val" >&2;}
1523        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1524echo "$as_me:   current value: $ac_new_val" >&2;}
1525        ac_cache_corrupted=:
1526      fi;;
1527  esac
1528  # Pass precious variables to config.status.
1529  if test "$ac_new_set" = set; then
1530    case $ac_new_val in
1531    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1532      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1533    *) ac_arg=$ac_var=$ac_new_val ;;
1534    esac
1535    case " $ac_configure_args " in
1536      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1537      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1538    esac
1539  fi
1540done
1541if $ac_cache_corrupted; then
1542  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1543echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1544  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1545echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1546   { (exit 1); exit 1; }; }
1547fi
1548
1549ac_ext=c
1550ac_cpp='$CPP $CPPFLAGS'
1551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1553ac_compiler_gnu=$ac_cv_c_compiler_gnu
1554
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# List one file in the package so that the configure script can test
1585# whether the package is actually there
1586
1587
1588# Where should everything be installed by default?  Here, we want it
1589# to be installed directly in 'bin', 'lib', 'include' subdirectories
1590# of the directory where configure is run.  The default would be
1591# /usr/local.
1592
1593
1594# Initialize the ADDLIBS variable
1595ADDLIBS="-lm $LIBS"
1596
1597
1598# Initialize the FADDLIBS variable (which is to be used with a fortran
1599# compiler and will not include FLIBS)
1600FADDLIBS="$LIBS"
1601
1602
1603# A useful makefile conditional that is always false
1604
1605
1606if false; then
1607  ALWAYS_FALSE_TRUE=
1608  ALWAYS_FALSE_FALSE='#'
1609else
1610  ALWAYS_FALSE_TRUE='#'
1611  ALWAYS_FALSE_FALSE=
1612fi
1613
1614
1615# We set the following variable so that we know later in AC_COIN_FINALIZE
1616# that we are in a project main directory
1617coin_projectdir=yes
1618
1619
1620#############################################################################
1621#                         Standard build tool stuff                         #
1622#############################################################################
1623
1624# Get the system type
1625ac_aux_dir=
1626for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1627  if test -f $ac_dir/install-sh; then
1628    ac_aux_dir=$ac_dir
1629    ac_install_sh="$ac_aux_dir/install-sh -c"
1630    break
1631  elif test -f $ac_dir/install.sh; then
1632    ac_aux_dir=$ac_dir
1633    ac_install_sh="$ac_aux_dir/install.sh -c"
1634    break
1635  elif test -f $ac_dir/shtool; then
1636    ac_aux_dir=$ac_dir
1637    ac_install_sh="$ac_aux_dir/shtool install -c"
1638    break
1639  fi
1640done
1641if test -z "$ac_aux_dir"; then
1642  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1643echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1644   { (exit 1); exit 1; }; }
1645fi
1646ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1647ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1648ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1649
1650# Make sure we can run config.sub.
1651$ac_config_sub sun4 >/dev/null 2>&1 ||
1652  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1653echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1654   { (exit 1); exit 1; }; }
1655
1656echo "$as_me:$LINENO: checking build system type" >&5
1657echo $ECHO_N "checking build system type... $ECHO_C" >&6
1658if test "${ac_cv_build+set}" = set; then
1659  echo $ECHO_N "(cached) $ECHO_C" >&6
1660else
1661  ac_cv_build_alias=$build_alias
1662test -z "$ac_cv_build_alias" &&
1663  ac_cv_build_alias=`$ac_config_guess`
1664test -z "$ac_cv_build_alias" &&
1665  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1666echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1667   { (exit 1); exit 1; }; }
1668ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1669  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1670echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1671   { (exit 1); exit 1; }; }
1672
1673fi
1674echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1675echo "${ECHO_T}$ac_cv_build" >&6
1676build=$ac_cv_build
1677build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1678build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1679build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1680
1681
1682
1683# Check if user wants to produce debugging code
1684
1685echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1686echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1687
1688# Check whether --enable-debug or --disable-debug was given.
1689if test "${enable_debug+set}" = set; then
1690  enableval="$enable_debug"
1691  case "${enableval}" in
1692   yes) coin_debug_compile=true
1693        enable_shared=no
1694        ;;
1695   no)  coin_debug_compile=false
1696        ;;
1697   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1698echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1699   { (exit 1); exit 1; }; }
1700        ;;
1701esac
1702else
1703  coin_debug_compile=false
1704fi;
1705
1706# Check whether --enable-debug-blas or --disable-debug-blas was given.
1707if test "${enable_debug_blas+set}" = set; then
1708  enableval="$enable_debug_blas"
1709  case "${enableval}" in
1710    yes) coin_debug_compile=true
1711         enable_shared=no
1712         ;;
1713    no)  coin_debug_compile=false
1714         ;;
1715    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1716echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1717   { (exit 1); exit 1; }; }
1718         ;;
1719 esac
1720else
1721  :
1722fi;
1723
1724 # m4_ifvaln([Blas],
1725
1726if test $coin_debug_compile = true; then
1727  echo "$as_me:$LINENO: result: yes" >&5
1728echo "${ECHO_T}yes" >&6
1729else
1730  echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
1732fi
1733
1734
1735# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1736if test "${with_blas_verbosity+set}" = set; then
1737  withval="$with_blas_verbosity"
1738  coin_blas_verbosity=$withval
1739else
1740  coin_blas_verbosity=0
1741fi;
1742
1743cat >>confdefs.h <<_ACEOF
1744#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1745_ACEOF
1746
1747
1748
1749# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1750if test "${with_blas_checklevel+set}" = set; then
1751  withval="$with_blas_checklevel"
1752  coin_blas_checklevel=$withval
1753else
1754  coin_blas_checklevel=0
1755fi;
1756
1757cat >>confdefs.h <<_ACEOF
1758#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1759_ACEOF
1760
1761
1762# We use the following variable to have a string with the upper case
1763# version of the project name
1764COIN_PRJCT=BLAS
1765
1766
1767 # m4_ifvaln([Blas],
1768
1769
1770
1771# Get the name of the Fortran compiler and appropriate compiler options
1772case $build in
1773  *-mingw*)
1774    if test "${LD+set}" = set; then :; else
1775      LD=link
1776    fi
1777    ;;
1778 esac
1779 case $enable_doscompile in
1780   msvc)
1781     if test "x${LD+set}" = xset; then :; else
1782       LD=link
1783     fi
1784     ;;
1785 esac
1786
1787
1788 # Check whether --enable-doscompile or --disable-doscompile was given.
1789if test "${enable_doscompile+set}" = set; then
1790  enableval="$enable_doscompile"
1791  if test "$enable_doscompile" != no; then
1792     case $build in
1793       *-cygwin*) ;;
1794       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1795echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1796   { (exit 1); exit 1; }; } ;;
1797     esac
1798   fi
1799else
1800  enable_doscompile=no
1801fi;
1802 case "$enable_doscompile" in
1803   msvc|mingw|no) ;;
1804   yes) enable_doscompile=mingw ;;
1805   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1806                    Try configure --help=recursive." >&5
1807echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1808                    Try configure --help=recursive." >&2;}
1809   { (exit 1); exit 1; }; }
1810      ;;
1811  esac
1812  if test "$enable_doscompile" != no ; then
1813    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1814echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1815  fi
1816
1817
1818
1819
1820ac_ext=c
1821ac_cpp='$CPP $CPPFLAGS'
1822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824ac_compiler_gnu=$ac_cv_c_compiler_gnu
1825
1826
1827# For consistency, we set the C compiler to the same value of the C++
1828# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1829if test x"$CXX" != x; then
1830  case "$CXX" in
1831    cl* | */cl* | CL* | */CL*)
1832      if test x"$CC" = x; then
1833        CC="$CXX"
1834        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1835echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1836      fi
1837      ;;
1838  esac
1839fi
1840
1841
1842
1843
1844
1845
1846coin_has_cc=yes
1847
1848save_cflags="$CFLAGS"
1849# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1850# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1851# is likely to be a non-functional shell. But many installations will have
1852# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1853case $build in
1854  *-cygwin* | *-mingw*)
1855             if test "$enable_doscompile" = msvc ; then
1856               comps="cl"
1857             else
1858               comps="gcc cl"
1859             fi ;;
1860  sparc-sun-solaris*)
1861             comps="cc xlc gcc pgcc icc" ;;
1862  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1863  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1864esac
1865
1866# We delete the cached value, since the test might not have been
1867# performed with our choice of compilers earlier
1868$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1869# AC_MSG_NOTICE([C compiler candidates: $comps])
1870ac_ext=c
1871ac_cpp='$CPP $CPPFLAGS'
1872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875if test -n "$ac_tool_prefix"; then
1876  for ac_prog in $comps
1877  do
1878    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1879set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1880echo "$as_me:$LINENO: checking for $ac_word" >&5
1881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882if test "${ac_cv_prog_CC+set}" = set; then
1883  echo $ECHO_N "(cached) $ECHO_C" >&6
1884else
1885  if test -n "$CC"; then
1886  ac_cv_prog_CC="$CC" # Let the user override the test.
1887else
1888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889for as_dir in $PATH
1890do
1891  IFS=$as_save_IFS
1892  test -z "$as_dir" && as_dir=.
1893  for ac_exec_ext in '' $ac_executable_extensions; do
1894  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1896    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897    break 2
1898  fi
1899done
1900done
1901
1902fi
1903fi
1904CC=$ac_cv_prog_CC
1905if test -n "$CC"; then
1906  echo "$as_me:$LINENO: result: $CC" >&5
1907echo "${ECHO_T}$CC" >&6
1908else
1909  echo "$as_me:$LINENO: result: no" >&5
1910echo "${ECHO_T}no" >&6
1911fi
1912
1913    test -n "$CC" && break
1914  done
1915fi
1916if test -z "$CC"; then
1917  ac_ct_CC=$CC
1918  for ac_prog in $comps
1919do
1920  # Extract the first word of "$ac_prog", so it can be a program name with args.
1921set dummy $ac_prog; ac_word=$2
1922echo "$as_me:$LINENO: checking for $ac_word" >&5
1923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925  echo $ECHO_N "(cached) $ECHO_C" >&6
1926else
1927  if test -n "$ac_ct_CC"; then
1928  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929else
1930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931for as_dir in $PATH
1932do
1933  IFS=$as_save_IFS
1934  test -z "$as_dir" && as_dir=.
1935  for ac_exec_ext in '' $ac_executable_extensions; do
1936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937    ac_cv_prog_ac_ct_CC="$ac_prog"
1938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939    break 2
1940  fi
1941done
1942done
1943
1944fi
1945fi
1946ac_ct_CC=$ac_cv_prog_ac_ct_CC
1947if test -n "$ac_ct_CC"; then
1948  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1949echo "${ECHO_T}$ac_ct_CC" >&6
1950else
1951  echo "$as_me:$LINENO: result: no" >&5
1952echo "${ECHO_T}no" >&6
1953fi
1954
1955  test -n "$ac_ct_CC" && break
1956done
1957
1958  CC=$ac_ct_CC
1959fi
1960
1961
1962test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1963See \`config.log' for more details." >&5
1964echo "$as_me: error: no acceptable C compiler found in \$PATH
1965See \`config.log' for more details." >&2;}
1966   { (exit 1); exit 1; }; }
1967
1968# Provide some information about the compiler.
1969echo "$as_me:$LINENO:" \
1970     "checking for C compiler version" >&5
1971ac_compiler=`set X $ac_compile; echo $2`
1972{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1973  (eval $ac_compiler --version </dev/null >&5) 2>&5
1974  ac_status=$?
1975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976  (exit $ac_status); }
1977{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1978  (eval $ac_compiler -v </dev/null >&5) 2>&5
1979  ac_status=$?
1980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981  (exit $ac_status); }
1982{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1983  (eval $ac_compiler -V </dev/null >&5) 2>&5
1984  ac_status=$?
1985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986  (exit $ac_status); }
1987
1988cat >conftest.$ac_ext <<_ACEOF
1989/* confdefs.h.  */
1990_ACEOF
1991cat confdefs.h >>conftest.$ac_ext
1992cat >>conftest.$ac_ext <<_ACEOF
1993/* end confdefs.h.  */
1994
1995int
1996main ()
1997{
1998
1999  ;
2000  return 0;
2001}
2002_ACEOF
2003ac_clean_files_save=$ac_clean_files
2004ac_clean_files="$ac_clean_files a.out a.exe b.out"
2005# Try to create an executable without -o first, disregard a.out.
2006# It will help us diagnose broken compilers, and finding out an intuition
2007# of exeext.
2008echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2009echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2010ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2011if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2012  (eval $ac_link_default) 2>&5
2013  ac_status=$?
2014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015  (exit $ac_status); }; then
2016  # Find the output, starting from the most likely.  This scheme is
2017# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2018# resort.
2019
2020# Be careful to initialize this variable, since it used to be cached.
2021# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2022ac_cv_exeext=
2023# b.out is created by i960 compilers.
2024for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2025do
2026  test -f "$ac_file" || continue
2027  case $ac_file in
2028    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2029        ;;
2030    conftest.$ac_ext )
2031        # This is the source file.
2032        ;;
2033    [ab].out )
2034        # We found the default executable, but exeext='' is most
2035        # certainly right.
2036        break;;
2037    *.* )
2038        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2039        # FIXME: I believe we export ac_cv_exeext for Libtool,
2040        # but it would be cool to find out if it's true.  Does anybody
2041        # maintain Libtool? --akim.
2042        export ac_cv_exeext
2043        break;;
2044    * )
2045        break;;
2046  esac
2047done
2048else
2049  echo "$as_me: failed program was:" >&5
2050sed 's/^/| /' conftest.$ac_ext >&5
2051
2052{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2053See \`config.log' for more details." >&5
2054echo "$as_me: error: C compiler cannot create executables
2055See \`config.log' for more details." >&2;}
2056   { (exit 77); exit 77; }; }
2057fi
2058
2059ac_exeext=$ac_cv_exeext
2060echo "$as_me:$LINENO: result: $ac_file" >&5
2061echo "${ECHO_T}$ac_file" >&6
2062
2063# Check the compiler produces executables we can run.  If not, either
2064# the compiler is broken, or we cross compile.
2065echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2066echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2067# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2068# If not cross compiling, check that we can run a simple program.
2069if test "$cross_compiling" != yes; then
2070  if { ac_try='./$ac_file'
2071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072  (eval $ac_try) 2>&5
2073  ac_status=$?
2074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075  (exit $ac_status); }; }; then
2076    cross_compiling=no
2077  else
2078    if test "$cross_compiling" = maybe; then
2079        cross_compiling=yes
2080    else
2081        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2082If you meant to cross compile, use \`--host'.
2083See \`config.log' for more details." >&5
2084echo "$as_me: error: cannot run C compiled programs.
2085If you meant to cross compile, use \`--host'.
2086See \`config.log' for more details." >&2;}
2087   { (exit 1); exit 1; }; }
2088    fi
2089  fi
2090fi
2091echo "$as_me:$LINENO: result: yes" >&5
2092echo "${ECHO_T}yes" >&6
2093
2094rm -f a.out a.exe conftest$ac_cv_exeext b.out
2095ac_clean_files=$ac_clean_files_save
2096# Check the compiler produces executables we can run.  If not, either
2097# the compiler is broken, or we cross compile.
2098echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2099echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2100echo "$as_me:$LINENO: result: $cross_compiling" >&5
2101echo "${ECHO_T}$cross_compiling" >&6
2102
2103echo "$as_me:$LINENO: checking for suffix of executables" >&5
2104echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2106  (eval $ac_link) 2>&5
2107  ac_status=$?
2108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109  (exit $ac_status); }; then
2110  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2111# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2112# work properly (i.e., refer to `conftest.exe'), while it won't with
2113# `rm'.
2114for ac_file in conftest.exe conftest conftest.*; do
2115  test -f "$ac_file" || continue
2116  case $ac_file in
2117    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2118    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2119          export ac_cv_exeext
2120          break;;
2121    * ) break;;
2122  esac
2123done
2124else
2125  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2126See \`config.log' for more details." >&5
2127echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2128See \`config.log' for more details." >&2;}
2129   { (exit 1); exit 1; }; }
2130fi
2131
2132rm -f conftest$ac_cv_exeext
2133echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2134echo "${ECHO_T}$ac_cv_exeext" >&6
2135
2136rm -f conftest.$ac_ext
2137EXEEXT=$ac_cv_exeext
2138ac_exeext=$EXEEXT
2139echo "$as_me:$LINENO: checking for suffix of object files" >&5
2140echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2141if test "${ac_cv_objext+set}" = set; then
2142  echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
2144  cat >conftest.$ac_ext <<_ACEOF
2145/* confdefs.h.  */
2146_ACEOF
2147cat confdefs.h >>conftest.$ac_ext
2148cat >>conftest.$ac_ext <<_ACEOF
2149/* end confdefs.h.  */
2150
2151int
2152main ()
2153{
2154
2155  ;
2156  return 0;
2157}
2158_ACEOF
2159rm -f conftest.o conftest.obj
2160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161  (eval $ac_compile) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }; then
2165  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2166  case $ac_file in
2167    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2168    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2169       break;;
2170  esac
2171done
2172else
2173  echo "$as_me: failed program was:" >&5
2174sed 's/^/| /' conftest.$ac_ext >&5
2175
2176{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2177See \`config.log' for more details." >&5
2178echo "$as_me: error: cannot compute suffix of object files: cannot compile
2179See \`config.log' for more details." >&2;}
2180   { (exit 1); exit 1; }; }
2181fi
2182
2183rm -f conftest.$ac_cv_objext conftest.$ac_ext
2184fi
2185echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2186echo "${ECHO_T}$ac_cv_objext" >&6
2187OBJEXT=$ac_cv_objext
2188ac_objext=$OBJEXT
2189echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2190echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2191if test "${ac_cv_c_compiler_gnu+set}" = set; then
2192  echo $ECHO_N "(cached) $ECHO_C" >&6
2193else
2194  cat >conftest.$ac_ext <<_ACEOF
2195/* confdefs.h.  */
2196_ACEOF
2197cat confdefs.h >>conftest.$ac_ext
2198cat >>conftest.$ac_ext <<_ACEOF
2199/* end confdefs.h.  */
2200
2201int
2202main ()
2203{
2204#ifndef __GNUC__
2205       choke me
2206#endif
2207
2208  ;
2209  return 0;
2210}
2211_ACEOF
2212rm -f conftest.$ac_objext
2213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2214  (eval $ac_compile) 2>conftest.er1
2215  ac_status=$?
2216  grep -v '^ *+' conftest.er1 >conftest.err
2217  rm -f conftest.er1
2218  cat conftest.err >&5
2219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220  (exit $ac_status); } &&
2221         { ac_try='test -z "$ac_c_werror_flag"
2222                         || test ! -s conftest.err'
2223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224  (eval $ac_try) 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }; } &&
2228         { ac_try='test -s conftest.$ac_objext'
2229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230  (eval $ac_try) 2>&5
2231  ac_status=$?
2232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233  (exit $ac_status); }; }; then
2234  ac_compiler_gnu=yes
2235else
2236  echo "$as_me: failed program was:" >&5
2237sed 's/^/| /' conftest.$ac_ext >&5
2238
2239ac_compiler_gnu=no
2240fi
2241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2242ac_cv_c_compiler_gnu=$ac_compiler_gnu
2243
2244fi
2245echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2246echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2247GCC=`test $ac_compiler_gnu = yes && echo yes`
2248ac_test_CFLAGS=${CFLAGS+set}
2249ac_save_CFLAGS=$CFLAGS
2250CFLAGS="-g"
2251echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2252echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2253if test "${ac_cv_prog_cc_g+set}" = set; then
2254  echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
2256  cat >conftest.$ac_ext <<_ACEOF
2257/* confdefs.h.  */
2258_ACEOF
2259cat confdefs.h >>conftest.$ac_ext
2260cat >>conftest.$ac_ext <<_ACEOF
2261/* end confdefs.h.  */
2262
2263int
2264main ()
2265{
2266
2267  ;
2268  return 0;
2269}
2270_ACEOF
2271rm -f conftest.$ac_objext
2272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273  (eval $ac_compile) 2>conftest.er1
2274  ac_status=$?
2275  grep -v '^ *+' conftest.er1 >conftest.err
2276  rm -f conftest.er1
2277  cat conftest.err >&5
2278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279  (exit $ac_status); } &&
2280         { ac_try='test -z "$ac_c_werror_flag"
2281                         || test ! -s conftest.err'
2282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283  (eval $ac_try) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; } &&
2287         { ac_try='test -s conftest.$ac_objext'
2288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289  (eval $ac_try) 2>&5
2290  ac_status=$?
2291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292  (exit $ac_status); }; }; then
2293  ac_cv_prog_cc_g=yes
2294else
2295  echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298ac_cv_prog_cc_g=no
2299fi
2300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301fi
2302echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2303echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2304if test "$ac_test_CFLAGS" = set; then
2305  CFLAGS=$ac_save_CFLAGS
2306elif test $ac_cv_prog_cc_g = yes; then
2307  if test "$GCC" = yes; then
2308    CFLAGS="-g -O2"
2309  else
2310    CFLAGS="-g"
2311  fi
2312else
2313  if test "$GCC" = yes; then
2314    CFLAGS="-O2"
2315  else
2316    CFLAGS=
2317  fi
2318fi
2319echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2320echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2321if test "${ac_cv_prog_cc_stdc+set}" = set; then
2322  echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324  ac_cv_prog_cc_stdc=no
2325ac_save_CC=$CC
2326cat >conftest.$ac_ext <<_ACEOF
2327/* confdefs.h.  */
2328_ACEOF
2329cat confdefs.h >>conftest.$ac_ext
2330cat >>conftest.$ac_ext <<_ACEOF
2331/* end confdefs.h.  */
2332#include <stdarg.h>
2333#include <stdio.h>
2334#include <sys/types.h>
2335#include <sys/stat.h>
2336/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2337struct buf { int x; };
2338FILE * (*rcsopen) (struct buf *, struct stat *, int);
2339static char *e (p, i)
2340     char **p;
2341     int i;
2342{
2343  return p[i];
2344}
2345static char *f (char * (*g) (char **, int), char **p, ...)
2346{
2347  char *s;
2348  va_list v;
2349  va_start (v,p);
2350  s = g (p, va_arg (v,int));
2351  va_end (v);
2352  return s;
2353}
2354
2355/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2356   function prototypes and stuff, but not '\xHH' hex character constants.
2357   These don't provoke an error unfortunately, instead are silently treated
2358   as 'x'.  The following induces an error, until -std1 is added to get
2359   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2360   array size at least.  It's necessary to write '\x00'==0 to get something
2361   that's true only with -std1.  */
2362int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2363
2364int test (int i, double x);
2365struct s1 {int (*f) (int a);};
2366struct s2 {int (*f) (double a);};
2367int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2368int argc;
2369char **argv;
2370int
2371main ()
2372{
2373return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2374  ;
2375  return 0;
2376}
2377_ACEOF
2378# Don't try gcc -ansi; that turns off useful extensions and
2379# breaks some systems' header files.
2380# AIX                   -qlanglvl=ansi
2381# Ultrix and OSF/1      -std1
2382# HP-UX 10.20 and later -Ae
2383# HP-UX older versions  -Aa -D_HPUX_SOURCE
2384# SVR4                  -Xc -D__EXTENSIONS__
2385for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2386do
2387  CC="$ac_save_CC $ac_arg"
2388  rm -f conftest.$ac_objext
2389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390  (eval $ac_compile) 2>conftest.er1
2391  ac_status=$?
2392  grep -v '^ *+' conftest.er1 >conftest.err
2393  rm -f conftest.er1
2394  cat conftest.err >&5
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); } &&
2397         { ac_try='test -z "$ac_c_werror_flag"
2398                         || test ! -s conftest.err'
2399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400  (eval $ac_try) 2>&5
2401  ac_status=$?
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); }; } &&
2404         { ac_try='test -s conftest.$ac_objext'
2405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406  (eval $ac_try) 2>&5
2407  ac_status=$?
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); }; }; then
2410  ac_cv_prog_cc_stdc=$ac_arg
2411break
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416fi
2417rm -f conftest.err conftest.$ac_objext
2418done
2419rm -f conftest.$ac_ext conftest.$ac_objext
2420CC=$ac_save_CC
2421
2422fi
2423
2424case "x$ac_cv_prog_cc_stdc" in
2425  x|xno)
2426    echo "$as_me:$LINENO: result: none needed" >&5
2427echo "${ECHO_T}none needed" >&6 ;;
2428  *)
2429    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2430echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2431    CC="$CC $ac_cv_prog_cc_stdc" ;;
2432esac
2433
2434# Some people use a C++ compiler to compile C.  Since we use `exit',
2435# in C++ we need to declare it.  In case someone uses the same compiler
2436# for both compiling C and C++ we need to have the C++ compiler decide
2437# the declaration of exit, since it's the most demanding environment.
2438cat >conftest.$ac_ext <<_ACEOF
2439#ifndef __cplusplus
2440  choke me
2441#endif
2442_ACEOF
2443rm -f conftest.$ac_objext
2444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445  (eval $ac_compile) 2>conftest.er1
2446  ac_status=$?
2447  grep -v '^ *+' conftest.er1 >conftest.err
2448  rm -f conftest.er1
2449  cat conftest.err >&5
2450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451  (exit $ac_status); } &&
2452         { ac_try='test -z "$ac_c_werror_flag"
2453                         || test ! -s conftest.err'
2454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455  (eval $ac_try) 2>&5
2456  ac_status=$?
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); }; } &&
2459         { ac_try='test -s conftest.$ac_objext'
2460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461  (eval $ac_try) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; }; then
2465  for ac_declaration in \
2466   '' \
2467   'extern "C" void std::exit (int) throw (); using std::exit;' \
2468   'extern "C" void std::exit (int); using std::exit;' \
2469   'extern "C" void exit (int) throw ();' \
2470   'extern "C" void exit (int);' \
2471   'void exit (int);'
2472do
2473  cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h.  */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h.  */
2479$ac_declaration
2480#include <stdlib.h>
2481int
2482main ()
2483{
2484exit (42);
2485  ;
2486  return 0;
2487}
2488_ACEOF
2489rm -f conftest.$ac_objext
2490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491  (eval $ac_compile) 2>conftest.er1
2492  ac_status=$?
2493  grep -v '^ *+' conftest.er1 >conftest.err
2494  rm -f conftest.er1
2495  cat conftest.err >&5
2496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497  (exit $ac_status); } &&
2498         { ac_try='test -z "$ac_c_werror_flag"
2499                         || test ! -s conftest.err'
2500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501  (eval $ac_try) 2>&5
2502  ac_status=$?
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); }; } &&
2505         { ac_try='test -s conftest.$ac_objext'
2506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507  (eval $ac_try) 2>&5
2508  ac_status=$?
2509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510  (exit $ac_status); }; }; then
2511  :
2512else
2513  echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
2516continue
2517fi
2518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2519  cat >conftest.$ac_ext <<_ACEOF
2520/* confdefs.h.  */
2521_ACEOF
2522cat confdefs.h >>conftest.$ac_ext
2523cat >>conftest.$ac_ext <<_ACEOF
2524/* end confdefs.h.  */
2525$ac_declaration
2526int
2527main ()
2528{
2529exit (42);
2530  ;
2531  return 0;
2532}
2533_ACEOF
2534rm -f conftest.$ac_objext
2535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536  (eval $ac_compile) 2>conftest.er1
2537  ac_status=$?
2538  grep -v '^ *+' conftest.er1 >conftest.err
2539  rm -f conftest.er1
2540  cat conftest.err >&5
2541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542  (exit $ac_status); } &&
2543         { ac_try='test -z "$ac_c_werror_flag"
2544                         || test ! -s conftest.err'
2545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546  (eval $ac_try) 2>&5
2547  ac_status=$?
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); }; } &&
2550         { ac_try='test -s conftest.$ac_objext'
2551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552  (eval $ac_try) 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; }; then
2556  break
2557else
2558  echo "$as_me: failed program was:" >&5
2559sed 's/^/| /' conftest.$ac_ext >&5
2560
2561fi
2562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563done
2564rm -f conftest*
2565if test -n "$ac_declaration"; then
2566  echo '#ifdef __cplusplus' >>confdefs.h
2567  echo $ac_declaration      >>confdefs.h
2568  echo '#endif'             >>confdefs.h
2569fi
2570
2571else
2572  echo "$as_me: failed program was:" >&5
2573sed 's/^/| /' conftest.$ac_ext >&5
2574
2575fi
2576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2577ac_ext=c
2578ac_cpp='$CPP $CPPFLAGS'
2579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
2583if test -z "$CC" ; then
2584  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2585echo "$as_me: error: Failed to find a C compiler!" >&2;}
2586   { (exit 1); exit 1; }; }
2587fi
2588# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2589case "$CC" in
2590  cl* | */cl* | CL* | */CL* )
2591    if test "$ac_cv_prog_cc_g" = yes ; then
2592      ac_cv_prog_cc_g=no
2593      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2594echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2595    fi ;;
2596esac
2597CFLAGS="$save_cflags"
2598
2599# Check if a project specific CFLAGS variable has been set
2600if test x$COIN_PRJCT != x; then
2601  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2602  if test x$coin_tmp = xset; then
2603    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2604  fi
2605fi
2606
2607if test x"$CFLAGS" = x; then
2608
2609  coin_add_cflags=
2610  coin_opt_cflags=
2611  coin_dbg_cflags=
2612  coin_warn_cflags=
2613
2614  if test "$GCC" = "yes"; then
2615    case "$CC" in
2616      icc* | */icc*)
2617        ;;
2618      *)
2619        coin_opt_cflags="-O3 -fomit-frame-pointer"
2620        coin_add_cflags="-pipe"
2621        coin_dbg_cflags="-g"
2622        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2623        case $enable_doscompile in
2624          mingw)
2625            CFLAGS="-mno-cygwin"
2626            cat >conftest.$ac_ext <<_ACEOF
2627/* confdefs.h.  */
2628_ACEOF
2629cat confdefs.h >>conftest.$ac_ext
2630cat >>conftest.$ac_ext <<_ACEOF
2631/* end confdefs.h.  */
2632
2633int
2634main ()
2635{
2636int i=0; i++;
2637  ;
2638  return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext conftest$ac_exeext
2642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2643  (eval $ac_link) 2>conftest.er1
2644  ac_status=$?
2645  grep -v '^ *+' conftest.er1 >conftest.err
2646  rm -f conftest.er1
2647  cat conftest.err >&5
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); } &&
2650         { ac_try='test -z "$ac_c_werror_flag"
2651                         || test ! -s conftest.err'
2652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653  (eval $ac_try) 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; } &&
2657         { ac_try='test -s conftest$ac_exeext'
2658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659  (eval $ac_try) 2>&5
2660  ac_status=$?
2661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662  (exit $ac_status); }; }; then
2663  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2664else
2665  echo "$as_me: failed program was:" >&5
2666sed 's/^/| /' conftest.$ac_ext >&5
2667
2668fi
2669rm -f conftest.err conftest.$ac_objext \
2670      conftest$ac_exeext conftest.$ac_ext
2671            CFLAGS=
2672          ;;
2673        esac
2674    esac
2675  fi
2676  if test -z "$coin_opt_cflags"; then
2677    case $build in
2678      *-cygwin* | *-mingw*)
2679        case "$CC" in
2680          cl* | */cl* | CL* | */CL*)
2681            coin_opt_cflags='-MT -O2'
2682            coin_add_cflags='-nologo -wd4996'
2683            coin_dbg_cflags='-MTd'
2684            ;;
2685        esac
2686        ;;
2687      *-linux-*)
2688        case "$CC" in
2689          icc* | */icc*)
2690            coin_opt_cflags="-O3 -ip"
2691            coin_add_cflags=""
2692            coin_dbg_cflags="-g"
2693            # Check if -i_dynamic is necessary (for new glibc library)
2694            CFLAGS=
2695            cat >conftest.$ac_ext <<_ACEOF
2696/* confdefs.h.  */
2697_ACEOF
2698cat confdefs.h >>conftest.$ac_ext
2699cat >>conftest.$ac_ext <<_ACEOF
2700/* end confdefs.h.  */
2701
2702int
2703main ()
2704{
2705int i=0; i++;
2706  ;
2707  return 0;
2708}
2709_ACEOF
2710rm -f conftest.$ac_objext conftest$ac_exeext
2711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2712  (eval $ac_link) 2>conftest.er1
2713  ac_status=$?
2714  grep -v '^ *+' conftest.er1 >conftest.err
2715  rm -f conftest.er1
2716  cat conftest.err >&5
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); } &&
2719         { ac_try='test -z "$ac_c_werror_flag"
2720                         || test ! -s conftest.err'
2721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722  (eval $ac_try) 2>&5
2723  ac_status=$?
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); }; } &&
2726         { ac_try='test -s conftest$ac_exeext'
2727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728  (eval $ac_try) 2>&5
2729  ac_status=$?
2730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); }; }; then
2732  :
2733else
2734  echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737coin_add_cflags="-i_dynamic $coin_add_cflags"
2738fi
2739rm -f conftest.err conftest.$ac_objext \
2740      conftest$ac_exeext conftest.$ac_ext
2741            ;;
2742          pgcc* | */pgcc*)
2743            coin_opt_cflags="-fast"
2744            coin_add_cflags="-Kieee -pc 64"
2745            coin_dbg_cflags="-g"
2746            ;;
2747        esac
2748        ;;
2749      *-ibm-*)
2750        case "$CC" in
2751          xlc* | */xlc* | mpxlc* | */mpxlc*)
2752            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2753            coin_add_cflags="-bmaxdata:0x80000000"
2754            coin_dbg_cflags="-g"
2755          ;;
2756        esac
2757        ;;
2758      *-hp-*)
2759        coin_opt_cflags="-O"
2760        coin_add_cflags="-Ae"
2761        coin_dbg_cflags="-g"
2762        ;;
2763      *-sun-*)
2764        coin_opt_cflags="-xO4"
2765        coin_dbg_cflags="-g"
2766        ;;
2767      *-sgi-*)
2768        coin_opt_cflags="-O -OPT:Olimit=0"
2769        coin_dbg_cflags="-g"
2770        ;;
2771    esac
2772  fi
2773
2774  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2775    coin_dbg_cflags="-g"
2776  fi
2777
2778  if test -z "$coin_opt_cflags"; then
2779    # Try if -O option works if nothing else is set
2780    CFLAGS="-O"
2781    cat >conftest.$ac_ext <<_ACEOF
2782/* confdefs.h.  */
2783_ACEOF
2784cat confdefs.h >>conftest.$ac_ext
2785cat >>conftest.$ac_ext <<_ACEOF
2786/* end confdefs.h.  */
2787
2788int
2789main ()
2790{
2791int i=0; i++;
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796rm -f conftest.$ac_objext conftest$ac_exeext
2797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2798  (eval $ac_link) 2>conftest.er1
2799  ac_status=$?
2800  grep -v '^ *+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } &&
2805         { ac_try='test -z "$ac_c_werror_flag"
2806                         || test ! -s conftest.err'
2807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808  (eval $ac_try) 2>&5
2809  ac_status=$?
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); }; } &&
2812         { ac_try='test -s conftest$ac_exeext'
2813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814  (eval $ac_try) 2>&5
2815  ac_status=$?
2816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817  (exit $ac_status); }; }; then
2818  coin_opt_cflags="-O"
2819else
2820  echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823fi
2824rm -f conftest.err conftest.$ac_objext \
2825      conftest$ac_exeext conftest.$ac_ext
2826  fi
2827
2828  # if PM doesn't want the warning messages, take them out
2829  if test x"$coin_skip_warn_cflags" = xyes; then
2830    coin_warn_cflags=
2831  fi
2832
2833  if test x${DBG_CFLAGS+set} != xset; then
2834    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2835  fi
2836  if test x${OPT_CFLAGS+set} != xset; then
2837    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2838  fi
2839
2840  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2841  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2842
2843  if test "$coin_debug_compile" = "true"; then
2844    CFLAGS="$DBG_CFLAGS"
2845  else
2846    CFLAGS="$OPT_CFLAGS"
2847  fi
2848else
2849  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2850  if test x${DBG_CFLAGS+set} != xset; then
2851    DBG_CFLAGS="$CFLAGS"
2852  fi
2853  if test x${OPT_CFLAGS+set} != xset; then
2854    OPT_CFLAGS="$CFLAGS"
2855  fi
2856fi
2857
2858# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2859
2860case "$CFLAGS" in
2861  *-mno-cygwin*)
2862    if test x${CPPFLAGS+set} != xset ; then
2863      CPPFLAGS="-mno-cygwin"
2864    else
2865      case "$CPPFLAGS" in
2866        *-mno-cygwin*)
2867          ;;
2868        *)
2869          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2870          ;;
2871      esac
2872    fi ;;
2873esac
2874
2875# Try if CFLAGS works
2876save_CFLAGS="$CFLAGS"
2877cat >conftest.$ac_ext <<_ACEOF
2878/* confdefs.h.  */
2879_ACEOF
2880cat confdefs.h >>conftest.$ac_ext
2881cat >>conftest.$ac_ext <<_ACEOF
2882/* end confdefs.h.  */
2883
2884int
2885main ()
2886{
2887int i=0; i++;
2888  ;
2889  return 0;
2890}
2891_ACEOF
2892rm -f conftest.$ac_objext conftest$ac_exeext
2893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2894  (eval $ac_link) 2>conftest.er1
2895  ac_status=$?
2896  grep -v '^ *+' conftest.er1 >conftest.err
2897  rm -f conftest.er1
2898  cat conftest.err >&5
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); } &&
2901         { ac_try='test -z "$ac_c_werror_flag"
2902                         || test ! -s conftest.err'
2903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904  (eval $ac_try) 2>&5
2905  ac_status=$?
2906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907  (exit $ac_status); }; } &&
2908         { ac_try='test -s conftest$ac_exeext'
2909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910  (eval $ac_try) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }; }; then
2914  :
2915else
2916  echo "$as_me: failed program was:" >&5
2917sed 's/^/| /' conftest.$ac_ext >&5
2918
2919CFLAGS=
2920fi
2921rm -f conftest.err conftest.$ac_objext \
2922      conftest$ac_exeext conftest.$ac_ext
2923if test -z "$CFLAGS"; then
2924  { 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
2925echo "$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;}
2926  CFLAGS='-O'
2927  cat >conftest.$ac_ext <<_ACEOF
2928/* confdefs.h.  */
2929_ACEOF
2930cat confdefs.h >>conftest.$ac_ext
2931cat >>conftest.$ac_ext <<_ACEOF
2932/* end confdefs.h.  */
2933
2934int
2935main ()
2936{
2937int i=0; i++;
2938  ;
2939  return 0;
2940}
2941_ACEOF
2942rm -f conftest.$ac_objext conftest$ac_exeext
2943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2944  (eval $ac_link) 2>conftest.er1
2945  ac_status=$?
2946  grep -v '^ *+' conftest.er1 >conftest.err
2947  rm -f conftest.er1
2948  cat conftest.err >&5
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); } &&
2951         { ac_try='test -z "$ac_c_werror_flag"
2952                         || test ! -s conftest.err'
2953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954  (eval $ac_try) 2>&5
2955  ac_status=$?
2956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957  (exit $ac_status); }; } &&
2958         { ac_try='test -s conftest$ac_exeext'
2959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960  (eval $ac_try) 2>&5
2961  ac_status=$?
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); }; }; then
2964  :
2965else
2966  echo "$as_me: failed program was:" >&5
2967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969CFLAGS=
2970fi
2971rm -f conftest.err conftest.$ac_objext \
2972      conftest$ac_exeext conftest.$ac_ext
2973  if test -z "$CFLAGS"; then
2974    { 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
2975echo "$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;}
2976  fi
2977fi
2978
2979{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2980echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2981
2982
2983if test x"$MPICC" = x; then :; else
2984  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2985echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2986  CC="$MPICC"
2987fi
2988
2989# Correct ADDLIBS initialization if we are using the MS compiler
2990case "$CC" in
2991  cl* | */cl* | CL* | */CL*)
2992    ADDLIBS=
2993    case $build in
2994  *-mingw*)
2995    if test "${LD+set}" = set; then :; else
2996      LD=link
2997    fi
2998    ;;
2999 esac
3000 case $enable_doscompile in
3001   msvc)
3002     if test "x${LD+set}" = xset; then :; else
3003       LD=link
3004     fi
3005     ;;
3006 esac
3007
3008    ;;
3009esac
3010
3011ac_ext=c
3012ac_cpp='$CPP $CPPFLAGS'
3013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016
3017
3018case $build in
3019  *-cygwin* | *-mingw*)
3020     if test "$enable_doscompile" = msvc ; then
3021       coin_f77_comps="ifort fl32"
3022     else
3023       coin_f77_comps="gfortran g77 ifort fl32"
3024     fi ;;
3025  sparc-sun-solaris*)
3026     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3027  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3028 esac
3029
3030
3031
3032
3033
3034
3035ac_ext=f
3036ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3037ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3039
3040
3041
3042
3043
3044
3045coin_has_f77=yes
3046
3047save_fflags="$FFLAGS"
3048
3049# We delete the cached value, since the test might not have been
3050# performed with our choice of compilers earlier
3051$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3052
3053# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3054# coin_f77_comps to see if there's a program that matches one of the names.
3055# If there's no such program, F77 = unavailable. If we match the name,
3056# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3057# compiler.
3058# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3059
3060
3061{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3062echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3063for ac_prog in $coin_f77_comps
3064do
3065  # Extract the first word of "$ac_prog", so it can be a program name with args.
3066set dummy $ac_prog; ac_word=$2
3067echo "$as_me:$LINENO: checking for $ac_word" >&5
3068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069if test "${ac_cv_prog_F77+set}" = set; then
3070  echo $ECHO_N "(cached) $ECHO_C" >&6
3071else
3072  if test -n "$F77"; then
3073  ac_cv_prog_F77="$F77" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078  IFS=$as_save_IFS
3079  test -z "$as_dir" && as_dir=.
3080  for ac_exec_ext in '' $ac_executable_extensions; do
3081  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082    ac_cv_prog_F77="$ac_prog"
3083    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084    break 2
3085  fi
3086done
3087done
3088
3089fi
3090fi
3091F77=$ac_cv_prog_F77
3092if test -n "$F77"; then
3093  echo "$as_me:$LINENO: result: $F77" >&5
3094echo "${ECHO_T}$F77" >&6
3095else
3096  echo "$as_me:$LINENO: result: no" >&5
3097echo "${ECHO_T}no" >&6
3098fi
3099
3100  test -n "$F77" && break
3101done
3102test -n "$F77" || F77="unavailable"
3103
3104
3105if test "$F77" != "unavailable" ; then
3106  ac_ext=f
3107ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3108ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3110if test -n "$ac_tool_prefix"; then
3111  for ac_prog in $coin_f77_comps
3112  do
3113    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3114set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3115echo "$as_me:$LINENO: checking for $ac_word" >&5
3116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3117if test "${ac_cv_prog_F77+set}" = set; then
3118  echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
3120  if test -n "$F77"; then
3121  ac_cv_prog_F77="$F77" # Let the user override the test.
3122else
3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124for as_dir in $PATH
3125do
3126  IFS=$as_save_IFS
3127  test -z "$as_dir" && as_dir=.
3128  for ac_exec_ext in '' $ac_executable_extensions; do
3129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3132    break 2
3133  fi
3134done
3135done
3136
3137fi
3138fi
3139F77=$ac_cv_prog_F77
3140if test -n "$F77"; then
3141  echo "$as_me:$LINENO: result: $F77" >&5
3142echo "${ECHO_T}$F77" >&6
3143else
3144  echo "$as_me:$LINENO: result: no" >&5
3145echo "${ECHO_T}no" >&6
3146fi
3147
3148    test -n "$F77" && break
3149  done
3150fi
3151if test -z "$F77"; then
3152  ac_ct_F77=$F77
3153  for ac_prog in $coin_f77_comps
3154do
3155  # Extract the first word of "$ac_prog", so it can be a program name with args.
3156set dummy $ac_prog; ac_word=$2
3157echo "$as_me:$LINENO: checking for $ac_word" >&5
3158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3160  echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
3162  if test -n "$ac_ct_F77"; then
3163  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3164else
3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168  IFS=$as_save_IFS
3169  test -z "$as_dir" && as_dir=.
3170  for ac_exec_ext in '' $ac_executable_extensions; do
3171  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172    ac_cv_prog_ac_ct_F77="$ac_prog"
3173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174    break 2
3175  fi
3176done
3177done
3178
3179fi
3180fi
3181ac_ct_F77=$ac_cv_prog_ac_ct_F77
3182if test -n "$ac_ct_F77"; then
3183  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3184echo "${ECHO_T}$ac_ct_F77" >&6
3185else
3186  echo "$as_me:$LINENO: result: no" >&5
3187echo "${ECHO_T}no" >&6
3188fi
3189
3190  test -n "$ac_ct_F77" && break
3191done
3192
3193  F77=$ac_ct_F77
3194fi
3195
3196
3197# Provide some information about the compiler.
3198echo "$as_me:3198:" \
3199     "checking for Fortran 77 compiler version" >&5
3200ac_compiler=`set X $ac_compile; echo $2`
3201{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3202  (eval $ac_compiler --version </dev/null >&5) 2>&5
3203  ac_status=$?
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }
3206{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3207  (eval $ac_compiler -v </dev/null >&5) 2>&5
3208  ac_status=$?
3209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); }
3211{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3212  (eval $ac_compiler -V </dev/null >&5) 2>&5
3213  ac_status=$?
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); }
3216rm -f a.out
3217
3218# If we don't use `.F' as extension, the preprocessor is not run on the
3219# input file.  (Note that this only needs to work for GNU compilers.)
3220ac_save_ext=$ac_ext
3221ac_ext=F
3222echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3223echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3224if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3225  echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
3227  cat >conftest.$ac_ext <<_ACEOF
3228      program main
3229#ifndef __GNUC__
3230       choke me
3231#endif
3232
3233      end
3234_ACEOF
3235rm -f conftest.$ac_objext
3236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237  (eval $ac_compile) 2>conftest.er1
3238  ac_status=$?
3239  grep -v '^ *+' conftest.er1 >conftest.err
3240  rm -f conftest.er1
3241  cat conftest.err >&5
3242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243  (exit $ac_status); } &&
3244         { ac_try='test -z "$ac_f77_werror_flag"
3245                         || test ! -s conftest.err'
3246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247  (eval $ac_try) 2>&5
3248  ac_status=$?
3249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250  (exit $ac_status); }; } &&
3251         { ac_try='test -s conftest.$ac_objext'
3252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253  (eval $ac_try) 2>&5
3254  ac_status=$?
3255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256  (exit $ac_status); }; }; then
3257  ac_compiler_gnu=yes
3258else
3259  echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262ac_compiler_gnu=no
3263fi
3264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3265ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3266
3267fi
3268echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3269echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3270ac_ext=$ac_save_ext
3271ac_test_FFLAGS=${FFLAGS+set}
3272ac_save_FFLAGS=$FFLAGS
3273FFLAGS=
3274echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3275echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3276if test "${ac_cv_prog_f77_g+set}" = set; then
3277  echo $ECHO_N "(cached) $ECHO_C" >&6
3278else
3279  FFLAGS=-g
3280cat >conftest.$ac_ext <<_ACEOF
3281      program main
3282
3283      end
3284_ACEOF
3285rm -f conftest.$ac_objext
3286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3287  (eval $ac_compile) 2>conftest.er1
3288  ac_status=$?
3289  grep -v '^ *+' conftest.er1 >conftest.err
3290  rm -f conftest.er1
3291  cat conftest.err >&5
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); } &&
3294         { ac_try='test -z "$ac_f77_werror_flag"
3295                         || test ! -s conftest.err'
3296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297  (eval $ac_try) 2>&5
3298  ac_status=$?
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); }; } &&
3301         { ac_try='test -s conftest.$ac_objext'
3302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303  (eval $ac_try) 2>&5
3304  ac_status=$?
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); }; }; then
3307  ac_cv_prog_f77_g=yes
3308else
3309  echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312ac_cv_prog_f77_g=no
3313fi
3314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3315
3316fi
3317echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3318echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3319if test "$ac_test_FFLAGS" = set; then
3320  FFLAGS=$ac_save_FFLAGS
3321elif test $ac_cv_prog_f77_g = yes; then
3322  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3323    FFLAGS="-g -O2"
3324  else
3325    FFLAGS="-g"
3326  fi
3327else
3328  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3329    FFLAGS="-O2"
3330  else
3331    FFLAGS=
3332  fi
3333fi
3334
3335G77=`test $ac_compiler_gnu = yes && echo yes`
3336ac_ext=f
3337ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3338ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3340
3341else
3342  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3343echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3344fi
3345
3346FFLAGS="$save_fflags"
3347
3348# Check if a project specific FFLAGS variable has been set
3349if test x$COIN_PRJCT != x; then
3350  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3351  if test x$coin_tmp = xset; then
3352    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3353  fi
3354fi
3355
3356if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3357
3358  coin_add_fflags=
3359  coin_opt_fflags=
3360  coin_dbg_fflags=
3361  coin_warn_fflags=
3362
3363  if test "$G77" = "yes"; then
3364    coin_opt_fflags="-O3 -fomit-frame-pointer"
3365    coin_add_fflags="-pipe"
3366    coin_dbg_fflags="-g"
3367    case $enable_doscompile in
3368      mingw)
3369        FFLAGS="-mno-cygwin"
3370        cat >conftest.$ac_ext <<_ACEOF
3371      program main
3372      write(*,*) 'Hello world'
3373      end
3374_ACEOF
3375rm -f conftest.$ac_objext conftest$ac_exeext
3376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3377  (eval $ac_link) 2>conftest.er1
3378  ac_status=$?
3379  grep -v '^ *+' conftest.er1 >conftest.err
3380  rm -f conftest.er1
3381  cat conftest.err >&5
3382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383  (exit $ac_status); } &&
3384         { ac_try='test -z "$ac_f77_werror_flag"
3385                         || test ! -s conftest.err'
3386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387  (eval $ac_try) 2>&5
3388  ac_status=$?
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); }; } &&
3391         { ac_try='test -s conftest$ac_exeext'
3392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393  (eval $ac_try) 2>&5
3394  ac_status=$?
3395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396  (exit $ac_status); }; }; then
3397  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3398else
3399  echo "$as_me: failed program was:" >&5
3400sed 's/^/| /' conftest.$ac_ext >&5
3401
3402fi
3403rm -f conftest.err conftest.$ac_objext \
3404      conftest$ac_exeext conftest.$ac_ext
3405        FFLAGS=
3406      ;;
3407    esac
3408  else
3409    case $build in
3410      *-cygwin* | *-mingw*)
3411        case $F77 in
3412          ifort* | */ifort* | IFORT* | */IFORT* )
3413            coin_opt_fflags='-O3'
3414            coin_add_fflags='-nologo -MT'
3415            coin_dbg_fflags='-debug'
3416          ;;
3417        esac
3418        ;;
3419      *-linux-*)
3420        case $F77 in
3421          ifc* | */ifc* | ifort* | */ifort*)
3422            coin_opt_fflags="-O3 -ip"
3423            coin_add_fflags="-cm -w90 -w95"
3424            coin_dbg_fflags="-g -CA -CB -CS"
3425            # Check if -i_dynamic is necessary (for new glibc library)
3426            FFLAGS=
3427            cat >conftest.$ac_ext <<_ACEOF
3428      program main
3429      write(*,*) 'Hello world'
3430      end
3431_ACEOF
3432rm -f conftest.$ac_objext conftest$ac_exeext
3433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3434  (eval $ac_link) 2>conftest.er1
3435  ac_status=$?
3436  grep -v '^ *+' conftest.er1 >conftest.err
3437  rm -f conftest.er1
3438  cat conftest.err >&5
3439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440  (exit $ac_status); } &&
3441         { ac_try='test -z "$ac_f77_werror_flag"
3442                         || test ! -s conftest.err'
3443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444  (eval $ac_try) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); }; } &&
3448         { ac_try='test -s conftest$ac_exeext'
3449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450  (eval $ac_try) 2>&5
3451  ac_status=$?
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; }; then
3454  :
3455else
3456  echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459coin_add_fflags="-i_dynamic $coin_add_fflags"
3460fi
3461rm -f conftest.err conftest.$ac_objext \
3462      conftest$ac_exeext conftest.$ac_ext
3463            ;;
3464          pgf77* | */pgf77* | pgf90* | */pgf90*)
3465            coin_opt_fflags="-fast"
3466            coin_add_fflags="-Kieee -pc 64"
3467            coin_dbg_fflags="-g"
3468          ;;
3469        esac
3470        ;;
3471      *-ibm-*)
3472        case "$F77" in
3473          xlf* | */xlf* | mpxlf* | */mpxlf* )
3474            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3475            coin_add_fflags="-bmaxdata:0x80000000"
3476            coin_dbg_fflags="-g -C"
3477            ;;
3478        esac
3479        ;;
3480      *-hp-*)
3481        coin_opt_fflags="+O3"
3482        coin_add_fflags="+U77"
3483        coin_dbg_fflags="-C -g"
3484        ;;
3485      *-sun-*)
3486        coin_opt_fflags="-O4"
3487        coin_dbg_fflags="-g"
3488        ;;
3489      *-sgi-*)
3490        coin_opt_fflags="-O5 -OPT:Olimit=0"
3491        coin_dbg_fflags="-g"
3492        ;;
3493    esac
3494  fi
3495
3496  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3497    coin_dbg_fflags="-g"
3498  fi
3499
3500  if test -z "$coin_opt_fflags"; then
3501    # Try if -O option works if nothing else is set
3502    FFLAGS=-O
3503    cat >conftest.$ac_ext <<_ACEOF
3504      program main
3505      integer i
3506      end
3507_ACEOF
3508rm -f conftest.$ac_objext conftest$ac_exeext
3509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3510  (eval $ac_link) 2>conftest.er1
3511  ac_status=$?
3512  grep -v '^ *+' conftest.er1 >conftest.err
3513  rm -f conftest.er1
3514  cat conftest.err >&5
3515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516  (exit $ac_status); } &&
3517         { ac_try='test -z "$ac_f77_werror_flag"
3518                         || test ! -s conftest.err'
3519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520  (eval $ac_try) 2>&5
3521  ac_status=$?
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); }; } &&
3524         { ac_try='test -s conftest$ac_exeext'
3525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526  (eval $ac_try) 2>&5
3527  ac_status=$?
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); }; }; then
3530  coin_opt_fflags="-O"
3531else
3532  echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
3535fi
3536rm -f conftest.err conftest.$ac_objext \
3537      conftest$ac_exeext conftest.$ac_ext
3538  fi
3539
3540  # if PM doesn't want the warning messages, take them out
3541  if test x"$coin_skip_warn_fflags" = xyes; then
3542    coin_warn_fflags=
3543  fi
3544
3545  if test x${DBG_FFLAGS+set} != xset; then
3546    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3547  fi
3548  if test x${OPT_FFLAGS+set} != xset; then
3549    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3550  fi
3551
3552  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3553  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3554
3555  if test "$coin_debug_compile" = "true"; then
3556    FFLAGS="$DBG_FFLAGS"
3557  else
3558    FFLAGS="$OPT_FFLAGS"
3559  fi
3560else
3561  FFLAGS="$FFLAGS $ADD_FFLAGS"
3562  if test x${DBG_FFLAGS+set} != xset; then
3563    DBG_FFLAGS="$FFLAGS"
3564  fi
3565  if test x${OPT_FFLAGS+set} != xset; then
3566    OPT_FFLAGS="$FFLAGS"
3567  fi
3568fi
3569
3570# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3571case "$FFLAGS" in
3572  *-mno-cygwin*)
3573    if test x${CPPFLAGS+set} != xset ; then
3574      CPPFLAGS="-mno-cygwin"
3575    else
3576      case "$CPPFLAGS" in
3577        *-mno-cygwin*)
3578          ;;
3579        *)
3580          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3581          ;;
3582      esac
3583    fi ;;
3584esac
3585
3586# Try if FFLAGS works
3587if test "$F77" != "unavailable" ; then
3588  cat >conftest.$ac_ext <<_ACEOF
3589      program main
3590      integer i
3591      end
3592_ACEOF
3593rm -f conftest.$ac_objext conftest$ac_exeext
3594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3595  (eval $ac_link) 2>conftest.er1
3596  ac_status=$?
3597  grep -v '^ *+' conftest.er1 >conftest.err
3598  rm -f conftest.er1
3599  cat conftest.err >&5
3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); } &&
3602         { ac_try='test -z "$ac_f77_werror_flag"
3603                         || test ! -s conftest.err'
3604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605  (eval $ac_try) 2>&5
3606  ac_status=$?
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); }; } &&
3609         { ac_try='test -s conftest$ac_exeext'
3610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611  (eval $ac_try) 2>&5
3612  ac_status=$?
3613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); }; }; then
3615  :
3616else
3617  echo "$as_me: failed program was:" >&5
3618sed 's/^/| /' conftest.$ac_ext >&5
3619
3620FFLAGS=
3621fi
3622rm -f conftest.err conftest.$ac_objext \
3623      conftest$ac_exeext conftest.$ac_ext
3624  if test -z "$FFLAGS"; then
3625    { 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
3626echo "$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;}
3627    FFLAGS='-O'
3628    cat >conftest.$ac_ext <<_ACEOF
3629      program main
3630      integer i
3631      end
3632_ACEOF
3633rm -f conftest.$ac_objext conftest$ac_exeext
3634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3635  (eval $ac_link) 2>conftest.er1
3636  ac_status=$?
3637  grep -v '^ *+' conftest.er1 >conftest.err
3638  rm -f conftest.er1
3639  cat conftest.err >&5
3640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641  (exit $ac_status); } &&
3642         { ac_try='test -z "$ac_f77_werror_flag"
3643                         || test ! -s conftest.err'
3644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645  (eval $ac_try) 2>&5
3646  ac_status=$?
3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648  (exit $ac_status); }; } &&
3649         { ac_try='test -s conftest$ac_exeext'
3650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651  (eval $ac_try) 2>&5
3652  ac_status=$?
3653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654  (exit $ac_status); }; }; then
3655  :
3656else
3657  echo "$as_me: failed program was:" >&5
3658sed 's/^/| /' conftest.$ac_ext >&5
3659
3660FFLAGS=
3661fi
3662rm -f conftest.err conftest.$ac_objext \
3663      conftest$ac_exeext conftest.$ac_ext
3664    if test -z "$FFLAGS"; then
3665      { 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
3666echo "$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;}
3667    fi
3668  fi
3669fi
3670
3671{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3672echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3673
3674
3675if test x"$MPIF77" = x; then :; else
3676  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3677echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3678  F77="$MPIF77"
3679fi
3680
3681case "$F77" in
3682  ifort* | */ifort* | IFORT* | */IFORT*)
3683    case $build in
3684  *-mingw*)
3685    if test "${LD+set}" = set; then :; else
3686      LD=link
3687    fi
3688    ;;
3689 esac
3690 case $enable_doscompile in
3691   msvc)
3692     if test "x${LD+set}" = xset; then :; else
3693       LD=link
3694     fi
3695     ;;
3696 esac
3697
3698    ;;
3699esac
3700
3701ac_ext=c
3702ac_cpp='$CPP $CPPFLAGS'
3703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706
3707
3708
3709# Initialize automake
3710{
3711
3712
3713
3714# START
3715
3716# On Cygwin, building DLLs doesn't work
3717case $build in
3718  *-cygwin*)
3719    coin_disable_shared=yes
3720    platform=Cygwin
3721  ;;
3722  *-mingw*)
3723    coin_disable_shared=yes
3724    platform="Msys"
3725#    case "$CXX" in
3726#      cl*)
3727#        coin_disable_shared=yes
3728#        platform="Msys with cl"
3729#    ;;
3730#    esac
3731  ;;
3732esac
3733if test x"$coin_disable_shared" = xyes; then
3734  if test x"$enable_shared" = xyes; then
3735    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3736echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3737  fi
3738  enable_shared=no
3739fi
3740# By default, we only want the shared objects to be compiled
3741# Check whether --enable-static or --disable-static was given.
3742if test "${enable_static+set}" = set; then
3743  enableval="$enable_static"
3744  p=${PACKAGE-default}
3745    case $enableval in
3746    yes) enable_static=yes ;;
3747    no) enable_static=no ;;
3748    *)
3749     enable_static=no
3750      # Look at the argument we got.  We use all the common list separators.
3751      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3752      for pkg in $enableval; do
3753        IFS="$lt_save_ifs"
3754        if test "X$pkg" = "X$p"; then
3755          enable_static=yes
3756        fi
3757      done
3758      IFS="$lt_save_ifs"
3759      ;;
3760    esac
3761else
3762  enable_static=no
3763fi;
3764
3765
3766
3767
3768# Initialize automake
3769echo "$as_me:$LINENO: checking for egrep" >&5
3770echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3771if test "${ac_cv_prog_egrep+set}" = set; then
3772  echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
3774  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3775    then ac_cv_prog_egrep='grep -E'
3776    else ac_cv_prog_egrep='egrep'
3777    fi
3778fi
3779echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3780echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3781 EGREP=$ac_cv_prog_egrep
3782
3783
3784am__api_version="1.9"
3785# Find a good install program.  We prefer a C program (faster),
3786# so one script is as good as another.  But avoid the broken or
3787# incompatible versions:
3788# SysV /etc/install, /usr/sbin/install
3789# SunOS /usr/etc/install
3790# IRIX /sbin/install
3791# AIX /bin/install
3792# AmigaOS /C/install, which installs bootblocks on floppy discs
3793# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3794# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3795# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3796# OS/2's system install, which has a completely different semantic
3797# ./install, which can be erroneously created by make from ./install.sh.
3798echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3799echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3800if test -z "$INSTALL"; then
3801if test "${ac_cv_path_install+set}" = set; then
3802  echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807  IFS=$as_save_IFS
3808  test -z "$as_dir" && as_dir=.
3809  # Account for people who put trailing slashes in PATH elements.
3810case $as_dir/ in
3811  ./ | .// | /cC/* | \
3812  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3813  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3814  /usr/ucb/* ) ;;
3815  *)
3816    # OSF1 and SCO ODT 3.0 have their own names for install.
3817    # Don't use installbsd from OSF since it installs stuff as root
3818    # by default.
3819    for ac_prog in ginstall scoinst install; do
3820      for ac_exec_ext in '' $ac_executable_extensions; do
3821        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3822          if test $ac_prog = install &&
3823            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3824            # AIX install.  It has an incompatible calling convention.
3825            :
3826          elif test $ac_prog = install &&
3827            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3828            # program-specific install script used by HP pwplus--don't use.
3829            :
3830          else
3831            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3832            break 3
3833          fi
3834        fi
3835      done
3836    done
3837    ;;
3838esac
3839done
3840
3841
3842fi
3843  if test "${ac_cv_path_install+set}" = set; then
3844    INSTALL=$ac_cv_path_install
3845  else
3846    # As a last resort, use the slow shell script.  We don't cache a
3847    # path for INSTALL within a source directory, because that will
3848    # break other packages using the cache if that directory is
3849    # removed, or if the path is relative.
3850    INSTALL=$ac_install_sh
3851  fi
3852fi
3853echo "$as_me:$LINENO: result: $INSTALL" >&5
3854echo "${ECHO_T}$INSTALL" >&6
3855
3856# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3857# It thinks the first close brace ends the variable substitution.
3858test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3859
3860test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3861
3862test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3863
3864echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3865echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3866# Just in case
3867sleep 1
3868echo timestamp > conftest.file
3869# Do `set' in a subshell so we don't clobber the current shell's
3870# arguments.  Must try -L first in case configure is actually a
3871# symlink; some systems play weird games with the mod time of symlinks
3872# (eg FreeBSD returns the mod time of the symlink's containing
3873# directory).
3874if (
3875   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3876   if test "$*" = "X"; then
3877      # -L didn't work.
3878      set X `ls -t $srcdir/configure conftest.file`
3879   fi
3880   rm -f conftest.file
3881   if test "$*" != "X $srcdir/configure conftest.file" \
3882      && test "$*" != "X conftest.file $srcdir/configure"; then
3883
3884      # If neither matched, then we have a broken ls.  This can happen
3885      # if, for instance, CONFIG_SHELL is bash and it inherits a
3886      # broken ls alias from the environment.  This has actually
3887      # happened.  Such a system could not be considered "sane".
3888      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3889alias in your environment" >&5
3890echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3891alias in your environment" >&2;}
3892   { (exit 1); exit 1; }; }
3893   fi
3894
3895   test "$2" = conftest.file
3896   )
3897then
3898   # Ok.
3899   :
3900else
3901   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3902Check your system clock" >&5
3903echo "$as_me: error: newly created file is older than distributed files!
3904Check your system clock" >&2;}
3905   { (exit 1); exit 1; }; }
3906fi
3907echo "$as_me:$LINENO: result: yes" >&5
3908echo "${ECHO_T}yes" >&6
3909test "$program_prefix" != NONE &&
3910  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3911# Use a double $ so make ignores it.
3912test "$program_suffix" != NONE &&
3913  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3914# Double any \ or $.  echo might interpret backslashes.
3915# By default was `s,x,x', remove it if useless.
3916cat <<\_ACEOF >conftest.sed
3917s/[\\$]/&&/g;s/;s,x,x,$//
3918_ACEOF
3919program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3920rm conftest.sed
3921
3922# expand $ac_aux_dir to an absolute path
3923am_aux_dir=`cd $ac_aux_dir && pwd`
3924
3925test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3926# Use eval to expand $SHELL
3927if eval "$MISSING --run true"; then
3928  am_missing_run="$MISSING --run "
3929else
3930  am_missing_run=
3931  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3932echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3933fi
3934
3935if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3936  # We used to keeping the `.' as first argument, in order to
3937  # allow $(mkdir_p) to be used without argument.  As in
3938  #   $(mkdir_p) $(somedir)
3939  # where $(somedir) is conditionally defined.  However this is wrong
3940  # for two reasons:
3941  #  1. if the package is installed by a user who cannot write `.'
3942  #     make install will fail,
3943  #  2. the above comment should most certainly read
3944  #     $(mkdir_p) $(DESTDIR)$(somedir)
3945  #     so it does not work when $(somedir) is undefined and
3946  #     $(DESTDIR) is not.
3947  #  To support the latter case, we have to write
3948  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3949  #  so the `.' trick is pointless.
3950  mkdir_p='mkdir -p --'
3951else
3952  # On NextStep and OpenStep, the `mkdir' command does not
3953  # recognize any option.  It will interpret all options as
3954  # directories to create, and then abort because `.' already
3955  # exists.
3956  for d in ./-p ./--version;
3957  do
3958    test -d $d && rmdir $d
3959  done
3960  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3961  if test -f "$ac_aux_dir/mkinstalldirs"; then
3962    mkdir_p='$(mkinstalldirs)'
3963  else
3964    mkdir_p='$(install_sh) -d'
3965  fi
3966fi
3967
3968for ac_prog in gawk mawk nawk awk
3969do
3970  # Extract the first word of "$ac_prog", so it can be a program name with args.
3971set dummy $ac_prog; ac_word=$2
3972echo "$as_me:$LINENO: checking for $ac_word" >&5
3973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3974if test "${ac_cv_prog_AWK+set}" = set; then
3975  echo $ECHO_N "(cached) $ECHO_C" >&6
3976else
3977  if test -n "$AWK"; then
3978  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3979else
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983  IFS=$as_save_IFS
3984  test -z "$as_dir" && as_dir=.
3985  for ac_exec_ext in '' $ac_executable_extensions; do
3986  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3987    ac_cv_prog_AWK="$ac_prog"
3988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3989    break 2
3990  fi
3991done
3992done
3993
3994fi
3995fi
3996AWK=$ac_cv_prog_AWK
3997if test -n "$AWK"; then
3998  echo "$as_me:$LINENO: result: $AWK" >&5
3999echo "${ECHO_T}$AWK" >&6
4000else
4001  echo "$as_me:$LINENO: result: no" >&5
4002echo "${ECHO_T}no" >&6
4003fi
4004
4005  test -n "$AWK" && break
4006done
4007
4008echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4009echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4010set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4011if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4012  echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
4014  cat >conftest.make <<\_ACEOF
4015all:
4016        @echo 'ac_maketemp="$(MAKE)"'
4017_ACEOF
4018# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4019eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4020if test -n "$ac_maketemp"; then
4021  eval ac_cv_prog_make_${ac_make}_set=yes
4022else
4023  eval ac_cv_prog_make_${ac_make}_set=no
4024fi
4025rm -f conftest.make
4026fi
4027if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4028  echo "$as_me:$LINENO: result: yes" >&5
4029echo "${ECHO_T}yes" >&6
4030  SET_MAKE=
4031else
4032  echo "$as_me:$LINENO: result: no" >&5
4033echo "${ECHO_T}no" >&6
4034  SET_MAKE="MAKE=${MAKE-make}"
4035fi
4036
4037rm -rf .tst 2>/dev/null
4038mkdir .tst 2>/dev/null
4039if test -d .tst; then
4040  am__leading_dot=.
4041else
4042  am__leading_dot=_
4043fi
4044rmdir .tst 2>/dev/null
4045
4046DEPDIR="${am__leading_dot}deps"
4047
4048          ac_config_commands="$ac_config_commands depfiles"
4049
4050
4051am_make=${MAKE-make}
4052cat > confinc << 'END'
4053am__doit:
4054        @echo done
4055.PHONY: am__doit
4056END
4057# If we don't find an include directive, just comment out the code.
4058echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4059echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4060am__include="#"
4061am__quote=
4062_am_result=none
4063# First try GNU make style include.
4064echo "include confinc" > confmf
4065# We grep out `Entering directory' and `Leaving directory'
4066# messages which can occur if `w' ends up in MAKEFLAGS.
4067# In particular we don't look at `^make:' because GNU make might
4068# be invoked under some other name (usually "gmake"), in which
4069# case it prints its new name instead of `make'.
4070if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4071   am__include=include
4072   am__quote=
4073   _am_result=GNU
4074fi
4075# Now try BSD make style include.
4076if test "$am__include" = "#"; then
4077   echo '.include "confinc"' > confmf
4078   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4079      am__include=.include
4080      am__quote="\""
4081      _am_result=BSD
4082   fi
4083fi
4084
4085
4086echo "$as_me:$LINENO: result: $_am_result" >&5
4087echo "${ECHO_T}$_am_result" >&6
4088rm -f confinc confmf
4089
4090# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4091if test "${enable_dependency_tracking+set}" = set; then
4092  enableval="$enable_dependency_tracking"
4093
4094fi;
4095if test "x$enable_dependency_tracking" != xno; then
4096  am_depcomp="$ac_aux_dir/depcomp"
4097  AMDEPBACKSLASH='\'
4098fi
4099
4100
4101if test "x$enable_dependency_tracking" != xno; then
4102  AMDEP_TRUE=
4103  AMDEP_FALSE='#'
4104else
4105  AMDEP_TRUE='#'
4106  AMDEP_FALSE=
4107fi
4108
4109
4110
4111
4112
4113# AC_MSG_NOTICE([Beginning automake initialisation.])
4114# Stuff for automake
4115# test to see if srcdir already configured
4116if test "`cd $srcdir && pwd`" != "`pwd`" &&
4117   test -f $srcdir/config.status; then
4118  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4119echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4120   { (exit 1); exit 1; }; }
4121fi
4122
4123# test whether we have cygpath
4124if test -z "$CYGPATH_W"; then
4125  if (cygpath --version) >/dev/null 2>/dev/null; then
4126    CYGPATH_W='cygpath -w'
4127  else
4128    CYGPATH_W=echo
4129  fi
4130fi
4131
4132
4133# Define the identity of the package.
4134 PACKAGE='thirdpartyblas'
4135 VERSION='0.0'
4136
4137
4138cat >>confdefs.h <<_ACEOF
4139#define PACKAGE "$PACKAGE"
4140_ACEOF
4141
4142
4143cat >>confdefs.h <<_ACEOF
4144#define VERSION "$VERSION"
4145_ACEOF
4146
4147# Some tools Automake needs.
4148
4149ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4150
4151
4152AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4153
4154
4155AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4156
4157
4158AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4159
4160
4161MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4162
4163install_sh=${install_sh-"$am_aux_dir/install-sh"}
4164
4165# Installed binaries are usually stripped using `strip' when the user
4166# run `make install-strip'.  However `strip' might not be the right
4167# tool to use in cross-compilation environments, therefore Automake
4168# will honor the `STRIP' environment variable to overrule this program.
4169if test "$cross_compiling" != no; then
4170  if test -n "$ac_tool_prefix"; then
4171  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4172set dummy ${ac_tool_prefix}strip; ac_word=$2
4173echo "$as_me:$LINENO: checking for $ac_word" >&5
4174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4175if test "${ac_cv_prog_STRIP+set}" = set; then
4176  echo $ECHO_N "(cached) $ECHO_C" >&6
4177else
4178  if test -n "$STRIP"; then
4179  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4180else
4181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182for as_dir in $PATH
4183do
4184  IFS=$as_save_IFS
4185  test -z "$as_dir" && as_dir=.
4186  for ac_exec_ext in '' $ac_executable_extensions; do
4187  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190    break 2
4191  fi
4192done
4193done
4194
4195fi
4196fi
4197STRIP=$ac_cv_prog_STRIP
4198if test -n "$STRIP"; then
4199  echo "$as_me:$LINENO: result: $STRIP" >&5
4200echo "${ECHO_T}$STRIP" >&6
4201else
4202  echo "$as_me:$LINENO: result: no" >&5
4203echo "${ECHO_T}no" >&6
4204fi
4205
4206fi
4207if test -z "$ac_cv_prog_STRIP"; then
4208  ac_ct_STRIP=$STRIP
4209  # Extract the first word of "strip", so it can be a program name with args.
4210set dummy strip; ac_word=$2
4211echo "$as_me:$LINENO: checking for $ac_word" >&5
4212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4213if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4214  echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216  if test -n "$ac_ct_STRIP"; then
4217  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4218else
4219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH
4221do
4222  IFS=$as_save_IFS
4223  test -z "$as_dir" && as_dir=.
4224  for ac_exec_ext in '' $ac_executable_extensions; do
4225  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226    ac_cv_prog_ac_ct_STRIP="strip"
4227    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228    break 2
4229  fi
4230done
4231done
4232
4233  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4234fi
4235fi
4236ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4237if test -n "$ac_ct_STRIP"; then
4238  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4239echo "${ECHO_T}$ac_ct_STRIP" >&6
4240else
4241  echo "$as_me:$LINENO: result: no" >&5
4242echo "${ECHO_T}no" >&6
4243fi
4244
4245  STRIP=$ac_ct_STRIP
4246else
4247  STRIP="$ac_cv_prog_STRIP"
4248fi
4249
4250fi
4251INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4252
4253# We need awk for the "check" target.  The system "awk" is bad on
4254# some platforms.
4255# Always define AMTAR for backward compatibility.
4256
4257AMTAR=${AMTAR-"${am_missing_run}tar"}
4258
4259am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4260
4261
4262
4263
4264depcc="$CC"   am_compiler_list=
4265
4266echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4267echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4268if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4269  echo $ECHO_N "(cached) $ECHO_C" >&6
4270else
4271  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4272  # We make a subdir and do the tests there.  Otherwise we can end up
4273  # making bogus files that we don't know about and never remove.  For
4274  # instance it was reported that on HP-UX the gcc test will end up
4275  # making a dummy file named `D' -- because `-MD' means `put the output
4276  # in D'.
4277  mkdir conftest.dir
4278  # Copy depcomp to subdir because otherwise we won't find it if we're
4279  # using a relative directory.
4280  cp "$am_depcomp" conftest.dir
4281  cd conftest.dir
4282  # We will build objects and dependencies in a subdirectory because
4283  # it helps to detect inapplicable dependency modes.  For instance
4284  # both Tru64's cc and ICC support -MD to output dependencies as a
4285  # side effect of compilation, but ICC will put the dependencies in
4286  # the current directory while Tru64 will put them in the object
4287  # directory.
4288  mkdir sub
4289
4290  am_cv_CC_dependencies_compiler_type=none
4291  if test "$am_compiler_list" = ""; then
4292     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4293  fi
4294  for depmode in $am_compiler_list; do
4295    # Setup a source with many dependencies, because some compilers
4296    # like to wrap large dependency lists on column 80 (with \), and
4297    # we should not choose a depcomp mode which is confused by this.
4298    #
4299    # We need to recreate these files for each test, as the compiler may
4300    # overwrite some of them when testing with obscure command lines.
4301    # This happens at least with the AIX C compiler.
4302    : > sub/conftest.c
4303    for i in 1 2 3 4 5 6; do
4304      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4305      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4306      # Solaris 8's {/usr,}/bin/sh.
4307      touch sub/conftst$i.h
4308    done
4309    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4310
4311    case $depmode in
4312    nosideeffect)
4313      # after this tag, mechanisms are not by side-effect, so they'll
4314      # only be used when explicitly requested
4315      if test "x$enable_dependency_tracking" = xyes; then
4316        continue
4317      else
4318        break
4319      fi
4320      ;;
4321    none) break ;;
4322    esac
4323    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4324    # mode.  It turns out that the SunPro C++ compiler does not properly
4325    # handle `-M -o', and we need to detect this.
4326    if depmode=$depmode \
4327       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4328       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4329       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4330         >/dev/null 2>conftest.err &&
4331       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4332       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4333       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4334      # icc doesn't choke on unknown options, it will just issue warnings
4335      # or remarks (even with -Werror).  So we grep stderr for any message
4336      # that says an option was ignored or not supported.
4337      # When given -MP, icc 7.0 and 7.1 complain thusly:
4338      #   icc: Command line warning: ignoring option '-M'; no argument required
4339      # The diagnosis changed in icc 8.0:
4340      #   icc: Command line remark: option '-MP' not supported
4341      if (grep 'ignoring option' conftest.err ||
4342          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4343        am_cv_CC_dependencies_compiler_type=$depmode
4344        break
4345      fi
4346    fi
4347  done
4348
4349  cd ..
4350  rm -rf conftest.dir
4351else
4352  am_cv_CC_dependencies_compiler_type=none
4353fi
4354
4355fi
4356echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4357echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4358CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4359
4360
4361
4362if
4363  test "x$enable_dependency_tracking" != xno \
4364  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4365  am__fastdepCC_TRUE=
4366  am__fastdepCC_FALSE='#'
4367else
4368  am__fastdepCC_TRUE='#'
4369  am__fastdepCC_FALSE=
4370fi
4371
4372
4373
4374echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4375echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4376    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4377if test "${enable_maintainer_mode+set}" = set; then
4378  enableval="$enable_maintainer_mode"
4379  USE_MAINTAINER_MODE=$enableval
4380else
4381  USE_MAINTAINER_MODE=no
4382fi;
4383  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4384echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4385
4386
4387if test $USE_MAINTAINER_MODE = yes; then
4388  MAINTAINER_MODE_TRUE=
4389  MAINTAINER_MODE_FALSE='#'
4390else
4391  MAINTAINER_MODE_TRUE='#'
4392  MAINTAINER_MODE_FALSE=
4393fi
4394
4395  MAINT=$MAINTAINER_MODE_TRUE
4396
4397
4398
4399coin_have_externals=no
4400if test "$enable_maintainer_mode" = yes; then
4401
4402  # If maintainer mode is chosen, we make sure that the correct versions
4403  # of the tools are used, and that we know where libtool.m4 is (to
4404  # recreate acinclude.m4)
4405
4406
4407  LIBTOOLM4=
4408  # Normally, $HOME
4409  AUTOTOOLS_DFLT=$HOME
4410
4411  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4412echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4413if test "${ac_cv_use_correct_autotools+set}" = set; then
4414  echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416  ac_cv_use_correct_autotools=check
4417fi
4418echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4419echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4420
4421  if test $ac_cv_use_correct_autotools = check; then
4422    ac_cv_use_correct_autotools=yes
4423    # Check if we have autoconf
4424    # Extract the first word of "autoconf", so it can be a program name with args.
4425set dummy autoconf; ac_word=$2
4426echo "$as_me:$LINENO: checking for $ac_word" >&5
4427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4428if test "${ac_cv_prog_have_autoconf+set}" = set; then
4429  echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431  if test -n "$have_autoconf"; then
4432  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4433else
4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437  IFS=$as_save_IFS
4438  test -z "$as_dir" && as_dir=.
4439  for ac_exec_ext in '' $ac_executable_extensions; do
4440  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441    ac_cv_prog_have_autoconf="yes"
4442    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443    break 2
4444  fi
4445done
4446done
4447
4448  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4449fi
4450fi
4451have_autoconf=$ac_cv_prog_have_autoconf
4452if test -n "$have_autoconf"; then
4453  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4454echo "${ECHO_T}$have_autoconf" >&6
4455else
4456  echo "$as_me:$LINENO: result: no" >&5
4457echo "${ECHO_T}no" >&6
4458fi
4459
4460    if test $have_autoconf = no; then
4461      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4462echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4463   { (exit 1); exit 1; }; }
4464    fi
4465
4466    # Check whether autoconf is the correct version
4467    correct_version='2.59'
4468    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4469    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4470echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4471    autoconf --version > confauto.out 2>&1
4472    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4473      echo "$as_me:$LINENO: result: yes" >&5
4474echo "${ECHO_T}yes" >&6
4475    else
4476      rm -f confauto.out
4477      echo "$as_me:$LINENO: result: no" >&5
4478echo "${ECHO_T}no" >&6
4479      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4480echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4481   { (exit 1); exit 1; }; }
4482    fi
4483    rm -f confauto.out
4484
4485    # Check if the executable autoconf is picked up from the correct location
4486    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4487echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4488    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4489    autoconf_dir=`cd $autoconf_dir; pwd`
4490    if test x$AUTOTOOLS_DIR = x; then
4491      want_dir=$AUTOTOOLS_DFLT/bin
4492    else
4493      want_dir=$AUTOTOOLS_DIR/bin
4494    fi
4495    if test $autoconf_dir = `cd $want_dir; pwd`; then
4496      echo "$as_me:$LINENO: result: yes" >&5
4497echo "${ECHO_T}yes" >&6
4498    else
4499      rm -f confauto.out
4500      echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
4502      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4503echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4504   { (exit 1); exit 1; }; }
4505    fi
4506
4507    # Check if we have automake
4508    # Extract the first word of "automake", so it can be a program name with args.
4509set dummy automake; ac_word=$2
4510echo "$as_me:$LINENO: checking for $ac_word" >&5
4511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512if test "${ac_cv_prog_have_automake+set}" = set; then
4513  echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
4515  if test -n "$have_automake"; then
4516  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4517else
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521  IFS=$as_save_IFS
4522  test -z "$as_dir" && as_dir=.
4523  for ac_exec_ext in '' $ac_executable_extensions; do
4524  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525    ac_cv_prog_have_automake="yes"
4526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527    break 2
4528  fi
4529done
4530done
4531
4532  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4533fi
4534fi
4535have_automake=$ac_cv_prog_have_automake
4536if test -n "$have_automake"; then
4537  echo "$as_me:$LINENO: result: $have_automake" >&5
4538echo "${ECHO_T}$have_automake" >&6
4539else
4540  echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6
4542fi
4543
4544    if test $have_automake = no; then
4545      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4546echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4547   { (exit 1); exit 1; }; }
4548    fi
4549
4550    # Check whether automake is the correct version
4551    correct_version='1.9.6'
4552    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4553    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4554echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4555    automake --version > confauto.out 2>&1
4556    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4557      echo "$as_me:$LINENO: result: yes" >&5
4558echo "${ECHO_T}yes" >&6
4559    else
4560      rm -f confauto.out
4561      echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6
4563      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4564echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4565   { (exit 1); exit 1; }; }
4566    fi
4567    rm -f confauto.out
4568
4569    # Check if the executable automake is picked up from the correct location
4570    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4571echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4572    automake_dir=`which automake | sed -e 's=/automake=='`
4573    automake_dir=`cd $automake_dir; pwd`
4574    if test x$AUTOTOOLS_DIR = x; then
4575      want_dir=$AUTOTOOLS_DFLT/bin
4576    else
4577      want_dir=$AUTOTOOLS_DIR/bin
4578    fi
4579    if test $automake_dir = `cd $want_dir; pwd`; then
4580      echo "$as_me:$LINENO: result: yes" >&5
4581echo "${ECHO_T}yes" >&6
4582    else
4583      rm -f confauto.out
4584      echo "$as_me:$LINENO: result: no" >&5
4585echo "${ECHO_T}no" >&6
4586      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4587echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4588   { (exit 1); exit 1; }; }
4589    fi
4590
4591    # Check if this is the correct version of libtool (with escaped dots)
4592    if test x$AUTOTOOLS_DIR = x; then
4593      want_dir=$AUTOTOOLS_DFLT/share
4594    else
4595      want_dir=$AUTOTOOLS_DIR/share
4596    fi
4597    correct_version='1.5.22'
4598    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4599    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4600echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4601echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4602if eval "test \"\${$as_ac_File+set}\" = set"; then
4603  echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605  test "$cross_compiling" = yes &&
4606  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4607echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4608   { (exit 1); exit 1; }; }
4609if test -r "$want_dir/libtool/ltmain.sh"; then
4610  eval "$as_ac_File=yes"
4611else
4612  eval "$as_ac_File=no"
4613fi
4614fi
4615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4616echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4617if test `eval echo '${'$as_ac_File'}'` = yes; then
4618  have_ltmain=yes
4619else
4620  have_ltmain=no
4621fi
4622
4623    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4624echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4625    if test $have_ltmain = yes; then
4626    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4627        echo "$as_me:$LINENO: result: yes" >&5
4628echo "${ECHO_T}yes" >&6
4629      else
4630        echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
4632        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4633echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4634   { (exit 1); exit 1; }; }
4635      fi
4636    else
4637      echo "$as_me:$LINENO: result: no" >&5
4638echo "${ECHO_T}no" >&6
4639      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4640echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4641   { (exit 1); exit 1; }; }
4642    fi
4643  fi
4644
4645  # Check if we can find the libtool file
4646  if test x$AUTOTOOLS_DIR = x; then
4647    want_dir=$AUTOTOOLS_DFLT/share
4648  else
4649    want_dir=$AUTOTOOLS_DIR/share
4650  fi
4651  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4652echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4653echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4654if eval "test \"\${$as_ac_File+set}\" = set"; then
4655  echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657  test "$cross_compiling" = yes &&
4658  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4659echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4660   { (exit 1); exit 1; }; }
4661if test -r "$want_dir/aclocal/libtool.m4"; then
4662  eval "$as_ac_File=yes"
4663else
4664  eval "$as_ac_File=no"
4665fi
4666fi
4667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4668echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4669if test `eval echo '${'$as_ac_File'}'` = yes; then
4670  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4671else
4672  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4673echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4674   { (exit 1); exit 1; }; }
4675fi
4676
4677
4678  # Check if we have an Externals file
4679  if test -r $srcdir/Externals; then
4680    coin_have_externals=yes
4681  fi
4682  # Check if subversion is installed and understands https
4683  # Extract the first word of "svn", so it can be a program name with args.
4684set dummy svn; ac_word=$2
4685echo "$as_me:$LINENO: checking for $ac_word" >&5
4686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687if test "${ac_cv_prog_have_svn+set}" = set; then
4688  echo $ECHO_N "(cached) $ECHO_C" >&6
4689else
4690  if test -n "$have_svn"; then
4691  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4692else
4693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694for as_dir in $PATH
4695do
4696  IFS=$as_save_IFS
4697  test -z "$as_dir" && as_dir=.
4698  for ac_exec_ext in '' $ac_executable_extensions; do
4699  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700    ac_cv_prog_have_svn="yes"
4701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702    break 2
4703  fi
4704done
4705done
4706
4707  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4708fi
4709fi
4710have_svn=$ac_cv_prog_have_svn
4711if test -n "$have_svn"; then
4712  echo "$as_me:$LINENO: result: $have_svn" >&5
4713echo "${ECHO_T}$have_svn" >&6
4714else
4715  echo "$as_me:$LINENO: result: no" >&5
4716echo "${ECHO_T}no" >&6
4717fi
4718
4719  if test x$have_svn = xyes; then
4720    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4721echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4722if test "${ac_cv_svn_understands_https+set}" = set; then
4723  echo $ECHO_N "(cached) $ECHO_C" >&6
4724else
4725  svn --version > confauto.out 2>&1
4726                    if $EGREP https confauto.out >/dev/null 2>&1; then
4727                      ac_cv_svn_understands_https=yes
4728                    else
4729                      ac_cv_svn_understands_https=no
4730                      have_svn=no
4731                      ac_cv_prog_have_svn=no
4732                    fi
4733                    rm -f confauto.out
4734fi
4735echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4736echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4737  fi
4738
4739  # Find the location of the BuildTools directory
4740  BUILDTOOLSDIR=
4741  if test -r $srcdir/BuildTools/coin.m4; then
4742    BUILDTOOLSDIR=$srcdir/BuildTools
4743  else
4744    if test -r $srcdir/../BuildTools/coin.m4; then
4745      BUILDTOOLSDIR=$srcdir/../BuildTools
4746    else
4747      if test -r $srcdir/../../BuildTools/coin.m4; then
4748        BUILDTOOLSDIR=$srcdir/../../BuildTools
4749      else
4750        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4751echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4752   { (exit 1); exit 1; }; }
4753      fi
4754    fi
4755  fi
4756
4757
4758  # The following variable is set to the name of the directory where
4759  # the autotool scripts are located
4760
4761  AUX_DIR=$ac_aux_dir
4762fi
4763
4764# helpful variable for the base directory of this package
4765abs_source_dir=`cd $srcdir; pwd`
4766
4767
4768# Stuff for example Makefiles
4769if test x$prefix = xNONE; then
4770  full_prefix=$ac_default_prefix
4771else
4772  full_prefix=$prefix
4773fi
4774full_prefix=`cd $full_prefix ; pwd`
4775
4776abs_lib_dir=$full_prefix/lib
4777
4778abs_include_dir=$full_prefix/include
4779
4780abs_bin_dir=$full_prefix/bin
4781
4782
4783
4784if test $coin_have_externals = yes && test x$have_svn = xyes; then
4785  HAVE_EXTERNALS_TRUE=
4786  HAVE_EXTERNALS_FALSE='#'
4787else
4788  HAVE_EXTERNALS_TRUE='#'
4789  HAVE_EXTERNALS_FALSE=
4790fi
4791
4792
4793# AC_MSG_NOTICE([End automake initialisation.])
4794
4795
4796
4797unset ac_cv_file__________libtool
4798unset ac_cv_file_______libtool
4799unset ac_cv_file____libtool
4800
4801LIBTOOL=
4802echo "$as_me:$LINENO: checking for ../libtool" >&5
4803echo $ECHO_N "checking for ../libtool... $ECHO_C" >&6
4804if test "${ac_cv_file____libtool+set}" = set; then
4805  echo $ECHO_N "(cached) $ECHO_C" >&6
4806else
4807  test "$cross_compiling" = yes &&
4808  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4809echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4810   { (exit 1); exit 1; }; }
4811if test -r "../libtool"; then
4812  ac_cv_file____libtool=yes
4813else
4814  ac_cv_file____libtool=no
4815fi
4816fi
4817echo "$as_me:$LINENO: result: $ac_cv_file____libtool" >&5
4818echo "${ECHO_T}$ac_cv_file____libtool" >&6
4819if test $ac_cv_file____libtool = yes; then
4820  coin_config_dir=..
4821               LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4822fi
4823
4824if test "x$LIBTOOL" = x; then
4825  echo "$as_me:$LINENO: checking for ../../libtool" >&5
4826echo $ECHO_N "checking for ../../libtool... $ECHO_C" >&6
4827if test "${ac_cv_file_______libtool+set}" = set; then
4828  echo $ECHO_N "(cached) $ECHO_C" >&6
4829else
4830  test "$cross_compiling" = yes &&
4831  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4832echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4833   { (exit 1); exit 1; }; }
4834if test -r "../../libtool"; then
4835  ac_cv_file_______libtool=yes
4836else
4837  ac_cv_file_______libtool=no
4838fi
4839fi
4840echo "$as_me:$LINENO: result: $ac_cv_file_______libtool" >&5
4841echo "${ECHO_T}$ac_cv_file_______libtool" >&6
4842if test $ac_cv_file_______libtool = yes; then
4843  coin_config_dir=../..
4844                 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4845fi
4846
4847fi
4848# if test "x$LIBTOOL" = x; then
4849#   AC_CHECK_FILE([../../../libtool],
4850#                 [coin_config_dir=../../..
4851#                  LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'])
4852# fi
4853
4854if test "x$LIBTOOL" = x; then
4855# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4856  # Stuff for libtool
4857  # Check whether --enable-shared or --disable-shared was given.
4858if test "${enable_shared+set}" = set; then
4859  enableval="$enable_shared"
4860  p=${PACKAGE-default}
4861    case $enableval in
4862    yes) enable_shared=yes ;;
4863    no) enable_shared=no ;;
4864    *)
4865      enable_shared=no
4866      # Look at the argument we got.  We use all the common list separators.
4867      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4868      for pkg in $enableval; do
4869        IFS="$lt_save_ifs"
4870        if test "X$pkg" = "X$p"; then
4871          enable_shared=yes
4872        fi
4873      done
4874      IFS="$lt_save_ifs"
4875      ;;
4876    esac
4877else
4878  enable_shared=yes
4879fi;
4880
4881# Check whether --enable-fast-install or --disable-fast-install was given.
4882if test "${enable_fast_install+set}" = set; then
4883  enableval="$enable_fast_install"
4884  p=${PACKAGE-default}
4885    case $enableval in
4886    yes) enable_fast_install=yes ;;
4887    no) enable_fast_install=no ;;
4888    *)
4889      enable_fast_install=no
4890      # Look at the argument we got.  We use all the common list separators.
4891      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4892      for pkg in $enableval; do
4893        IFS="$lt_save_ifs"
4894        if test "X$pkg" = "X$p"; then
4895          enable_fast_install=yes
4896        fi
4897      done
4898      IFS="$lt_save_ifs"
4899      ;;
4900    esac
4901else
4902  enable_fast_install=yes
4903fi;
4904
4905echo "$as_me:$LINENO: checking host system type" >&5
4906echo $ECHO_N "checking host system type... $ECHO_C" >&6
4907if test "${ac_cv_host+set}" = set; then
4908  echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910  ac_cv_host_alias=$host_alias
4911test -z "$ac_cv_host_alias" &&
4912  ac_cv_host_alias=$ac_cv_build_alias
4913ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4914  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4915echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4916   { (exit 1); exit 1; }; }
4917
4918fi
4919echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4920echo "${ECHO_T}$ac_cv_host" >&6
4921host=$ac_cv_host
4922host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4923host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4924host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4925
4926
4927echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4928echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4929if test "${lt_cv_path_SED+set}" = set; then
4930  echo $ECHO_N "(cached) $ECHO_C" >&6
4931else
4932  # Loop through the user's path and test for sed and gsed.
4933# Then use that list of sed's as ones to test for truncation.
4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937  IFS=$as_save_IFS
4938  test -z "$as_dir" && as_dir=.
4939  for lt_ac_prog in sed gsed; do
4940    for ac_exec_ext in '' $ac_executable_extensions; do
4941      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4942        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4943      fi
4944    done
4945  done
4946done
4947lt_ac_max=0
4948lt_ac_count=0
4949# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4950# along with /bin/sed that truncates output.
4951for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4952  test ! -f $lt_ac_sed && continue
4953  cat /dev/null > conftest.in
4954  lt_ac_count=0
4955  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4956  # Check for GNU sed and select it if it is found.
4957  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4958    lt_cv_path_SED=$lt_ac_sed
4959    break
4960  fi
4961  while true; do
4962    cat conftest.in conftest.in >conftest.tmp
4963    mv conftest.tmp conftest.in
4964    cp conftest.in conftest.nl
4965    echo >>conftest.nl
4966    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4967    cmp -s conftest.out conftest.nl || break
4968    # 10000 chars as input seems more than enough
4969    test $lt_ac_count -gt 10 && break
4970    lt_ac_count=`expr $lt_ac_count + 1`
4971    if test $lt_ac_count -gt $lt_ac_max; then
4972      lt_ac_max=$lt_ac_count
4973      lt_cv_path_SED=$lt_ac_sed
4974    fi
4975  done
4976done
4977
4978fi
4979
4980SED=$lt_cv_path_SED
4981echo "$as_me:$LINENO: result: $SED" >&5
4982echo "${ECHO_T}$SED" >&6
4983
4984
4985# Check whether --with-gnu-ld or --without-gnu-ld was given.
4986if test "${with_gnu_ld+set}" = set; then
4987  withval="$with_gnu_ld"
4988  test "$withval" = no || with_gnu_ld=yes
4989else
4990  with_gnu_ld=no
4991fi;
4992ac_prog=ld
4993if test "$GCC" = yes; then
4994  # Check if gcc -print-prog-name=ld gives a path.
4995  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4996echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4997  case $host in
4998  *-*-mingw*)
4999    # gcc leaves a trailing carriage return which upsets mingw
5000    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5001  *)
5002    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5003  esac
5004  case $ac_prog in
5005    # Accept absolute paths.
5006    [\\/]* | ?:[\\/]*)
5007      re_direlt='/[^/][^/]*/\.\./'
5008      # Canonicalize the pathname of ld
5009      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5010      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5011        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5012      done
5013      test -z "$LD" && LD="$ac_prog"
5014      ;;
5015  "")
5016    # If it fails, then pretend we aren't using GCC.
5017    ac_prog=ld
5018    ;;
5019  *)
5020    # If it is relative, then search for the first ld in PATH.
5021    with_gnu_ld=unknown
5022    ;;
5023  esac
5024elif test "$with_gnu_ld" = yes; then
5025  echo "$as_me:$LINENO: checking for GNU ld" >&5
5026echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5027else
5028  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5029echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5030fi
5031if test "${lt_cv_path_LD+set}" = set; then
5032  echo $ECHO_N "(cached) $ECHO_C" >&6
5033else
5034  if test -z "$LD"; then
5035  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5036  for ac_dir in $PATH; do
5037    IFS="$lt_save_ifs"
5038    test -z "$ac_dir" && ac_dir=.
5039    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5040      lt_cv_path_LD="$ac_dir/$ac_prog"
5041      # Check to see if the program is GNU ld.  I'd rather use --version,
5042      # but apparently some variants of GNU ld only accept -v.
5043      # Break only if it was the GNU/non-GNU ld that we prefer.
5044      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5045      *GNU* | *'with BFD'*)
5046        test "$with_gnu_ld" != no && break
5047        ;;
5048      *)
5049        test "$with_gnu_ld" != yes && break
5050        ;;
5051      esac
5052    fi
5053  done
5054  IFS="$lt_save_ifs"
5055else
5056  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5057fi
5058fi
5059
5060LD="$lt_cv_path_LD"
5061if test -n "$LD"; then
5062  echo "$as_me:$LINENO: result: $LD" >&5
5063echo "${ECHO_T}$LD" >&6
5064else
5065  echo "$as_me:$LINENO: result: no" >&5
5066echo "${ECHO_T}no" >&6
5067fi
5068test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5069echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5070   { (exit 1); exit 1; }; }
5071echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5072echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5073if test "${lt_cv_prog_gnu_ld+set}" = set; then
5074  echo $ECHO_N "(cached) $ECHO_C" >&6
5075else
5076  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5077case `$LD -v 2>&1 </dev/null` in
5078*GNU* | *'with BFD'*)
5079  lt_cv_prog_gnu_ld=yes
5080  ;;
5081*)
5082  lt_cv_prog_gnu_ld=no
5083  ;;
5084esac
5085fi
5086echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5087echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5088with_gnu_ld=$lt_cv_prog_gnu_ld
5089
5090
5091echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5092echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5093if test "${lt_cv_ld_reload_flag+set}" = set; then
5094  echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096  lt_cv_ld_reload_flag='-r'
5097fi
5098echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5099echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5100reload_flag=$lt_cv_ld_reload_flag
5101case $reload_flag in
5102"" | " "*) ;;
5103*) reload_flag=" $reload_flag" ;;
5104esac
5105reload_cmds='$LD$reload_flag -o $output$reload_objs'
5106case $host_os in
5107  darwin*)
5108    if test "$GCC" = yes; then
5109      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5110    else
5111      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5112    fi
5113    ;;
5114esac
5115
5116echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5117echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5118if test "${lt_cv_path_NM+set}" = set; then
5119  echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121  if test -n "$NM"; then
5122  # Let the user override the test.
5123  lt_cv_path_NM="$NM"
5124else
5125  lt_nm_to_check="${ac_tool_prefix}nm"
5126  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5127    lt_nm_to_check="$lt_nm_to_check nm"
5128  fi
5129  for lt_tmp_nm in $lt_nm_to_check; do
5130    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5131    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5132      IFS="$lt_save_ifs"
5133      test -z "$ac_dir" && ac_dir=.
5134      tmp_nm="$ac_dir/$lt_tmp_nm"
5135      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5136        # Check to see if the nm accepts a BSD-compat flag.
5137        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5138        #   nm: unknown option "B" ignored
5139        # Tru64's nm complains that /dev/null is an invalid object file
5140        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5141        */dev/null* | *'Invalid file or object type'*)
5142          lt_cv_path_NM="$tmp_nm -B"
5143          break
5144          ;;
5145        *)
5146          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5147          */dev/null*)
5148            lt_cv_path_NM="$tmp_nm -p"
5149            break
5150            ;;
5151          *)
5152            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5153            continue # so that we can try to find one that supports BSD flags
5154            ;;
5155          esac
5156          ;;
5157        esac
5158      fi
5159    done
5160    IFS="$lt_save_ifs"
5161  done
5162  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5163fi
5164fi
5165echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5166echo "${ECHO_T}$lt_cv_path_NM" >&6
5167NM="$lt_cv_path_NM"
5168
5169echo "$as_me:$LINENO: checking whether ln -s works" >&5
5170echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5171LN_S=$as_ln_s
5172if test "$LN_S" = "ln -s"; then
5173  echo "$as_me:$LINENO: result: yes" >&5
5174echo "${ECHO_T}yes" >&6
5175else
5176  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5177echo "${ECHO_T}no, using $LN_S" >&6
5178fi
5179
5180echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5181echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5182if test "${lt_cv_deplibs_check_method+set}" = set; then
5183  echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185  lt_cv_file_magic_cmd='$MAGIC_CMD'
5186lt_cv_file_magic_test_file=
5187lt_cv_deplibs_check_method='unknown'
5188# Need to set the preceding variable on all platforms that support
5189# interlibrary dependencies.
5190# 'none' -- dependencies not supported.
5191# `unknown' -- same as none, but documents that we really don't know.
5192# 'pass_all' -- all dependencies passed with no checks.
5193# 'test_compile' -- check by making test program.
5194# 'file_magic [[regex]]' -- check by looking for files in library path
5195# which responds to the $file_magic_cmd with a given extended regex.
5196# If you have `file' or equivalent on your system and you're not sure
5197# whether `pass_all' will *always* work, you probably want this one.
5198
5199case $host_os in
5200aix4* | aix5*)
5201  lt_cv_deplibs_check_method=pass_all
5202  ;;
5203
5204beos*)
5205  lt_cv_deplibs_check_method=pass_all
5206  ;;
5207
5208bsdi[45]*)
5209  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5210  lt_cv_file_magic_cmd='/usr/bin/file -L'
5211  lt_cv_file_magic_test_file=/shlib/libc.so
5212  ;;
5213
5214cygwin*)
5215  # func_win32_libid is a shell function defined in ltmain.sh
5216  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5217  lt_cv_file_magic_cmd='func_win32_libid'
5218  ;;
5219
5220mingw* | pw32*)
5221  # Base MSYS/MinGW do not provide the 'file' command needed by
5222  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5223  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5224  lt_cv_file_magic_cmd='$OBJDUMP -f'
5225  ;;
5226
5227darwin* | rhapsody*)
5228  lt_cv_deplibs_check_method=pass_all
5229  ;;
5230
5231freebsd* | kfreebsd*-gnu | dragonfly*)
5232  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5233    case $host_cpu in
5234    i*86 )
5235      # Not sure whether the presence of OpenBSD here was a mistake.
5236      # Let's accept both of them until this is cleared up.
5237      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5238      lt_cv_file_magic_cmd=/usr/bin/file
5239      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5240      ;;
5241    esac
5242  else
5243    lt_cv_deplibs_check_method=pass_all
5244  fi
5245  ;;
5246
5247gnu*)
5248  lt_cv_deplibs_check_method=pass_all
5249  ;;
5250
5251hpux10.20* | hpux11*)
5252  lt_cv_file_magic_cmd=/usr/bin/file
5253  case $host_cpu in
5254  ia64*)
5255    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5256    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5257    ;;
5258  hppa*64*)
5259    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]'
5260    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5261    ;;
5262  *)
5263    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5264    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5265    ;;
5266  esac
5267  ;;
5268
5269interix3*)
5270  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5271  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5272  ;;
5273
5274irix5* | irix6* | nonstopux*)
5275  case $LD in
5276  *-32|*"-32 ") libmagic=32-bit;;
5277  *-n32|*"-n32 ") libmagic=N32;;
5278  *-64|*"-64 ") libmagic=64-bit;;
5279  *) libmagic=never-match;;
5280  esac
5281  lt_cv_deplibs_check_method=pass_all
5282  ;;
5283
5284# This must be Linux ELF.
5285linux*)
5286  lt_cv_deplibs_check_method=pass_all
5287  ;;
5288
5289netbsd*)
5290  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5291    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5292  else
5293    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5294  fi
5295  ;;
5296
5297newos6*)
5298  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5299  lt_cv_file_magic_cmd=/usr/bin/file
5300  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5301  ;;
5302
5303nto-qnx*)
5304  lt_cv_deplibs_check_method=unknown
5305  ;;
5306
5307openbsd*)
5308  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5309    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5310  else
5311    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5312  fi
5313  ;;
5314
5315osf3* | osf4* | osf5*)
5316  lt_cv_deplibs_check_method=pass_all
5317  ;;
5318
5319solaris*)
5320  lt_cv_deplibs_check_method=pass_all
5321  ;;
5322
5323sysv4 | sysv4.3*)
5324  case $host_vendor in
5325  motorola)
5326    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]'
5327    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5328    ;;
5329  ncr)
5330    lt_cv_deplibs_check_method=pass_all
5331    ;;
5332  sequent)
5333    lt_cv_file_magic_cmd='/bin/file'
5334    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5335    ;;
5336  sni)
5337    lt_cv_file_magic_cmd='/bin/file'
5338    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5339    lt_cv_file_magic_test_file=/lib/libc.so
5340    ;;
5341  siemens)
5342    lt_cv_deplibs_check_method=pass_all
5343    ;;
5344  pc)
5345    lt_cv_deplibs_check_method=pass_all
5346    ;;
5347  esac
5348  ;;
5349
5350sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5351  lt_cv_deplibs_check_method=pass_all
5352  ;;
5353esac
5354
5355fi
5356echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5357echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5358file_magic_cmd=$lt_cv_file_magic_cmd
5359deplibs_check_method=$lt_cv_deplibs_check_method
5360test -z "$deplibs_check_method" && deplibs_check_method=unknown
5361
5362
5363
5364
5365# If no C compiler was specified, use CC.
5366LTCC=${LTCC-"$CC"}
5367
5368# If no C compiler flags were specified, use CFLAGS.
5369LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5370
5371# Allow CC to be a program name with arguments.
5372compiler=$CC
5373
5374# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5375if test "${enable_libtool_lock+set}" = set; then
5376  enableval="$enable_libtool_lock"
5377
5378fi;
5379test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5380
5381# Some flags need to be propagated to the compiler or linker for good
5382# libtool support.
5383case $host in
5384ia64-*-hpux*)
5385  # Find out which ABI we are using.
5386  echo 'int i;' > conftest.$ac_ext
5387  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5388  (eval $ac_compile) 2>&5
5389  ac_status=$?
5390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391  (exit $ac_status); }; then
5392    case `/usr/bin/file conftest.$ac_objext` in
5393    *ELF-32*)
5394      HPUX_IA64_MODE="32"
5395      ;;
5396    *ELF-64*)
5397      HPUX_IA64_MODE="64"
5398      ;;
5399    esac
5400  fi
5401  rm -rf conftest*
5402  ;;
5403*-*-irix6*)
5404  # Find out which ABI we are using.
5405  echo '#line 5405 "configure"' > conftest.$ac_ext
5406  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5407  (eval $ac_compile) 2>&5
5408  ac_status=$?
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); }; then
5411   if test "$lt_cv_prog_gnu_ld" = yes; then
5412    case `/usr/bin/file conftest.$ac_objext` in
5413    *32-bit*)
5414      LD="${LD-ld} -melf32bsmip"
5415      ;;
5416    *N32*)
5417      LD="${LD-ld} -melf32bmipn32"
5418      ;;
5419    *64-bit*)
5420      LD="${LD-ld} -melf64bmip"
5421      ;;
5422    esac
5423   else
5424    case `/usr/bin/file conftest.$ac_objext` in
5425    *32-bit*)
5426      LD="${LD-ld} -32"
5427      ;;
5428    *N32*)
5429      LD="${LD-ld} -n32"
5430      ;;
5431    *64-bit*)
5432      LD="${LD-ld} -64"
5433      ;;
5434    esac
5435   fi
5436  fi
5437  rm -rf conftest*
5438  ;;
5439
5440x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5441  # Find out which ABI we are using.
5442  echo 'int i;' > conftest.$ac_ext
5443  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5444  (eval $ac_compile) 2>&5
5445  ac_status=$?
5446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447  (exit $ac_status); }; then
5448    case `/usr/bin/file conftest.o` in
5449    *32-bit*)
5450      case $host in
5451        x86_64-*linux*)
5452          LD="${LD-ld} -m elf_i386"
5453          ;;
5454        ppc64-*linux*|powerpc64-*linux*)
5455          LD="${LD-ld} -m elf32ppclinux"
5456          ;;
5457        s390x-*linux*)
5458          LD="${LD-ld} -m elf_s390"
5459          ;;
5460        sparc64-*linux*)
5461          LD="${LD-ld} -m elf32_sparc"
5462          ;;
5463      esac
5464      ;;
5465    *64-bit*)
5466      case $host in
5467        x86_64-*linux*)
5468          LD="${LD-ld} -m elf_x86_64"
5469          ;;
5470        ppc*-*linux*|powerpc*-*linux*)
5471          LD="${LD-ld} -m elf64ppc"
5472          ;;
5473        s390*-*linux*)
5474          LD="${LD-ld} -m elf64_s390"
5475          ;;
5476        sparc*-*linux*)
5477          LD="${LD-ld} -m elf64_sparc"
5478          ;;
5479      esac
5480      ;;
5481    esac
5482  fi
5483  rm -rf conftest*
5484  ;;
5485
5486*-*-sco3.2v5*)
5487  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5488  SAVE_CFLAGS="$CFLAGS"
5489  CFLAGS="$CFLAGS -belf"
5490  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5491echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5492if test "${lt_cv_cc_needs_belf+set}" = set; then
5493  echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
5495  ac_ext=c
5496ac_cpp='$CPP $CPPFLAGS'
5497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499ac_compiler_gnu=$ac_cv_c_compiler_gnu
5500
5501     cat >conftest.$ac_ext <<_ACEOF
5502/* confdefs.h.  */
5503_ACEOF
5504cat confdefs.h >>conftest.$ac_ext
5505cat >>conftest.$ac_ext <<_ACEOF
5506/* end confdefs.h.  */
5507
5508int
5509main ()
5510{
5511
5512  ;
5513  return 0;
5514}
5515_ACEOF
5516rm -f conftest.$ac_objext conftest$ac_exeext
5517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5518  (eval $ac_link) 2>conftest.er1
5519  ac_status=$?
5520  grep -v '^ *+' conftest.er1 >conftest.err
5521  rm -f conftest.er1
5522  cat conftest.err >&5
5523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524  (exit $ac_status); } &&
5525         { ac_try='test -z "$ac_c_werror_flag"
5526                         || test ! -s conftest.err'
5527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528  (eval $ac_try) 2>&5
5529  ac_status=$?
5530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531  (exit $ac_status); }; } &&
5532         { ac_try='test -s conftest$ac_exeext'
5533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534  (eval $ac_try) 2>&5
5535  ac_status=$?
5536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537  (exit $ac_status); }; }; then
5538  lt_cv_cc_needs_belf=yes
5539else
5540  echo "$as_me: failed program was:" >&5
5541sed 's/^/| /' conftest.$ac_ext >&5
5542
5543lt_cv_cc_needs_belf=no
5544fi
5545rm -f conftest.err conftest.$ac_objext \
5546      conftest$ac_exeext conftest.$ac_ext
5547     ac_ext=c
5548ac_cpp='$CPP $CPPFLAGS'
5549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552
5553fi
5554echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5555echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5556  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5557    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5558    CFLAGS="$SAVE_CFLAGS"
5559  fi
5560  ;;
5561sparc*-*solaris*)
5562  # Find out which ABI we are using.
5563  echo 'int i;' > conftest.$ac_ext
5564  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565  (eval $ac_compile) 2>&5
5566  ac_status=$?
5567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568  (exit $ac_status); }; then
5569    case `/usr/bin/file conftest.o` in
5570    *64-bit*)
5571      case $lt_cv_prog_gnu_ld in
5572      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5573      *)    LD="${LD-ld} -64" ;;
5574      esac
5575      ;;
5576    esac
5577  fi
5578  rm -rf conftest*
5579  ;;
5580
5581
5582esac
5583
5584need_locks="$enable_libtool_lock"
5585
5586
5587ac_ext=c
5588ac_cpp='$CPP $CPPFLAGS'
5589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591ac_compiler_gnu=$ac_cv_c_compiler_gnu
5592echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5593echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5594# On Suns, sometimes $CPP names a directory.
5595if test -n "$CPP" && test -d "$CPP"; then
5596  CPP=
5597fi
5598if test -z "$CPP"; then
5599  if test "${ac_cv_prog_CPP+set}" = set; then
5600  echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602      # Double quotes because CPP needs to be expanded
5603    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5604    do
5605      ac_preproc_ok=false
5606for ac_c_preproc_warn_flag in '' yes
5607do
5608  # Use a header file that comes with gcc, so configuring glibc
5609  # with a fresh cross-compiler works.
5610  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611  # <limits.h> exists even on freestanding compilers.
5612  # On the NeXT, cc -E runs the code through the compiler's parser,
5613  # not just through cpp. "Syntax error" is here to catch this case.
5614  cat >conftest.$ac_ext <<_ACEOF
5615/* confdefs.h.  */
5616_ACEOF
5617cat confdefs.h >>conftest.$ac_ext
5618cat >>conftest.$ac_ext <<_ACEOF
5619/* end confdefs.h.  */
5620#ifdef __STDC__
5621# include <limits.h>
5622#else
5623# include <assert.h>
5624#endif
5625                     Syntax error
5626_ACEOF
5627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5628  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5629  ac_status=$?
5630  grep -v '^ *+' conftest.er1 >conftest.err
5631  rm -f conftest.er1
5632  cat conftest.err >&5
5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); } >/dev/null; then
5635  if test -s conftest.err; then
5636    ac_cpp_err=$ac_c_preproc_warn_flag
5637    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5638  else
5639    ac_cpp_err=
5640  fi
5641else
5642  ac_cpp_err=yes
5643fi
5644if test -z "$ac_cpp_err"; then
5645  :
5646else
5647  echo "$as_me: failed program was:" >&5
5648sed 's/^/| /' conftest.$ac_ext >&5
5649
5650  # Broken: fails on valid input.
5651continue
5652fi
5653rm -f conftest.err conftest.$ac_ext
5654
5655  # OK, works on sane cases.  Now check whether non-existent headers
5656  # can be detected and how.
5657  cat >conftest.$ac_ext <<_ACEOF
5658/* confdefs.h.  */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h.  */
5663#include <ac_nonexistent.h>
5664_ACEOF
5665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5666  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5667  ac_status=$?
5668  grep -v '^ *+' conftest.er1 >conftest.err
5669  rm -f conftest.er1
5670  cat conftest.err >&5
5671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672  (exit $ac_status); } >/dev/null; then
5673  if test -s conftest.err; then
5674    ac_cpp_err=$ac_c_preproc_warn_flag
5675    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5676  else
5677    ac_cpp_err=
5678  fi
5679else
5680  ac_cpp_err=yes
5681fi
5682if test -z "$ac_cpp_err"; then
5683  # Broken: success on invalid input.
5684continue
5685else
5686  echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689  # Passes both tests.
5690ac_preproc_ok=:
5691break
5692fi
5693rm -f conftest.err conftest.$ac_ext
5694
5695done
5696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5697rm -f conftest.err conftest.$ac_ext
5698if $ac_preproc_ok; then
5699  break
5700fi
5701
5702    done
5703    ac_cv_prog_CPP=$CPP
5704
5705fi
5706  CPP=$ac_cv_prog_CPP
5707else
5708  ac_cv_prog_CPP=$CPP
5709fi
5710echo "$as_me:$LINENO: result: $CPP" >&5
5711echo "${ECHO_T}$CPP" >&6
5712ac_preproc_ok=false
5713for ac_c_preproc_warn_flag in '' yes
5714do
5715  # Use a header file that comes with gcc, so configuring glibc
5716  # with a fresh cross-compiler works.
5717  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5718  # <limits.h> exists even on freestanding compilers.
5719  # On the NeXT, cc -E runs the code through the compiler's parser,
5720  # not just through cpp. "Syntax error" is here to catch this case.
5721  cat >conftest.$ac_ext <<_ACEOF
5722/* confdefs.h.  */
5723_ACEOF
5724cat confdefs.h >>conftest.$ac_ext
5725cat >>conftest.$ac_ext <<_ACEOF
5726/* end confdefs.h.  */
5727#ifdef __STDC__
5728# include <limits.h>
5729#else
5730# include <assert.h>
5731#endif
5732                     Syntax error
5733_ACEOF
5734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5735  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5736  ac_status=$?
5737  grep -v '^ *+' conftest.er1 >conftest.err
5738  rm -f conftest.er1
5739  cat conftest.err >&5
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); } >/dev/null; then
5742  if test -s conftest.err; then
5743    ac_cpp_err=$ac_c_preproc_warn_flag
5744    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5745  else
5746    ac_cpp_err=
5747  fi
5748else
5749  ac_cpp_err=yes
5750fi
5751if test -z "$ac_cpp_err"; then
5752  :
5753else
5754  echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
5757  # Broken: fails on valid input.
5758continue
5759fi
5760rm -f conftest.err conftest.$ac_ext
5761
5762  # OK, works on sane cases.  Now check whether non-existent headers
5763  # can be detected and how.
5764  cat >conftest.$ac_ext <<_ACEOF
5765/* confdefs.h.  */
5766_ACEOF
5767cat confdefs.h >>conftest.$ac_ext
5768cat >>conftest.$ac_ext <<_ACEOF
5769/* end confdefs.h.  */
5770#include <ac_nonexistent.h>
5771_ACEOF
5772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5773  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5774  ac_status=$?
5775  grep -v '^ *+' conftest.er1 >conftest.err
5776  rm -f conftest.er1
5777  cat conftest.err >&5
5778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779  (exit $ac_status); } >/dev/null; then
5780  if test -s conftest.err; then
5781    ac_cpp_err=$ac_c_preproc_warn_flag
5782    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5783  else
5784    ac_cpp_err=
5785  fi
5786else
5787  ac_cpp_err=yes
5788fi
5789if test -z "$ac_cpp_err"; then
5790  # Broken: success on invalid input.
5791continue
5792else
5793  echo "$as_me: failed program was:" >&5
5794sed 's/^/| /' conftest.$ac_ext >&5
5795
5796  # Passes both tests.
5797ac_preproc_ok=:
5798break
5799fi
5800rm -f conftest.err conftest.$ac_ext
5801
5802done
5803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5804rm -f conftest.err conftest.$ac_ext
5805if $ac_preproc_ok; then
5806  :
5807else
5808  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5809See \`config.log' for more details." >&5
5810echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5811See \`config.log' for more details." >&2;}
5812   { (exit 1); exit 1; }; }
5813fi
5814
5815ac_ext=c
5816ac_cpp='$CPP $CPPFLAGS'
5817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820
5821
5822echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5823echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5824if test "${ac_cv_header_stdc+set}" = set; then
5825  echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827  cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h.  */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h.  */
5833#include <stdlib.h>
5834#include <stdarg.h>
5835#include <string.h>
5836#include <float.h>
5837
5838int
5839main ()
5840{
5841
5842  ;
5843  return 0;
5844}
5845_ACEOF
5846rm -f conftest.$ac_objext
5847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5848  (eval $ac_compile) 2>conftest.er1
5849  ac_status=$?
5850  grep -v '^ *+' conftest.er1 >conftest.err
5851  rm -f conftest.er1
5852  cat conftest.err >&5
5853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854  (exit $ac_status); } &&
5855         { ac_try='test -z "$ac_c_werror_flag"
5856                         || test ! -s conftest.err'
5857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858  (eval $ac_try) 2>&5
5859  ac_status=$?
5860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861  (exit $ac_status); }; } &&
5862         { ac_try='test -s conftest.$ac_objext'
5863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864  (eval $ac_try) 2>&5
5865  ac_status=$?
5866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867  (exit $ac_status); }; }; then
5868  ac_cv_header_stdc=yes
5869else
5870  echo "$as_me: failed program was:" >&5
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
5873ac_cv_header_stdc=no
5874fi
5875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5876
5877if test $ac_cv_header_stdc = yes; then
5878  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5879  cat >conftest.$ac_ext <<_ACEOF
5880/* confdefs.h.  */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
5884/* end confdefs.h.  */
5885#include <string.h>
5886
5887_ACEOF
5888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5889  $EGREP "memchr" >/dev/null 2>&1; then
5890  :
5891else
5892  ac_cv_header_stdc=no
5893fi
5894rm -f conftest*
5895
5896fi
5897
5898if test $ac_cv_header_stdc = yes; then
5899  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5900  cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h.  */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h.  */
5906#include <stdlib.h>
5907
5908_ACEOF
5909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5910  $EGREP "free" >/dev/null 2>&1; then
5911  :
5912else
5913  ac_cv_header_stdc=no
5914fi
5915rm -f conftest*
5916
5917fi
5918
5919if test $ac_cv_header_stdc = yes; then
5920  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5921  if test "$cross_compiling" = yes; then
5922  :
5923else
5924  cat >conftest.$ac_ext <<_ACEOF
5925/* confdefs.h.  */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h.  */
5930#include <ctype.h>
5931#if ((' ' & 0x0FF) == 0x020)
5932# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5933# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5934#else
5935# define ISLOWER(c) \
5936                   (('a' <= (c) && (c) <= 'i') \
5937                     || ('j' <= (c) && (c) <= 'r') \
5938                     || ('s' <= (c) && (c) <= 'z'))
5939# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5940#endif
5941
5942#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5943int
5944main ()
5945{
5946  int i;
5947  for (i = 0; i < 256; i++)
5948    if (XOR (islower (i), ISLOWER (i))
5949        || toupper (i) != TOUPPER (i))
5950      exit(2);
5951  exit (0);
5952}
5953_ACEOF
5954rm -f conftest$ac_exeext
5955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5956  (eval $ac_link) 2>&5
5957  ac_status=$?
5958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961  (eval $ac_try) 2>&5
5962  ac_status=$?
5963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964  (exit $ac_status); }; }; then
5965  :
5966else
5967  echo "$as_me: program exited with status $ac_status" >&5
5968echo "$as_me: failed program was:" >&5
5969sed 's/^/| /' conftest.$ac_ext >&5
5970
5971( exit $ac_status )
5972ac_cv_header_stdc=no
5973fi
5974rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5975fi
5976fi
5977fi
5978echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5979echo "${ECHO_T}$ac_cv_header_stdc" >&6
5980if test $ac_cv_header_stdc = yes; then
5981
5982cat >>confdefs.h <<\_ACEOF
5983#define STDC_HEADERS 1
5984_ACEOF
5985
5986fi
5987
5988# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5999                  inttypes.h stdint.h unistd.h
6000do
6001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6002echo "$as_me:$LINENO: checking for $ac_header" >&5
6003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6004if eval "test \"\${$as_ac_Header+set}\" = set"; then
6005  echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007  cat >conftest.$ac_ext <<_ACEOF
6008/* confdefs.h.  */
6009_ACEOF
6010cat confdefs.h >>conftest.$ac_ext
6011cat >>conftest.$ac_ext <<_ACEOF
6012/* end confdefs.h.  */
6013$ac_includes_default
6014
6015#include <$ac_header>
6016_ACEOF
6017rm -f conftest.$ac_objext
6018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019  (eval $ac_compile) 2>conftest.er1
6020  ac_status=$?
6021  grep -v '^ *+' conftest.er1 >conftest.err
6022  rm -f conftest.er1
6023  cat conftest.err >&5
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); } &&
6026         { ac_try='test -z "$ac_c_werror_flag"
6027                         || test ! -s conftest.err'
6028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029  (eval $ac_try) 2>&5
6030  ac_status=$?
6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); }; } &&
6033         { ac_try='test -s conftest.$ac_objext'
6034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035  (eval $ac_try) 2>&5
6036  ac_status=$?
6037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038  (exit $ac_status); }; }; then
6039  eval "$as_ac_Header=yes"
6040else
6041  echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
6044eval "$as_ac_Header=no"
6045fi
6046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6047fi
6048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050if test `eval echo '${'$as_ac_Header'}'` = yes; then
6051  cat >>confdefs.h <<_ACEOF
6052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6053_ACEOF
6054
6055fi
6056
6057done
6058
6059
6060
6061for ac_header in dlfcn.h
6062do
6063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6064if eval "test \"\${$as_ac_Header+set}\" = set"; then
6065  echo "$as_me:$LINENO: checking for $ac_header" >&5
6066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6067if eval "test \"\${$as_ac_Header+set}\" = set"; then
6068  echo $ECHO_N "(cached) $ECHO_C" >&6
6069fi
6070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6072else
6073  # Is the header compilable?
6074echo "$as_me:$LINENO: checking $ac_header usability" >&5
6075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6076cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h.  */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h.  */
6082$ac_includes_default
6083#include <$ac_header>
6084_ACEOF
6085rm -f conftest.$ac_objext
6086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6087  (eval $ac_compile) 2>conftest.er1
6088  ac_status=$?
6089  grep -v '^ *+' conftest.er1 >conftest.err
6090  rm -f conftest.er1
6091  cat conftest.err >&5
6092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093  (exit $ac_status); } &&
6094         { ac_try='test -z "$ac_c_werror_flag"
6095                         || test ! -s conftest.err'
6096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097  (eval $ac_try) 2>&5
6098  ac_status=$?
6099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100  (exit $ac_status); }; } &&
6101         { ac_try='test -s conftest.$ac_objext'
6102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103  (eval $ac_try) 2>&5
6104  ac_status=$?
6105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106  (exit $ac_status); }; }; then
6107  ac_header_compiler=yes
6108else
6109  echo "$as_me: failed program was:" >&5
6110sed 's/^/| /' conftest.$ac_ext >&5
6111
6112ac_header_compiler=no
6113fi
6114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6116echo "${ECHO_T}$ac_header_compiler" >&6
6117
6118# Is the header present?
6119echo "$as_me:$LINENO: checking $ac_header presence" >&5
6120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6121cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h.  */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h.  */
6127#include <$ac_header>
6128_ACEOF
6129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6130  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6131  ac_status=$?
6132  grep -v '^ *+' conftest.er1 >conftest.err
6133  rm -f conftest.er1
6134  cat conftest.err >&5
6135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136  (exit $ac_status); } >/dev/null; then
6137  if test -s conftest.err; then
6138    ac_cpp_err=$ac_c_preproc_warn_flag
6139    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6140  else
6141    ac_cpp_err=
6142  fi
6143else
6144  ac_cpp_err=yes
6145fi
6146if test -z "$ac_cpp_err"; then
6147  ac_header_preproc=yes
6148else
6149  echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152  ac_header_preproc=no
6153fi
6154rm -f conftest.err conftest.$ac_ext
6155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6156echo "${ECHO_T}$ac_header_preproc" >&6
6157
6158# So?  What about this header?
6159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6160  yes:no: )
6161    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6163    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6165    ac_header_preproc=yes
6166    ;;
6167  no:yes:* )
6168    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6170    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6171echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6172    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6174    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6175echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6176    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6178    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6180    (
6181      cat <<\_ASBOX
6182## --------------------------------------------------------------- ##
6183## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6184## --------------------------------------------------------------- ##
6185_ASBOX
6186    ) |
6187      sed "s/^/$as_me: WARNING:     /" >&2
6188    ;;
6189esac
6190echo "$as_me:$LINENO: checking for $ac_header" >&5
6191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6192if eval "test \"\${$as_ac_Header+set}\" = set"; then
6193  echo $ECHO_N "(cached) $ECHO_C" >&6
6194else
6195  eval "$as_ac_Header=\$ac_header_preproc"
6196fi
6197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6199
6200fi
6201if test `eval echo '${'$as_ac_Header'}'` = yes; then
6202  cat >>confdefs.h <<_ACEOF
6203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6204_ACEOF
6205
6206fi
6207
6208done
6209
6210ac_ext=cc
6211ac_cpp='$CXXCPP $CPPFLAGS'
6212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6215if test -n "$ac_tool_prefix"; then
6216  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6217  do
6218    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6219set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6220echo "$as_me:$LINENO: checking for $ac_word" >&5
6221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6222if test "${ac_cv_prog_CXX+set}" = set; then
6223  echo $ECHO_N "(cached) $ECHO_C" >&6
6224else
6225  if test -n "$CXX"; then
6226  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231  IFS=$as_save_IFS
6232  test -z "$as_dir" && as_dir=.
6233  for ac_exec_ext in '' $ac_executable_extensions; do
6234  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6235    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6236    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6237    break 2
6238  fi
6239done
6240done
6241
6242fi
6243fi
6244CXX=$ac_cv_prog_CXX
6245if test -n "$CXX"; then
6246  echo "$as_me:$LINENO: result: $CXX" >&5
6247echo "${ECHO_T}$CXX" >&6
6248else
6249  echo "$as_me:$LINENO: result: no" >&5
6250echo "${ECHO_T}no" >&6
6251fi
6252
6253    test -n "$CXX" && break
6254  done
6255fi
6256if test -z "$CXX"; then
6257  ac_ct_CXX=$CXX
6258  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6259do
6260  # Extract the first word of "$ac_prog", so it can be a program name with args.
6261set dummy $ac_prog; ac_word=$2
6262echo "$as_me:$LINENO: checking for $ac_word" >&5
6263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6264if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6265  echo $ECHO_N "(cached) $ECHO_C" >&6
6266else
6267  if test -n "$ac_ct_CXX"; then
6268  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6269else
6270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271for as_dir in $PATH
6272do
6273  IFS=$as_save_IFS
6274  test -z "$as_dir" && as_dir=.
6275  for ac_exec_ext in '' $ac_executable_extensions; do
6276  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277    ac_cv_prog_ac_ct_CXX="$ac_prog"
6278    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279    break 2
6280  fi
6281done
6282done
6283
6284fi
6285fi
6286ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6287if test -n "$ac_ct_CXX"; then
6288  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6289echo "${ECHO_T}$ac_ct_CXX" >&6
6290else
6291  echo "$as_me:$LINENO: result: no" >&5
6292echo "${ECHO_T}no" >&6
6293fi
6294
6295  test -n "$ac_ct_CXX" && break
6296done
6297test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6298
6299  CXX=$ac_ct_CXX
6300fi
6301
6302
6303# Provide some information about the compiler.
6304echo "$as_me:$LINENO:" \
6305     "checking for C++ compiler version" >&5
6306ac_compiler=`set X $ac_compile; echo $2`
6307{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6308  (eval $ac_compiler --version </dev/null >&5) 2>&5
6309  ac_status=$?
6310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311  (exit $ac_status); }
6312{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6313  (eval $ac_compiler -v </dev/null >&5) 2>&5
6314  ac_status=$?
6315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); }
6317{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6318  (eval $ac_compiler -V </dev/null >&5) 2>&5
6319  ac_status=$?
6320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321  (exit $ac_status); }
6322
6323echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6324echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6325if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6326  echo $ECHO_N "(cached) $ECHO_C" >&6
6327else
6328  cat >conftest.$ac_ext <<_ACEOF
6329/* confdefs.h.  */
6330_ACEOF
6331cat confdefs.h >>conftest.$ac_ext
6332cat >>conftest.$ac_ext <<_ACEOF
6333/* end confdefs.h.  */
6334
6335int
6336main ()
6337{
6338#ifndef __GNUC__
6339       choke me
6340#endif
6341
6342  ;
6343  return 0;
6344}
6345_ACEOF
6346rm -f conftest.$ac_objext
6347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348  (eval $ac_compile) 2>conftest.er1
6349  ac_status=$?
6350  grep -v '^ *+' conftest.er1 >conftest.err
6351  rm -f conftest.er1
6352  cat conftest.err >&5
6353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354  (exit $ac_status); } &&
6355         { ac_try='test -z "$ac_cxx_werror_flag"
6356                         || test ! -s conftest.err'
6357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358  (eval $ac_try) 2>&5
6359  ac_status=$?
6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361  (exit $ac_status); }; } &&
6362         { ac_try='test -s conftest.$ac_objext'
6363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364  (eval $ac_try) 2>&5
6365  ac_status=$?
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); }; }; then
6368  ac_compiler_gnu=yes
6369else
6370  echo "$as_me: failed program was:" >&5
6371sed 's/^/| /' conftest.$ac_ext >&5
6372
6373ac_compiler_gnu=no
6374fi
6375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6376ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6377
6378fi
6379echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6380echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6381GXX=`test $ac_compiler_gnu = yes && echo yes`
6382ac_test_CXXFLAGS=${CXXFLAGS+set}
6383ac_save_CXXFLAGS=$CXXFLAGS
6384CXXFLAGS="-g"
6385echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6386echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6387if test "${ac_cv_prog_cxx_g+set}" = set; then
6388  echo $ECHO_N "(cached) $ECHO_C" >&6
6389else
6390  cat >conftest.$ac_ext <<_ACEOF
6391/* confdefs.h.  */
6392_ACEOF
6393cat confdefs.h >>conftest.$ac_ext
6394cat >>conftest.$ac_ext <<_ACEOF
6395/* end confdefs.h.  */
6396
6397int
6398main ()
6399{
6400
6401  ;
6402  return 0;
6403}
6404_ACEOF
6405rm -f conftest.$ac_objext
6406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407  (eval $ac_compile) 2>conftest.er1
6408  ac_status=$?
6409  grep -v '^ *+' conftest.er1 >conftest.err
6410  rm -f conftest.er1
6411  cat conftest.err >&5
6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); } &&
6414         { ac_try='test -z "$ac_cxx_werror_flag"
6415                         || test ! -s conftest.err'
6416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417  (eval $ac_try) 2>&5
6418  ac_status=$?
6419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420  (exit $ac_status); }; } &&
6421         { ac_try='test -s conftest.$ac_objext'
6422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423  (eval $ac_try) 2>&5
6424  ac_status=$?
6425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426  (exit $ac_status); }; }; then
6427  ac_cv_prog_cxx_g=yes
6428else
6429  echo "$as_me: failed program was:" >&5
6430sed 's/^/| /' conftest.$ac_ext >&5
6431
6432ac_cv_prog_cxx_g=no
6433fi
6434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435fi
6436echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6437echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6438if test "$ac_test_CXXFLAGS" = set; then
6439  CXXFLAGS=$ac_save_CXXFLAGS
6440elif test $ac_cv_prog_cxx_g = yes; then
6441  if test "$GXX" = yes; then
6442    CXXFLAGS="-g -O2"
6443  else
6444    CXXFLAGS="-g"
6445  fi
6446else
6447  if test "$GXX" = yes; then
6448    CXXFLAGS="-O2"
6449  else
6450    CXXFLAGS=
6451  fi
6452fi
6453for ac_declaration in \
6454   '' \
6455   'extern "C" void std::exit (int) throw (); using std::exit;' \
6456   'extern "C" void std::exit (int); using std::exit;' \
6457   'extern "C" void exit (int) throw ();' \
6458   'extern "C" void exit (int);' \
6459   'void exit (int);'
6460do
6461  cat >conftest.$ac_ext <<_ACEOF
6462/* confdefs.h.  */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h.  */
6467$ac_declaration
6468#include <stdlib.h>
6469int
6470main ()
6471{
6472exit (42);
6473  ;
6474  return 0;
6475}
6476_ACEOF
6477rm -f conftest.$ac_objext
6478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479  (eval $ac_compile) 2>conftest.er1
6480  ac_status=$?
6481  grep -v '^ *+' conftest.er1 >conftest.err
6482  rm -f conftest.er1
6483  cat conftest.err >&5
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); } &&
6486         { ac_try='test -z "$ac_cxx_werror_flag"
6487                         || test ! -s conftest.err'
6488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489  (eval $ac_try) 2>&5
6490  ac_status=$?
6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492  (exit $ac_status); }; } &&
6493         { ac_try='test -s conftest.$ac_objext'
6494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495  (eval $ac_try) 2>&5
6496  ac_status=$?
6497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); }; }; then
6499  :
6500else
6501  echo "$as_me: failed program was:" >&5
6502sed 's/^/| /' conftest.$ac_ext >&5
6503
6504continue
6505fi
6506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6507  cat >conftest.$ac_ext <<_ACEOF
6508/* confdefs.h.  */
6509_ACEOF
6510cat confdefs.h >>conftest.$ac_ext
6511cat >>conftest.$ac_ext <<_ACEOF
6512/* end confdefs.h.  */
6513$ac_declaration
6514int
6515main ()
6516{
6517exit (42);
6518  ;
6519  return 0;
6520}
6521_ACEOF
6522rm -f conftest.$ac_objext
6523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524  (eval $ac_compile) 2>conftest.er1
6525  ac_status=$?
6526  grep -v '^ *+' conftest.er1 >conftest.err
6527  rm -f conftest.er1
6528  cat conftest.err >&5
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); } &&
6531         { ac_try='test -z "$ac_cxx_werror_flag"
6532                         || test ! -s conftest.err'
6533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534  (eval $ac_try) 2>&5
6535  ac_status=$?
6536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537  (exit $ac_status); }; } &&
6538         { ac_try='test -s conftest.$ac_objext'
6539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540  (eval $ac_try) 2>&5
6541  ac_status=$?
6542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); }; }; then
6544  break
6545else
6546  echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549fi
6550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6551done
6552rm -f conftest*
6553if test -n "$ac_declaration"; then
6554  echo '#ifdef __cplusplus' >>confdefs.h
6555  echo $ac_declaration      >>confdefs.h
6556  echo '#endif'             >>confdefs.h
6557fi
6558
6559ac_ext=cc
6560ac_cpp='$CXXCPP $CPPFLAGS'
6561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6564
6565depcc="$CXX"  am_compiler_list=
6566
6567echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6568echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6569if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6570  echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6573  # We make a subdir and do the tests there.  Otherwise we can end up
6574  # making bogus files that we don't know about and never remove.  For
6575  # instance it was reported that on HP-UX the gcc test will end up
6576  # making a dummy file named `D' -- because `-MD' means `put the output
6577  # in D'.
6578  mkdir conftest.dir
6579  # Copy depcomp to subdir because otherwise we won't find it if we're
6580  # using a relative directory.
6581  cp "$am_depcomp" conftest.dir
6582  cd conftest.dir
6583  # We will build objects and dependencies in a subdirectory because
6584  # it helps to detect inapplicable dependency modes.  For instance
6585  # both Tru64's cc and ICC support -MD to output dependencies as a
6586  # side effect of compilation, but ICC will put the dependencies in
6587  # the current directory while Tru64 will put them in the object
6588  # directory.
6589  mkdir sub
6590
6591  am_cv_CXX_dependencies_compiler_type=none
6592  if test "$am_compiler_list" = ""; then
6593     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6594  fi
6595  for depmode in $am_compiler_list; do
6596    # Setup a source with many dependencies, because some compilers
6597    # like to wrap large dependency lists on column 80 (with \), and
6598    # we should not choose a depcomp mode which is confused by this.
6599    #
6600    # We need to recreate these files for each test, as the compiler may
6601    # overwrite some of them when testing with obscure command lines.
6602    # This happens at least with the AIX C compiler.
6603    : > sub/conftest.c
6604    for i in 1 2 3 4 5 6; do
6605      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6606      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6607      # Solaris 8's {/usr,}/bin/sh.
6608      touch sub/conftst$i.h
6609    done
6610    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6611
6612    case $depmode in
6613    nosideeffect)
6614      # after this tag, mechanisms are not by side-effect, so they'll
6615      # only be used when explicitly requested
6616      if test "x$enable_dependency_tracking" = xyes; then
6617        continue
6618      else
6619        break
6620      fi
6621      ;;
6622    none) break ;;
6623    esac
6624    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6625    # mode.  It turns out that the SunPro C++ compiler does not properly
6626    # handle `-M -o', and we need to detect this.
6627    if depmode=$depmode \
6628       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6629       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6630       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6631         >/dev/null 2>conftest.err &&
6632       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6633       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6634       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6635      # icc doesn't choke on unknown options, it will just issue warnings
6636      # or remarks (even with -Werror).  So we grep stderr for any message
6637      # that says an option was ignored or not supported.
6638      # When given -MP, icc 7.0 and 7.1 complain thusly:
6639      #   icc: Command line warning: ignoring option '-M'; no argument required
6640      # The diagnosis changed in icc 8.0:
6641      #   icc: Command line remark: option '-MP' not supported
6642      if (grep 'ignoring option' conftest.err ||
6643          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6644        am_cv_CXX_dependencies_compiler_type=$depmode
6645        break
6646      fi
6647    fi
6648  done
6649
6650  cd ..
6651  rm -rf conftest.dir
6652else
6653  am_cv_CXX_dependencies_compiler_type=none
6654fi
6655
6656fi
6657echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6658echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6659CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6660
6661
6662
6663if
6664  test "x$enable_dependency_tracking" != xno \
6665  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6666  am__fastdepCXX_TRUE=
6667  am__fastdepCXX_FALSE='#'
6668else
6669  am__fastdepCXX_TRUE='#'
6670  am__fastdepCXX_FALSE=
6671fi
6672
6673
6674
6675
6676if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6677    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6678    (test "X$CXX" != "Xg++"))) ; then
6679  ac_ext=cc
6680ac_cpp='$CXXCPP $CPPFLAGS'
6681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6684echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6685echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6686if test -z "$CXXCPP"; then
6687  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6688  echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690      # Double quotes because CXXCPP needs to be expanded
6691    for CXXCPP in "$CXX -E" "/lib/cpp"
6692    do
6693      ac_preproc_ok=false
6694for ac_cxx_preproc_warn_flag in '' yes
6695do
6696  # Use a header file that comes with gcc, so configuring glibc
6697  # with a fresh cross-compiler works.
6698  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6699  # <limits.h> exists even on freestanding compilers.
6700  # On the NeXT, cc -E runs the code through the compiler's parser,
6701  # not just through cpp. "Syntax error" is here to catch this case.
6702  cat >conftest.$ac_ext <<_ACEOF
6703/* confdefs.h.  */
6704_ACEOF
6705cat confdefs.h >>conftest.$ac_ext
6706cat >>conftest.$ac_ext <<_ACEOF
6707/* end confdefs.h.  */
6708#ifdef __STDC__
6709# include <limits.h>
6710#else
6711# include <assert.h>
6712#endif
6713                     Syntax error
6714_ACEOF
6715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6716  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6717  ac_status=$?
6718  grep -v '^ *+' conftest.er1 >conftest.err
6719  rm -f conftest.er1
6720  cat conftest.err >&5
6721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722  (exit $ac_status); } >/dev/null; then
6723  if test -s conftest.err; then
6724    ac_cpp_err=$ac_cxx_preproc_warn_flag
6725    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6726  else
6727    ac_cpp_err=
6728  fi
6729else
6730  ac_cpp_err=yes
6731fi
6732if test -z "$ac_cpp_err"; then
6733  :
6734else
6735  echo "$as_me: failed program was:" >&5
6736sed 's/^/| /' conftest.$ac_ext >&5
6737
6738  # Broken: fails on valid input.
6739continue
6740fi
6741rm -f conftest.err conftest.$ac_ext
6742
6743  # OK, works on sane cases.  Now check whether non-existent headers
6744  # can be detected and how.
6745  cat >conftest.$ac_ext <<_ACEOF
6746/* confdefs.h.  */
6747_ACEOF
6748cat confdefs.h >>conftest.$ac_ext
6749cat >>conftest.$ac_ext <<_ACEOF
6750/* end confdefs.h.  */
6751#include <ac_nonexistent.h>
6752_ACEOF
6753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6754  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6755  ac_status=$?
6756  grep -v '^ *+' conftest.er1 >conftest.err
6757  rm -f conftest.er1
6758  cat conftest.err >&5
6759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760  (exit $ac_status); } >/dev/null; then
6761  if test -s conftest.err; then
6762    ac_cpp_err=$ac_cxx_preproc_warn_flag
6763    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6764  else
6765    ac_cpp_err=
6766  fi
6767else
6768  ac_cpp_err=yes
6769fi
6770if test -z "$ac_cpp_err"; then
6771  # Broken: success on invalid input.
6772continue
6773else
6774  echo "$as_me: failed program was:" >&5
6775sed 's/^/| /' conftest.$ac_ext >&5
6776
6777  # Passes both tests.
6778ac_preproc_ok=:
6779break
6780fi
6781rm -f conftest.err conftest.$ac_ext
6782
6783done
6784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6785rm -f conftest.err conftest.$ac_ext
6786if $ac_preproc_ok; then
6787  break
6788fi
6789
6790    done
6791    ac_cv_prog_CXXCPP=$CXXCPP
6792
6793fi
6794  CXXCPP=$ac_cv_prog_CXXCPP
6795else
6796  ac_cv_prog_CXXCPP=$CXXCPP
6797fi
6798echo "$as_me:$LINENO: result: $CXXCPP" >&5
6799echo "${ECHO_T}$CXXCPP" >&6
6800ac_preproc_ok=false
6801for ac_cxx_preproc_warn_flag in '' yes
6802do
6803  # Use a header file that comes with gcc, so configuring glibc
6804  # with a fresh cross-compiler works.
6805  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6806  # <limits.h> exists even on freestanding compilers.
6807  # On the NeXT, cc -E runs the code through the compiler's parser,
6808  # not just through cpp. "Syntax error" is here to catch this case.
6809  cat >conftest.$ac_ext <<_ACEOF
6810/* confdefs.h.  */
6811_ACEOF
6812cat confdefs.h >>conftest.$ac_ext
6813cat >>conftest.$ac_ext <<_ACEOF
6814/* end confdefs.h.  */
6815#ifdef __STDC__
6816# include <limits.h>
6817#else
6818# include <assert.h>
6819#endif
6820                     Syntax error
6821_ACEOF
6822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6823  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6824  ac_status=$?
6825  grep -v '^ *+' conftest.er1 >conftest.err
6826  rm -f conftest.er1
6827  cat conftest.err >&5
6828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829  (exit $ac_status); } >/dev/null; then
6830  if test -s conftest.err; then
6831    ac_cpp_err=$ac_cxx_preproc_warn_flag
6832    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6833  else
6834    ac_cpp_err=
6835  fi
6836else
6837  ac_cpp_err=yes
6838fi
6839if test -z "$ac_cpp_err"; then
6840  :
6841else
6842  echo "$as_me: failed program was:" >&5
6843sed 's/^/| /' conftest.$ac_ext >&5
6844
6845  # Broken: fails on valid input.
6846continue
6847fi
6848rm -f conftest.err conftest.$ac_ext
6849
6850  # OK, works on sane cases.  Now check whether non-existent headers
6851  # can be detected and how.
6852  cat >conftest.$ac_ext <<_ACEOF
6853/* confdefs.h.  */
6854_ACEOF
6855cat confdefs.h >>conftest.$ac_ext
6856cat >>conftest.$ac_ext <<_ACEOF
6857/* end confdefs.h.  */
6858#include <ac_nonexistent.h>
6859_ACEOF
6860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6861  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6862  ac_status=$?
6863  grep -v '^ *+' conftest.er1 >conftest.err
6864  rm -f conftest.er1
6865  cat conftest.err >&5
6866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867  (exit $ac_status); } >/dev/null; then
6868  if test -s conftest.err; then
6869    ac_cpp_err=$ac_cxx_preproc_warn_flag
6870    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6871  else
6872    ac_cpp_err=
6873  fi
6874else
6875  ac_cpp_err=yes
6876fi
6877if test -z "$ac_cpp_err"; then
6878  # Broken: success on invalid input.
6879continue
6880else
6881  echo "$as_me: failed program was:" >&5
6882sed 's/^/| /' conftest.$ac_ext >&5
6883
6884  # Passes both tests.
6885ac_preproc_ok=:
6886break
6887fi
6888rm -f conftest.err conftest.$ac_ext
6889
6890done
6891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6892rm -f conftest.err conftest.$ac_ext
6893if $ac_preproc_ok; then
6894  :
6895else
6896  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6897See \`config.log' for more details." >&5
6898echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6899See \`config.log' for more details." >&2;}
6900   { (exit 1); exit 1; }; }
6901fi
6902
6903ac_ext=cc
6904ac_cpp='$CXXCPP $CPPFLAGS'
6905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6908
6909fi
6910
6911
6912
6913# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6914
6915# find the maximum length of command line arguments
6916echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6917echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6918if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6919  echo $ECHO_N "(cached) $ECHO_C" >&6
6920else
6921    i=0
6922  teststring="ABCD"
6923
6924  case $build_os in
6925  msdosdjgpp*)
6926    # On DJGPP, this test can blow up pretty badly due to problems in libc
6927    # (any single argument exceeding 2000 bytes causes a buffer overrun
6928    # during glob expansion).  Even if it were fixed, the result of this
6929    # check would be larger than it should be.
6930    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6931    ;;
6932
6933  gnu*)
6934    # Under GNU Hurd, this test is not required because there is
6935    # no limit to the length of command line arguments.
6936    # Libtool will interpret -1 as no limit whatsoever
6937    lt_cv_sys_max_cmd_len=-1;
6938    ;;
6939
6940  cygwin* | mingw*)
6941    # On Win9x/ME, this test blows up -- it succeeds, but takes
6942    # about 5 minutes as the teststring grows exponentially.
6943    # Worse, since 9x/ME are not pre-emptively multitasking,
6944    # you end up with a "frozen" computer, even though with patience
6945    # the test eventually succeeds (with a max line length of 256k).
6946    # Instead, let's just punt: use the minimum linelength reported by
6947    # all of the supported platforms: 8192 (on NT/2K/XP).
6948    lt_cv_sys_max_cmd_len=8192;
6949    ;;
6950
6951  amigaos*)
6952    # On AmigaOS with pdksh, this test takes hours, literally.
6953    # So we just punt and use a minimum line length of 8192.
6954    lt_cv_sys_max_cmd_len=8192;
6955    ;;
6956
6957  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6958    # This has been around since 386BSD, at least.  Likely further.
6959    if test -x /sbin/sysctl; then
6960      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6961    elif test -x /usr/sbin/sysctl; then
6962      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6963    else
6964      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6965    fi
6966    # And add a safety zone
6967    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6968    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6969    ;;
6970
6971  interix*)
6972    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6973    lt_cv_sys_max_cmd_len=196608
6974    ;;
6975
6976  osf*)
6977    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6978    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6979    # nice to cause kernel panics so lets avoid the loop below.
6980    # First set a reasonable default.
6981    lt_cv_sys_max_cmd_len=16384
6982    #
6983    if test -x /sbin/sysconfig; then
6984      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6985        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6986      esac
6987    fi
6988    ;;
6989  sco3.2v5*)
6990    lt_cv_sys_max_cmd_len=102400
6991    ;;
6992  sysv5* | sco5v6* | sysv4.2uw2*)
6993    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6994    if test -n "$kargmax"; then
6995      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6996    else
6997      lt_cv_sys_max_cmd_len=32768
6998    fi
6999    ;;
7000  *)
7001    # If test is not a shell built-in, we'll probably end up computing a
7002    # maximum length that is only half of the actual maximum length, but
7003    # we can't tell.
7004    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7005    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7006               = "XX$teststring") >/dev/null 2>&1 &&
7007            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7008            lt_cv_sys_max_cmd_len=$new_result &&
7009            test $i != 17 # 1/2 MB should be enough
7010    do
7011      i=`expr $i + 1`
7012      teststring=$teststring$teststring
7013    done
7014    teststring=
7015    # Add a significant safety factor because C++ compilers can tack on massive
7016    # amounts of additional arguments before passing them to the linker.
7017    # It appears as though 1/2 is a usable value.
7018    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7019    ;;
7020  esac
7021
7022fi
7023
7024if test -n $lt_cv_sys_max_cmd_len ; then
7025  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7026echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7027else
7028  echo "$as_me:$LINENO: result: none" >&5
7029echo "${ECHO_T}none" >&6
7030fi
7031
7032
7033
7034
7035# Check for command to grab the raw symbol name followed by C symbol from nm.
7036echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7037echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7038if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7039  echo $ECHO_N "(cached) $ECHO_C" >&6
7040else
7041
7042# These are sane defaults that work on at least a few old systems.
7043# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7044
7045# Character class describing NM global symbol codes.
7046symcode='[BCDEGRST]'
7047
7048# Regexp to match symbols that can be accessed directly from C.
7049sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7050
7051# Transform an extracted symbol line into a proper C declaration
7052lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7053
7054# Transform an extracted symbol line into symbol name and symbol address
7055lt_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'"
7056
7057# Define system-specific variables.
7058case $host_os in
7059aix*)
7060  symcode='[BCDT]'
7061  ;;
7062cygwin* | mingw* | pw32*)
7063  symcode='[ABCDGISTW]'
7064  ;;
7065hpux*) # Its linker distinguishes data from code symbols
7066  if test "$host_cpu" = ia64; then
7067    symcode='[ABCDEGRST]'
7068  fi
7069  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7070  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'"
7071  ;;
7072linux*)
7073  if test "$host_cpu" = ia64; then
7074    symcode='[ABCDGIRSTW]'
7075    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7076    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'"
7077  fi
7078  ;;
7079irix* | nonstopux*)
7080  symcode='[BCDEGRST]'
7081  ;;
7082osf*)
7083  symcode='[BCDEGQRST]'
7084  ;;
7085solaris*)
7086  symcode='[BDRT]'
7087  ;;
7088sco3.2v5*)
7089  symcode='[DT]'
7090  ;;
7091sysv4.2uw2*)
7092  symcode='[DT]'
7093  ;;
7094sysv5* | sco5v6* | unixware* | OpenUNIX*)
7095  symcode='[ABDT]'
7096  ;;
7097sysv4)
7098  symcode='[DFNSTU]'
7099  ;;
7100esac
7101
7102# Handle CRLF in mingw tool chain
7103opt_cr=
7104case $build_os in
7105mingw*)
7106  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7107  ;;
7108esac
7109
7110# If we're using GNU nm, then use its standard symbol codes.
7111case `$NM -V 2>&1` in
7112*GNU* | *'with BFD'*)
7113  symcode='[ABCDGIRSTW]' ;;
7114esac
7115
7116# Try without a prefix undercore, then with it.
7117for ac_symprfx in "" "_"; do
7118
7119  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7120  symxfrm="\\1 $ac_symprfx\\2 \\2"
7121
7122  # Write the raw and C identifiers.
7123  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7124
7125  # Check to see that the pipe works correctly.
7126  pipe_works=no
7127
7128  rm -f conftest*
7129  cat > conftest.$ac_ext <<EOF
7130#ifdef __cplusplus
7131extern "C" {
7132#endif
7133char nm_test_var;
7134void nm_test_func(){}
7135#ifdef __cplusplus
7136}
7137#endif
7138int main(){nm_test_var='a';nm_test_func();return(0);}
7139EOF
7140
7141  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142  (eval $ac_compile) 2>&5
7143  ac_status=$?
7144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145  (exit $ac_status); }; then
7146    # Now try to grab the symbols.
7147    nlist=conftest.nm
7148    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7149  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7150  ac_status=$?
7151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152  (exit $ac_status); } && test -s "$nlist"; then
7153      # Try sorting and uniquifying the output.
7154      if sort "$nlist" | uniq > "$nlist"T; then
7155        mv -f "$nlist"T "$nlist"
7156      else
7157        rm -f "$nlist"T
7158      fi
7159
7160      # Make sure that we snagged all the symbols we need.
7161      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7162        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7163          cat <<EOF > conftest.$ac_ext
7164#ifdef __cplusplus
7165extern "C" {
7166#endif
7167
7168EOF
7169          # Now generate the symbol file.
7170          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7171
7172          cat <<EOF >> conftest.$ac_ext
7173#if defined (__STDC__) && __STDC__
7174# define lt_ptr_t void *
7175#else
7176# define lt_ptr_t char *
7177# define const
7178#endif
7179
7180/* The mapping between symbol names and symbols. */
7181const struct {
7182  const char *name;
7183  lt_ptr_t address;
7184}
7185lt_preloaded_symbols[] =
7186{
7187EOF
7188          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7189          cat <<\EOF >> conftest.$ac_ext
7190  {0, (lt_ptr_t) 0}
7191};
7192
7193#ifdef __cplusplus
7194}
7195#endif
7196EOF
7197          # Now try linking the two files.
7198          mv conftest.$ac_objext conftstm.$ac_objext
7199          lt_save_LIBS="$LIBS"
7200          lt_save_CFLAGS="$CFLAGS"
7201          LIBS="conftstm.$ac_objext"
7202          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7203          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7204  (eval $ac_link) 2>&5
7205  ac_status=$?
7206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7208            pipe_works=yes
7209          fi
7210          LIBS="$lt_save_LIBS"
7211          CFLAGS="$lt_save_CFLAGS"
7212        else
7213          echo "cannot find nm_test_func in $nlist" >&5
7214        fi
7215      else
7216        echo "cannot find nm_test_var in $nlist" >&5
7217      fi
7218    else
7219      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7220    fi
7221  else
7222    echo "$progname: failed program was:" >&5
7223    cat conftest.$ac_ext >&5
7224  fi
7225  rm -f conftest* conftst*
7226
7227  # Do not use the global_symbol_pipe unless it works.
7228  if test "$pipe_works" = yes; then
7229    break
7230  else
7231    lt_cv_sys_global_symbol_pipe=
7232  fi
7233done
7234
7235fi
7236
7237if test -z "$lt_cv_sys_global_symbol_pipe"; then
7238  lt_cv_sys_global_symbol_to_cdecl=
7239fi
7240if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7241  echo "$as_me:$LINENO: result: failed" >&5
7242echo "${ECHO_T}failed" >&6
7243else
7244  echo "$as_me:$LINENO: result: ok" >&5
7245echo "${ECHO_T}ok" >&6
7246fi
7247
7248echo "$as_me:$LINENO: checking for objdir" >&5
7249echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7250if test "${lt_cv_objdir+set}" = set; then
7251  echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253  rm -f .libs 2>/dev/null
7254mkdir .libs 2>/dev/null
7255if test -d .libs; then
7256  lt_cv_objdir=.libs
7257else
7258  # MS-DOS does not allow filenames that begin with a dot.
7259  lt_cv_objdir=_libs
7260fi
7261rmdir .libs 2>/dev/null
7262fi
7263echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7264echo "${ECHO_T}$lt_cv_objdir" >&6
7265objdir=$lt_cv_objdir
7266
7267
7268
7269
7270
7271case $host_os in
7272aix3*)
7273  # AIX sometimes has problems with the GCC collect2 program.  For some
7274  # reason, if we set the COLLECT_NAMES environment variable, the problems
7275  # vanish in a puff of smoke.
7276  if test "X${COLLECT_NAMES+set}" != Xset; then
7277    COLLECT_NAMES=
7278    export COLLECT_NAMES
7279  fi
7280  ;;
7281esac
7282
7283# Sed substitution that helps us do robust quoting.  It backslashifies
7284# metacharacters that are still active within double-quoted strings.
7285Xsed='sed -e 1s/^X//'
7286sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7287
7288# Same as above, but do not quote variable references.
7289double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7290
7291# Sed substitution to delay expansion of an escaped shell variable in a
7292# double_quote_subst'ed string.
7293delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7294
7295# Sed substitution to avoid accidental globbing in evaled expressions
7296no_glob_subst='s/\*/\\\*/g'
7297
7298# Constants:
7299rm="rm -f"
7300
7301# Global variables:
7302default_ofile=libtool
7303can_build_shared=yes
7304
7305# All known linkers require a `.a' archive for static linking (except MSVC,
7306# which needs '.lib').
7307libext=a
7308ltmain="$ac_aux_dir/ltmain.sh"
7309ofile="$default_ofile"
7310with_gnu_ld="$lt_cv_prog_gnu_ld"
7311
7312if test -n "$ac_tool_prefix"; then
7313  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7314set dummy ${ac_tool_prefix}ar; ac_word=$2
7315echo "$as_me:$LINENO: checking for $ac_word" >&5
7316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7317if test "${ac_cv_prog_AR+set}" = set; then
7318  echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320  if test -n "$AR"; then
7321  ac_cv_prog_AR="$AR" # Let the user override the test.
7322else
7323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326  IFS=$as_save_IFS
7327  test -z "$as_dir" && as_dir=.
7328  for ac_exec_ext in '' $ac_executable_extensions; do
7329  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330    ac_cv_prog_AR="${ac_tool_prefix}ar"
7331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332    break 2
7333  fi
7334done
7335done
7336
7337fi
7338fi
7339AR=$ac_cv_prog_AR
7340if test -n "$AR"; then
7341  echo "$as_me:$LINENO: result: $AR" >&5
7342echo "${ECHO_T}$AR" >&6
7343else
7344  echo "$as_me:$LINENO: result: no" >&5
7345echo "${ECHO_T}no" >&6
7346fi
7347
7348fi
7349if test -z "$ac_cv_prog_AR"; then
7350  ac_ct_AR=$AR
7351  # Extract the first word of "ar", so it can be a program name with args.
7352set dummy ar; ac_word=$2
7353echo "$as_me:$LINENO: checking for $ac_word" >&5
7354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7355if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7356  echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358  if test -n "$ac_ct_AR"; then
7359  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364  IFS=$as_save_IFS
7365  test -z "$as_dir" && as_dir=.
7366  for ac_exec_ext in '' $ac_executable_extensions; do
7367  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368    ac_cv_prog_ac_ct_AR="ar"
7369    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370    break 2
7371  fi
7372done
7373done
7374
7375  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7376fi
7377fi
7378ac_ct_AR=$ac_cv_prog_ac_ct_AR
7379if test -n "$ac_ct_AR"; then
7380  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7381echo "${ECHO_T}$ac_ct_AR" >&6
7382else
7383  echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7385fi
7386
7387  AR=$ac_ct_AR
7388else
7389  AR="$ac_cv_prog_AR"
7390fi
7391
7392if test -n "$ac_tool_prefix"; then
7393  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7394set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7395echo "$as_me:$LINENO: checking for $ac_word" >&5
7396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7397if test "${ac_cv_prog_RANLIB+set}" = set; then
7398  echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400  if test -n "$RANLIB"; then
7401  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7402else
7403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404for as_dir in $PATH
7405do
7406  IFS=$as_save_IFS
7407  test -z "$as_dir" && as_dir=.
7408  for ac_exec_ext in '' $ac_executable_extensions; do
7409  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7411    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7412    break 2
7413  fi
7414done
7415done
7416
7417fi
7418fi
7419RANLIB=$ac_cv_prog_RANLIB
7420if test -n "$RANLIB"; then
7421  echo "$as_me:$LINENO: result: $RANLIB" >&5
7422echo "${ECHO_T}$RANLIB" >&6
7423else
7424  echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6
7426fi
7427
7428fi
7429if test -z "$ac_cv_prog_RANLIB"; then
7430  ac_ct_RANLIB=$RANLIB
7431  # Extract the first word of "ranlib", so it can be a program name with args.
7432set dummy ranlib; ac_word=$2
7433echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7435if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7436  echo $ECHO_N "(cached) $ECHO_C" >&6
7437else
7438  if test -n "$ac_ct_RANLIB"; then
7439  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444  IFS=$as_save_IFS
7445  test -z "$as_dir" && as_dir=.
7446  for ac_exec_ext in '' $ac_executable_extensions; do
7447  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448    ac_cv_prog_ac_ct_RANLIB="ranlib"
7449    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450    break 2
7451  fi
7452done
7453done
7454
7455  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7456fi
7457fi
7458ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7459if test -n "$ac_ct_RANLIB"; then
7460  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7461echo "${ECHO_T}$ac_ct_RANLIB" >&6
7462else
7463  echo "$as_me:$LINENO: result: no" >&5
7464echo "${ECHO_T}no" >&6
7465fi
7466
7467  RANLIB=$ac_ct_RANLIB
7468else
7469  RANLIB="$ac_cv_prog_RANLIB"
7470fi
7471
7472if test -n "$ac_tool_prefix"; then
7473  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7474set dummy ${ac_tool_prefix}strip; ac_word=$2
7475echo "$as_me:$LINENO: checking for $ac_word" >&5
7476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7477if test "${ac_cv_prog_STRIP+set}" = set; then
7478  echo $ECHO_N "(cached) $ECHO_C" >&6
7479else
7480  if test -n "$STRIP"; then
7481  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7482else
7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486  IFS=$as_save_IFS
7487  test -z "$as_dir" && as_dir=.
7488  for ac_exec_ext in '' $ac_executable_extensions; do
7489  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7491    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7492    break 2
7493  fi
7494done
7495done
7496
7497fi
7498fi
7499STRIP=$ac_cv_prog_STRIP
7500if test -n "$STRIP"; then
7501  echo "$as_me:$LINENO: result: $STRIP" >&5
7502echo "${ECHO_T}$STRIP" >&6
7503else
7504  echo "$as_me:$LINENO: result: no" >&5
7505echo "${ECHO_T}no" >&6
7506fi
7507
7508fi
7509if test -z "$ac_cv_prog_STRIP"; then
7510  ac_ct_STRIP=$STRIP
7511  # Extract the first word of "strip", so it can be a program name with args.
7512set dummy strip; ac_word=$2
7513echo "$as_me:$LINENO: checking for $ac_word" >&5
7514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7515if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7516  echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518  if test -n "$ac_ct_STRIP"; then
7519  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7520else
7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524  IFS=$as_save_IFS
7525  test -z "$as_dir" && as_dir=.
7526  for ac_exec_ext in '' $ac_executable_extensions; do
7527  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528    ac_cv_prog_ac_ct_STRIP="strip"
7529    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530    break 2
7531  fi
7532done
7533done
7534
7535  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7536fi
7537fi
7538ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7539if test -n "$ac_ct_STRIP"; then
7540  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7541echo "${ECHO_T}$ac_ct_STRIP" >&6
7542else
7543  echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6
7545fi
7546
7547  STRIP=$ac_ct_STRIP
7548else
7549  STRIP="$ac_cv_prog_STRIP"
7550fi
7551
7552
7553old_CC="$CC"
7554old_CFLAGS="$CFLAGS"
7555
7556# Set sane defaults for various variables
7557test -z "$AR" && AR=ar
7558test -z "$AR_FLAGS" && AR_FLAGS=cru
7559test -z "$AS" && AS=as
7560test -z "$CC" && CC=cc
7561test -z "$LTCC" && LTCC=$CC
7562test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7563test -z "$DLLTOOL" && DLLTOOL=dlltool
7564test -z "$LD" && LD=ld
7565test -z "$LN_S" && LN_S="ln -s"
7566test -z "$MAGIC_CMD" && MAGIC_CMD=file
7567test -z "$NM" && NM=nm
7568test -z "$SED" && SED=sed
7569test -z "$OBJDUMP" && OBJDUMP=objdump
7570test -z "$RANLIB" && RANLIB=:
7571test -z "$STRIP" && STRIP=:
7572test -z "$ac_objext" && ac_objext=o
7573
7574# Determine commands to create old-style static archives.
7575old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7576old_postinstall_cmds='chmod 644 $oldlib'
7577old_postuninstall_cmds=
7578
7579if test -n "$RANLIB"; then
7580  case $host_os in
7581  openbsd*)
7582    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7583    ;;
7584  *)
7585    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7586    ;;
7587  esac
7588  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7589fi
7590
7591for cc_temp in $compiler""; do
7592  case $cc_temp in
7593    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7594    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7595    \-*) ;;
7596    *) break;;
7597  esac
7598done
7599cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7600
7601
7602# Only perform the check for file, if the check method requires it
7603case $deplibs_check_method in
7604file_magic*)
7605  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7606    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7607echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7608if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7609  echo $ECHO_N "(cached) $ECHO_C" >&6
7610else
7611  case $MAGIC_CMD in
7612[\\/*] |  ?:[\\/]*)
7613  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7614  ;;
7615*)
7616  lt_save_MAGIC_CMD="$MAGIC_CMD"
7617  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7618  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7619  for ac_dir in $ac_dummy; do
7620    IFS="$lt_save_ifs"
7621    test -z "$ac_dir" && ac_dir=.
7622    if test -f $ac_dir/${ac_tool_prefix}file; then
7623      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7624      if test -n "$file_magic_test_file"; then
7625        case $deplibs_check_method in
7626        "file_magic "*)
7627          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7628          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7629          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7630            $EGREP "$file_magic_regex" > /dev/null; then
7631            :
7632          else
7633            cat <<EOF 1>&2
7634
7635*** Warning: the command libtool uses to detect shared libraries,
7636*** $file_magic_cmd, produces output that libtool cannot recognize.
7637*** The result is that libtool may fail to recognize shared libraries
7638*** as such.  This will affect the creation of libtool libraries that
7639*** depend on shared libraries, but programs linked with such libtool
7640*** libraries will work regardless of this problem.  Nevertheless, you
7641*** may want to report the problem to your system manager and/or to
7642*** bug-libtool@gnu.org
7643
7644EOF
7645          fi ;;
7646        esac
7647      fi
7648      break
7649    fi
7650  done
7651  IFS="$lt_save_ifs"
7652  MAGIC_CMD="$lt_save_MAGIC_CMD"
7653  ;;
7654esac
7655fi
7656
7657MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7658if test -n "$MAGIC_CMD"; then
7659  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7660echo "${ECHO_T}$MAGIC_CMD" >&6
7661else
7662  echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6
7664fi
7665
7666if test -z "$lt_cv_path_MAGIC_CMD"; then
7667  if test -n "$ac_tool_prefix"; then
7668    echo "$as_me:$LINENO: checking for file" >&5
7669echo $ECHO_N "checking for file... $ECHO_C" >&6
7670if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7671  echo $ECHO_N "(cached) $ECHO_C" >&6
7672else
7673  case $MAGIC_CMD in
7674[\\/*] |  ?:[\\/]*)
7675  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7676  ;;
7677*)
7678  lt_save_MAGIC_CMD="$MAGIC_CMD"
7679  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7680  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7681  for ac_dir in $ac_dummy; do
7682    IFS="$lt_save_ifs"
7683    test -z "$ac_dir" && ac_dir=.
7684    if test -f $ac_dir/file; then
7685      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7686      if test -n "$file_magic_test_file"; then
7687        case $deplibs_check_method in
7688        "file_magic "*)
7689          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7690          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7691          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7692            $EGREP "$file_magic_regex" > /dev/null; then
7693            :
7694          else
7695            cat <<EOF 1>&2
7696
7697*** Warning: the command libtool uses to detect shared libraries,
7698*** $file_magic_cmd, produces output that libtool cannot recognize.
7699*** The result is that libtool may fail to recognize shared libraries
7700*** as such.  This will affect the creation of libtool libraries that
7701*** depend on shared libraries, but programs linked with such libtool
7702*** libraries will work regardless of this problem.  Nevertheless, you
7703*** may want to report the problem to your system manager and/or to
7704*** bug-libtool@gnu.org
7705
7706EOF
7707          fi ;;
7708        esac
7709      fi
7710      break
7711    fi
7712  done
7713  IFS="$lt_save_ifs"
7714  MAGIC_CMD="$lt_save_MAGIC_CMD"
7715  ;;
7716esac
7717fi
7718
7719MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7720if test -n "$MAGIC_CMD"; then
7721  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7722echo "${ECHO_T}$MAGIC_CMD" >&6
7723else
7724  echo "$as_me:$LINENO: result: no" >&5
7725echo "${ECHO_T}no" >&6
7726fi
7727
7728  else
7729    MAGIC_CMD=:
7730  fi
7731fi
7732
7733  fi
7734  ;;
7735esac
7736
7737enable_dlopen=no
7738enable_win32_dll=no
7739
7740# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7741if test "${enable_libtool_lock+set}" = set; then
7742  enableval="$enable_libtool_lock"
7743
7744fi;
7745test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7746
7747
7748# Check whether --with-pic or --without-pic was given.
7749if test "${with_pic+set}" = set; then
7750  withval="$with_pic"
7751  pic_mode="$withval"
7752else
7753  pic_mode=default
7754fi;
7755test -z "$pic_mode" && pic_mode=default
7756
7757# Use C for the default configuration in the libtool script
7758tagname=
7759lt_save_CC="$CC"
7760ac_ext=c
7761ac_cpp='$CPP $CPPFLAGS'
7762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765
7766
7767# Source file extension for C test sources.
7768ac_ext=c
7769
7770# Object file extension for compiled C test sources.
7771objext=o
7772objext=$objext
7773
7774# Code to be used in simple compile tests
7775lt_simple_compile_test_code="int some_variable = 0;\n"
7776
7777# Code to be used in simple link tests
7778lt_simple_link_test_code='int main(){return(0);}\n'
7779
7780
7781# If no C compiler was specified, use CC.
7782LTCC=${LTCC-"$CC"}
7783
7784# If no C compiler flags were specified, use CFLAGS.
7785LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7786
7787# Allow CC to be a program name with arguments.
7788compiler=$CC
7789
7790
7791# save warnings/boilerplate of simple test code
7792ac_outfile=conftest.$ac_objext
7793printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7794eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7795_lt_compiler_boilerplate=`cat conftest.err`
7796$rm conftest*
7797
7798ac_outfile=conftest.$ac_objext
7799printf "$lt_simple_link_test_code" >conftest.$ac_ext
7800eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7801_lt_linker_boilerplate=`cat conftest.err`
7802$rm conftest*
7803
7804
7805## CAVEAT EMPTOR:
7806## There is no encapsulation within the following macros, do not change
7807## the running order or otherwise move them around unless you know exactly
7808## what you are doing...
7809
7810lt_prog_compiler_no_builtin_flag=
7811
7812if test "$GCC" = yes; then
7813  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7814
7815
7816echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7817echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7818if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7819  echo $ECHO_N "(cached) $ECHO_C" >&6
7820else
7821  lt_cv_prog_compiler_rtti_exceptions=no
7822  ac_outfile=conftest.$ac_objext
7823   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7824   lt_compiler_flag="-fno-rtti -fno-exceptions"
7825   # Insert the option either (1) after the last *FLAGS variable, or
7826   # (2) before a word containing "conftest.", or (3) at the end.
7827   # Note that $ac_compile itself does not contain backslashes and begins
7828   # with a dollar sign (not a hyphen), so the echo should work correctly.
7829   # The option is referenced via a variable to avoid confusing sed.
7830   lt_compile=`echo "$ac_compile" | $SED \
7831   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7832   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7833   -e 's:$: $lt_compiler_flag:'`
7834   (eval echo "\"\$as_me:7834: $lt_compile\"" >&5)
7835   (eval "$lt_compile" 2>conftest.err)
7836   ac_status=$?
7837   cat conftest.err >&5
7838   echo "$as_me:7838: \$? = $ac_status" >&5
7839   if (exit $ac_status) && test -s "$ac_outfile"; then
7840     # The compiler can only warn and ignore the option if not recognized
7841     # So say no if there are warnings other than the usual output.
7842     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7843     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7844     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7845       lt_cv_prog_compiler_rtti_exceptions=yes
7846     fi
7847   fi
7848   $rm conftest*
7849
7850fi
7851echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7852echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7853
7854if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7855    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7856else
7857    :
7858fi
7859
7860fi
7861
7862lt_prog_compiler_wl=
7863lt_prog_compiler_pic=
7864lt_prog_compiler_static=
7865
7866echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7867echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7868
7869  if test "$GCC" = yes; then
7870    lt_prog_compiler_wl='-Wl,'
7871    lt_prog_compiler_static='-static'
7872
7873    case $host_os in
7874      aix*)
7875      # All AIX code is PIC.
7876      if test "$host_cpu" = ia64; then
7877        # AIX 5 now supports IA64 processor
7878        lt_prog_compiler_static='-Bstatic'
7879      fi
7880      ;;
7881
7882    amigaos*)
7883      # FIXME: we need at least 68020 code to build shared libraries, but
7884      # adding the `-m68020' flag to GCC prevents building anything better,
7885      # like `-m68040'.
7886      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7887      ;;
7888
7889    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7890      # PIC is the default for these OSes.
7891      ;;
7892
7893    mingw* | pw32* | os2*)
7894      # This hack is so that the source file can tell whether it is being
7895      # built for inclusion in a dll (and should export symbols for example).
7896      lt_prog_compiler_pic='-DDLL_EXPORT'
7897      ;;
7898
7899    darwin* | rhapsody*)
7900      # PIC is the default on this platform
7901      # Common symbols not allowed in MH_DYLIB files
7902      lt_prog_compiler_pic='-fno-common'
7903      ;;
7904
7905    interix3*)
7906      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7907      # Instead, we relocate shared libraries at runtime.
7908      ;;
7909
7910    msdosdjgpp*)
7911      # Just because we use GCC doesn't mean we suddenly get shared libraries
7912      # on systems that don't support them.
7913      lt_prog_compiler_can_build_shared=no
7914      enable_shared=no
7915      ;;
7916
7917    sysv4*MP*)
7918      if test -d /usr/nec; then
7919        lt_prog_compiler_pic=-Kconform_pic
7920      fi
7921      ;;
7922
7923    hpux*)
7924      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7925      # not for PA HP-UX.
7926      case $host_cpu in
7927      hppa*64*|ia64*)
7928        # +Z the default
7929        ;;
7930      *)
7931        lt_prog_compiler_pic='-fPIC'
7932        ;;
7933      esac
7934      ;;
7935
7936    *)
7937      lt_prog_compiler_pic='-fPIC'
7938      ;;
7939    esac
7940  else
7941    # PORTME Check for flag to pass linker flags through the system compiler.
7942    case $host_os in
7943    aix*)
7944      lt_prog_compiler_wl='-Wl,'
7945      if test "$host_cpu" = ia64; then
7946        # AIX 5 now supports IA64 processor
7947        lt_prog_compiler_static='-Bstatic'
7948      else
7949        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7950      fi
7951      ;;
7952      darwin*)
7953        # PIC is the default on this platform
7954        # Common symbols not allowed in MH_DYLIB files
7955       case $cc_basename in
7956         xlc*)
7957         lt_prog_compiler_pic='-qnocommon'
7958         lt_prog_compiler_wl='-Wl,'
7959         ;;
7960       esac
7961       ;;
7962
7963    mingw* | pw32* | os2*)
7964      # This hack is so that the source file can tell whether it is being
7965      # built for inclusion in a dll (and should export symbols for example).
7966      lt_prog_compiler_pic='-DDLL_EXPORT'
7967      ;;
7968
7969    hpux9* | hpux10* | hpux11*)
7970      lt_prog_compiler_wl='-Wl,'
7971      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7972      # not for PA HP-UX.
7973      case $host_cpu in
7974      hppa*64*|ia64*)
7975        # +Z the default
7976        ;;
7977      *)
7978        lt_prog_compiler_pic='+Z'
7979        ;;
7980      esac
7981      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7982      lt_prog_compiler_static='${wl}-a ${wl}archive'
7983      ;;
7984
7985    irix5* | irix6* | nonstopux*)
7986      lt_prog_compiler_wl='-Wl,'
7987      # PIC (with -KPIC) is the default.
7988      lt_prog_compiler_static='-non_shared'
7989      ;;
7990
7991    newsos6)
7992      lt_prog_compiler_pic='-KPIC'
7993      lt_prog_compiler_static='-Bstatic'
7994      ;;
7995
7996    linux*)
7997      case $cc_basename in
7998      icc* | ecc*)
7999        lt_prog_compiler_wl='-Wl,'
8000        lt_prog_compiler_pic='-KPIC'
8001        lt_prog_compiler_static='-static'
8002        ;;
8003      pgcc* | pgf77* | pgf90* | pgf95*)
8004        # Portland Group compilers (*not* the Pentium gcc compiler,
8005        # which looks to be a dead project)
8006        lt_prog_compiler_wl='-Wl,'
8007        lt_prog_compiler_pic='-fpic'
8008        lt_prog_compiler_static='-Bstatic'
8009        ;;
8010      ccc*)
8011        lt_prog_compiler_wl='-Wl,'
8012        # All Alpha code is PIC.
8013        lt_prog_compiler_static='-non_shared'
8014        ;;
8015      esac
8016      ;;
8017
8018    osf3* | osf4* | osf5*)
8019      lt_prog_compiler_wl='-Wl,'
8020      # All OSF/1 code is PIC.
8021      lt_prog_compiler_static='-non_shared'
8022      ;;
8023
8024    solaris*)
8025      lt_prog_compiler_pic='-KPIC'
8026      lt_prog_compiler_static='-Bstatic'
8027      case $cc_basename in
8028      f77* | f90* | f95*)
8029        lt_prog_compiler_wl='-Qoption ld ';;
8030      *)
8031        lt_prog_compiler_wl='-Wl,';;
8032      esac
8033      ;;
8034
8035    sunos4*)
8036      lt_prog_compiler_wl='-Qoption ld '
8037      lt_prog_compiler_pic='-PIC'
8038      lt_prog_compiler_static='-Bstatic'
8039      ;;
8040
8041    sysv4 | sysv4.2uw2* | sysv4.3*)
8042      lt_prog_compiler_wl='-Wl,'
8043      lt_prog_compiler_pic='-KPIC'
8044      lt_prog_compiler_static='-Bstatic'
8045      ;;
8046
8047    sysv4*MP*)
8048      if test -d /usr/nec ;then
8049        lt_prog_compiler_pic='-Kconform_pic'
8050        lt_prog_compiler_static='-Bstatic'
8051      fi
8052      ;;
8053
8054    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8055      lt_prog_compiler_wl='-Wl,'
8056      lt_prog_compiler_pic='-KPIC'
8057      lt_prog_compiler_static='-Bstatic'
8058      ;;
8059
8060    unicos*)
8061      lt_prog_compiler_wl='-Wl,'
8062      lt_prog_compiler_can_build_shared=no
8063      ;;
8064
8065    uts4*)
8066      lt_prog_compiler_pic='-pic'
8067      lt_prog_compiler_static='-Bstatic'
8068      ;;
8069
8070    *)
8071      lt_prog_compiler_can_build_shared=no
8072      ;;
8073    esac
8074  fi
8075
8076echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8077echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8078
8079#
8080# Check to make sure the PIC flag actually works.
8081#
8082if test -n "$lt_prog_compiler_pic"; then
8083
8084echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8085echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8086if test "${lt_prog_compiler_pic_works+set}" = set; then
8087  echo $ECHO_N "(cached) $ECHO_C" >&6
8088else
8089  lt_prog_compiler_pic_works=no
8090  ac_outfile=conftest.$ac_objext
8091   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8092   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8093   # Insert the option either (1) after the last *FLAGS variable, or
8094   # (2) before a word containing "conftest.", or (3) at the end.
8095   # Note that $ac_compile itself does not contain backslashes and begins
8096   # with a dollar sign (not a hyphen), so the echo should work correctly.
8097   # The option is referenced via a variable to avoid confusing sed.
8098   lt_compile=`echo "$ac_compile" | $SED \
8099   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8100   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8101   -e 's:$: $lt_compiler_flag:'`
8102   (eval echo "\"\$as_me:8102: $lt_compile\"" >&5)
8103   (eval "$lt_compile" 2>conftest.err)
8104   ac_status=$?
8105   cat conftest.err >&5
8106   echo "$as_me:8106: \$? = $ac_status" >&5
8107   if (exit $ac_status) && test -s "$ac_outfile"; then
8108     # The compiler can only warn and ignore the option if not recognized
8109     # So say no if there are warnings other than the usual output.
8110     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8111     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8112     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8113       lt_prog_compiler_pic_works=yes
8114     fi
8115   fi
8116   $rm conftest*
8117
8118fi
8119echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8120echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8121
8122if test x"$lt_prog_compiler_pic_works" = xyes; then
8123    case $lt_prog_compiler_pic in
8124     "" | " "*) ;;
8125     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8126     esac
8127else
8128    lt_prog_compiler_pic=
8129     lt_prog_compiler_can_build_shared=no
8130fi
8131
8132fi
8133case $host_os in
8134  # For platforms which do not support PIC, -DPIC is meaningless:
8135  *djgpp*)
8136    lt_prog_compiler_pic=
8137    ;;
8138  *)
8139    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8140    ;;
8141esac
8142
8143#
8144# Check to make sure the static flag actually works.
8145#
8146wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8147echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8148echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8149if test "${lt_prog_compiler_static_works+set}" = set; then
8150  echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152  lt_prog_compiler_static_works=no
8153   save_LDFLAGS="$LDFLAGS"
8154   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8155   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8156   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8157     # The linker can only warn and ignore the option if not recognized
8158     # So say no if there are warnings
8159     if test -s conftest.err; then
8160       # Append any errors to the config.log.
8161       cat conftest.err 1>&5
8162       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8163       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8164       if diff conftest.exp conftest.er2 >/dev/null; then
8165         lt_prog_compiler_static_works=yes
8166       fi
8167     else
8168       lt_prog_compiler_static_works=yes
8169     fi
8170   fi
8171   $rm conftest*
8172   LDFLAGS="$save_LDFLAGS"
8173
8174fi
8175echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8176echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8177
8178if test x"$lt_prog_compiler_static_works" = xyes; then
8179    :
8180else
8181    lt_prog_compiler_static=
8182fi
8183
8184
8185echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8186echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8187if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8188  echo $ECHO_N "(cached) $ECHO_C" >&6
8189else
8190  lt_cv_prog_compiler_c_o=no
8191   $rm -r conftest 2>/dev/null
8192   mkdir conftest
8193   cd conftest
8194   mkdir out
8195   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8196
8197   lt_compiler_flag="-o out/conftest2.$ac_objext"
8198   # Insert the option either (1) after the last *FLAGS variable, or
8199   # (2) before a word containing "conftest.", or (3) at the end.
8200   # Note that $ac_compile itself does not contain backslashes and begins
8201   # with a dollar sign (not a hyphen), so the echo should work correctly.
8202   lt_compile=`echo "$ac_compile" | $SED \
8203   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8204   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8205   -e 's:$: $lt_compiler_flag:'`
8206   (eval echo "\"\$as_me:8206: $lt_compile\"" >&5)
8207   (eval "$lt_compile" 2>out/conftest.err)
8208   ac_status=$?
8209   cat out/conftest.err >&5
8210   echo "$as_me:8210: \$? = $ac_status" >&5
8211   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8212   then
8213     # The compiler can only warn and ignore the option if not recognized
8214     # So say no if there are warnings
8215     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8216     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8217     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8218       lt_cv_prog_compiler_c_o=yes
8219     fi
8220   fi
8221   chmod u+w . 2>&5
8222   $rm conftest*
8223   # SGI C++ compiler will create directory out/ii_files/ for
8224   # template instantiation
8225   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8226   $rm out/* && rmdir out
8227   cd ..
8228   rmdir conftest
8229   $rm conftest*
8230
8231fi
8232echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8233echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8234
8235
8236hard_links="nottested"
8237if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8238  # do not overwrite the value of need_locks provided by the user
8239  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8240echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8241  hard_links=yes
8242  $rm conftest*
8243  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8244  touch conftest.a
8245  ln conftest.a conftest.b 2>&5 || hard_links=no
8246  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8247  echo "$as_me:$LINENO: result: $hard_links" >&5
8248echo "${ECHO_T}$hard_links" >&6
8249  if test "$hard_links" = no; then
8250    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8251echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8252    need_locks=warn
8253  fi
8254else
8255  need_locks=no
8256fi
8257
8258echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8259echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8260
8261  runpath_var=
8262  allow_undefined_flag=
8263  enable_shared_with_static_runtimes=no
8264  archive_cmds=
8265  archive_expsym_cmds=
8266  old_archive_From_new_cmds=
8267  old_archive_from_expsyms_cmds=
8268  export_dynamic_flag_spec=
8269  whole_archive_flag_spec=
8270  thread_safe_flag_spec=
8271  hardcode_libdir_flag_spec=
8272  hardcode_libdir_flag_spec_ld=
8273  hardcode_libdir_separator=
8274  hardcode_direct=no
8275  hardcode_minus_L=no
8276  hardcode_shlibpath_var=unsupported
8277  link_all_deplibs=unknown
8278  hardcode_automatic=no
8279  module_cmds=
8280  module_expsym_cmds=
8281  always_export_symbols=no
8282  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8283  # include_expsyms should be a list of space-separated symbols to be *always*
8284  # included in the symbol list
8285  include_expsyms=
8286  # exclude_expsyms can be an extended regexp of symbols to exclude
8287  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8288  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8289  # as well as any symbol that contains `d'.
8290  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8291  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8292  # platforms (ab)use it in PIC code, but their linkers get confused if
8293  # the symbol is explicitly referenced.  Since portable code cannot
8294  # rely on this symbol name, it's probably fine to never include it in
8295  # preloaded symbol tables.
8296  extract_expsyms_cmds=
8297  # Just being paranoid about ensuring that cc_basename is set.
8298  for cc_temp in $compiler""; do
8299  case $cc_temp in
8300    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8301    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8302    \-*) ;;
8303    *) break;;
8304  esac
8305done
8306cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8307
8308  case $host_os in
8309  cygwin* | mingw* | pw32*)
8310    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8311    # When not using gcc, we currently assume that we are using
8312    # Microsoft Visual C++.
8313    if test "$GCC" != yes; then
8314      with_gnu_ld=no
8315    fi
8316    ;;
8317  interix*)
8318    # we just hope/assume this is gcc and not c89 (= MSVC++)
8319    with_gnu_ld=yes
8320    ;;
8321  openbsd*)
8322    with_gnu_ld=no
8323    ;;
8324  esac
8325
8326  ld_shlibs=yes
8327  if test "$with_gnu_ld" = yes; then
8328    # If archive_cmds runs LD, not CC, wlarc should be empty
8329    wlarc='${wl}'
8330
8331    # Set some defaults for GNU ld with shared library support. These
8332    # are reset later if shared libraries are not supported. Putting them
8333    # here allows them to be overridden if necessary.
8334    runpath_var=LD_RUN_PATH
8335    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8336    export_dynamic_flag_spec='${wl}--export-dynamic'
8337    # ancient GNU ld didn't support --whole-archive et. al.
8338    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8339        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8340      else
8341        whole_archive_flag_spec=
8342    fi
8343    supports_anon_versioning=no
8344    case `$LD -v 2>/dev/null` in
8345      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8346      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8347      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8348      *\ 2.11.*) ;; # other 2.11 versions
8349      *) supports_anon_versioning=yes ;;
8350    esac
8351
8352    # See if GNU ld supports shared libraries.
8353    case $host_os in
8354    aix3* | aix4* | aix5*)
8355      # On AIX/PPC, the GNU linker is very broken
8356      if test "$host_cpu" != ia64; then
8357        ld_shlibs=no
8358        cat <<EOF 1>&2
8359
8360*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8361*** to be unable to reliably create shared libraries on AIX.
8362*** Therefore, libtool is disabling shared libraries support.  If you
8363*** really care for shared libraries, you may want to modify your PATH
8364*** so that a non-GNU linker is found, and then restart.
8365
8366EOF
8367      fi
8368      ;;
8369
8370    amigaos*)
8371      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)'
8372      hardcode_libdir_flag_spec='-L$libdir'
8373      hardcode_minus_L=yes
8374
8375      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8376      # that the semantics of dynamic libraries on AmigaOS, at least up
8377      # to version 4, is to share data among multiple programs linked
8378      # with the same dynamic library.  Since this doesn't match the
8379      # behavior of shared libraries on other platforms, we can't use
8380      # them.
8381      ld_shlibs=no
8382      ;;
8383
8384    beos*)
8385      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8386        allow_undefined_flag=unsupported
8387        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8388        # support --undefined.  This deserves some investigation.  FIXME
8389        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8390      else
8391        ld_shlibs=no
8392      fi
8393      ;;
8394
8395    cygwin* | mingw* | pw32*)
8396      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8397      # as there is no search path for DLLs.
8398      hardcode_libdir_flag_spec='-L$libdir'
8399      allow_undefined_flag=unsupported
8400      always_export_symbols=no
8401      enable_shared_with_static_runtimes=yes
8402      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8403
8404      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8405        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8406        # If the export-symbols file already is a .def file (1st line
8407        # is EXPORTS), use it as is; otherwise, prepend...
8408        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8409          cp $export_symbols $output_objdir/$soname.def;
8410        else
8411          echo EXPORTS > $output_objdir/$soname.def;
8412          cat $export_symbols >> $output_objdir/$soname.def;
8413        fi~
8414        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8415      else
8416        ld_shlibs=no
8417      fi
8418      ;;
8419
8420    interix3*)
8421      hardcode_direct=no
8422      hardcode_shlibpath_var=no
8423      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8424      export_dynamic_flag_spec='${wl}-E'
8425      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8426      # Instead, shared libraries are loaded at an image base (0x10000000 by
8427      # default) and relocated if they conflict, which is a slow very memory
8428      # consuming and fragmenting process.  To avoid this, we pick a random,
8429      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8430      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8431      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8432      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'
8433      ;;
8434
8435    linux*)
8436      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8437        tmp_addflag=
8438        case $cc_basename,$host_cpu in
8439        pgcc*)                          # Portland Group C compiler
8440          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'
8441          tmp_addflag=' $pic_flag'
8442          ;;
8443        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8444          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'
8445          tmp_addflag=' $pic_flag -Mnomain' ;;
8446        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8447          tmp_addflag=' -i_dynamic' ;;
8448        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8449          tmp_addflag=' -i_dynamic -nofor_main' ;;
8450        ifc* | ifort*)                  # Intel Fortran compiler
8451          tmp_addflag=' -nofor_main' ;;
8452        esac
8453        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8454
8455        if test $supports_anon_versioning = yes; then
8456          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8457  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8458  $echo "local: *; };" >> $output_objdir/$libname.ver~
8459          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8460        fi
8461      else
8462        ld_shlibs=no
8463      fi
8464      ;;
8465
8466    netbsd*)
8467      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8468        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8469        wlarc=
8470      else
8471        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8472        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8473      fi
8474      ;;
8475
8476    solaris*)
8477      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8478        ld_shlibs=no
8479        cat <<EOF 1>&2
8480
8481*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8482*** create shared libraries on Solaris systems.  Therefore, libtool
8483*** is disabling shared libraries support.  We urge you to upgrade GNU
8484*** binutils to release 2.9.1 or newer.  Another option is to modify
8485*** your PATH or compiler configuration so that the native linker is
8486*** used, and then restart.
8487
8488EOF
8489      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8490        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8491        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8492      else
8493        ld_shlibs=no
8494      fi
8495      ;;
8496
8497    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8498      case `$LD -v 2>&1` in
8499        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8500        ld_shlibs=no
8501        cat <<_LT_EOF 1>&2
8502
8503*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8504*** reliably create shared libraries on SCO systems.  Therefore, libtool
8505*** is disabling shared libraries support.  We urge you to upgrade GNU
8506*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8507*** your PATH or compiler configuration so that the native linker is
8508*** used, and then restart.
8509
8510_LT_EOF
8511        ;;
8512        *)
8513          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8514            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8515            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8516            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8517          else
8518            ld_shlibs=no
8519          fi
8520        ;;
8521      esac
8522      ;;
8523
8524    sunos4*)
8525      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8526      wlarc=
8527      hardcode_direct=yes
8528      hardcode_shlibpath_var=no
8529      ;;
8530
8531    *)
8532      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8533        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8534        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8535      else
8536        ld_shlibs=no
8537      fi
8538      ;;
8539    esac
8540
8541    if test "$ld_shlibs" = no; then
8542      runpath_var=
8543      hardcode_libdir_flag_spec=
8544      export_dynamic_flag_spec=
8545      whole_archive_flag_spec=
8546    fi
8547  else
8548    # PORTME fill in a description of your system's linker (not GNU ld)
8549    case $host_os in
8550    aix3*)
8551      allow_undefined_flag=unsupported
8552      always_export_symbols=yes
8553      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'
8554      # Note: this linker hardcodes the directories in LIBPATH if there
8555      # are no directories specified by -L.
8556      hardcode_minus_L=yes
8557      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8558        # Neither direct hardcoding nor static linking is supported with a
8559        # broken collect2.
8560        hardcode_direct=unsupported
8561      fi
8562      ;;
8563
8564    aix4* | aix5*)
8565      if test "$host_cpu" = ia64; then
8566        # On IA64, the linker does run time linking by default, so we don't
8567        # have to do anything special.
8568        aix_use_runtimelinking=no
8569        exp_sym_flag='-Bexport'
8570        no_entry_flag=""
8571      else
8572        # If we're using GNU nm, then we don't want the "-C" option.
8573        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8574        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8575          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'
8576        else
8577          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'
8578        fi
8579        aix_use_runtimelinking=no
8580
8581        # Test if we are trying to use run time linking or normal
8582        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8583        # need to do runtime linking.
8584        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8585          for ld_flag in $LDFLAGS; do
8586          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8587            aix_use_runtimelinking=yes
8588            break
8589          fi
8590          done
8591          ;;
8592        esac
8593
8594        exp_sym_flag='-bexport'
8595        no_entry_flag='-bnoentry'
8596      fi
8597
8598      # When large executables or shared objects are built, AIX ld can
8599      # have problems creating the table of contents.  If linking a library
8600      # or program results in "error TOC overflow" add -mminimal-toc to
8601      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8602      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8603
8604      archive_cmds=''
8605      hardcode_direct=yes
8606      hardcode_libdir_separator=':'
8607      link_all_deplibs=yes
8608
8609      if test "$GCC" = yes; then
8610        case $host_os in aix4.[012]|aix4.[012].*)
8611        # We only want to do this on AIX 4.2 and lower, the check
8612        # below for broken collect2 doesn't work under 4.3+
8613          collect2name=`${CC} -print-prog-name=collect2`
8614          if test -f "$collect2name" && \
8615           strings "$collect2name" | grep resolve_lib_name >/dev/null
8616          then
8617          # We have reworked collect2
8618          hardcode_direct=yes
8619          else
8620          # We have old collect2
8621          hardcode_direct=unsupported
8622          # It fails to find uninstalled libraries when the uninstalled
8623          # path is not listed in the libpath.  Setting hardcode_minus_L
8624          # to unsupported forces relinking
8625          hardcode_minus_L=yes
8626          hardcode_libdir_flag_spec='-L$libdir'
8627          hardcode_libdir_separator=
8628          fi
8629          ;;
8630        esac
8631        shared_flag='-shared'
8632        if test "$aix_use_runtimelinking" = yes; then
8633          shared_flag="$shared_flag "'${wl}-G'
8634        fi
8635      else
8636        # not using gcc
8637        if test "$host_cpu" = ia64; then
8638        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8639        # chokes on -Wl,-G. The following line is correct:
8640          shared_flag='-G'
8641        else
8642          if test "$aix_use_runtimelinking" = yes; then
8643            shared_flag='${wl}-G'
8644          else
8645            shared_flag='${wl}-bM:SRE'
8646          fi
8647        fi
8648      fi
8649
8650      # It seems that -bexpall does not export symbols beginning with
8651      # underscore (_), so it is better to generate a list of symbols to export.
8652      always_export_symbols=yes
8653      if test "$aix_use_runtimelinking" = yes; then
8654        # Warning - without using the other runtime loading flags (-brtl),
8655        # -berok will link without error, but may produce a broken library.
8656        allow_undefined_flag='-berok'
8657       # Determine the default libpath from the value encoded in an empty executable.
8658       cat >conftest.$ac_ext <<_ACEOF
8659/* confdefs.h.  */
8660_ACEOF
8661cat confdefs.h >>conftest.$ac_ext
8662cat >>conftest.$ac_ext <<_ACEOF
8663/* end confdefs.h.  */
8664
8665int
8666main ()
8667{
8668
8669  ;
8670  return 0;
8671}
8672_ACEOF
8673rm -f conftest.$ac_objext conftest$ac_exeext
8674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675  (eval $ac_link) 2>conftest.er1
8676  ac_status=$?
8677  grep -v '^ *+' conftest.er1 >conftest.err
8678  rm -f conftest.er1
8679  cat conftest.err >&5
8680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681  (exit $ac_status); } &&
8682         { ac_try='test -z "$ac_c_werror_flag"
8683                         || test ! -s conftest.err'
8684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685  (eval $ac_try) 2>&5
8686  ac_status=$?
8687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688  (exit $ac_status); }; } &&
8689         { ac_try='test -s conftest$ac_exeext'
8690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691  (eval $ac_try) 2>&5
8692  ac_status=$?
8693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694  (exit $ac_status); }; }; then
8695
8696aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8697}'`
8698# Check for a 64-bit object if we didn't find anything.
8699if 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; }
8700}'`; fi
8701else
8702  echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705fi
8706rm -f conftest.err conftest.$ac_objext \
8707      conftest$ac_exeext conftest.$ac_ext
8708if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8709
8710       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8711        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"
8712       else
8713        if test "$host_cpu" = ia64; then
8714          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8715          allow_undefined_flag="-z nodefs"
8716          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"
8717        else
8718         # Determine the default libpath from the value encoded in an empty executable.
8719         cat >conftest.$ac_ext <<_ACEOF
8720/* confdefs.h.  */
8721_ACEOF
8722cat confdefs.h >>conftest.$ac_ext
8723cat >>conftest.$ac_ext <<_ACEOF
8724/* end confdefs.h.  */
8725
8726int
8727main ()
8728{
8729
8730  ;
8731  return 0;
8732}
8733_ACEOF
8734rm -f conftest.$ac_objext conftest$ac_exeext
8735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8736  (eval $ac_link) 2>conftest.er1
8737  ac_status=$?
8738  grep -v '^ *+' conftest.er1 >conftest.err
8739  rm -f conftest.er1
8740  cat conftest.err >&5
8741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742  (exit $ac_status); } &&
8743         { ac_try='test -z "$ac_c_werror_flag"
8744                         || test ! -s conftest.err'
8745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746  (eval $ac_try) 2>&5
8747  ac_status=$?
8748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749  (exit $ac_status); }; } &&
8750         { ac_try='test -s conftest$ac_exeext'
8751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752  (eval $ac_try) 2>&5
8753  ac_status=$?
8754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755  (exit $ac_status); }; }; then
8756
8757aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8758}'`
8759# Check for a 64-bit object if we didn't find anything.
8760if 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; }
8761}'`; fi
8762else
8763  echo "$as_me: failed program was:" >&5
8764sed 's/^/| /' conftest.$ac_ext >&5
8765
8766fi
8767rm -f conftest.err conftest.$ac_objext \
8768      conftest$ac_exeext conftest.$ac_ext
8769if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8770
8771         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8772          # Warning - without using the other run time loading flags,
8773          # -berok will link without error, but may produce a broken library.
8774          no_undefined_flag=' ${wl}-bernotok'
8775          allow_undefined_flag=' ${wl}-berok'
8776          # Exported symbols can be pulled into shared objects from archives
8777          whole_archive_flag_spec='$convenience'
8778          archive_cmds_need_lc=yes
8779          # This is similar to how AIX traditionally builds its shared libraries.
8780          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'
8781        fi
8782      fi
8783      ;;
8784
8785    amigaos*)
8786      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)'
8787      hardcode_libdir_flag_spec='-L$libdir'
8788      hardcode_minus_L=yes
8789      # see comment about different semantics on the GNU ld section
8790      ld_shlibs=no
8791      ;;
8792
8793    bsdi[45]*)
8794      export_dynamic_flag_spec=-rdynamic
8795      ;;
8796
8797    cygwin* | mingw* | pw32*)
8798      # When not using gcc, we currently assume that we are using
8799      # Microsoft Visual C++.
8800      # hardcode_libdir_flag_spec is actually meaningless, as there is
8801      # no search path for DLLs.
8802      hardcode_libdir_flag_spec=' '
8803      allow_undefined_flag=unsupported
8804      # Tell ltmain to make .lib files, not .a files.
8805      libext=lib
8806      # Tell ltmain to make .dll files, not .so files.
8807      shrext_cmds=".dll"
8808      # FIXME: Setting linknames here is a bad hack.
8809      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8810      # The linker will automatically build a .lib file if we build a DLL.
8811      old_archive_From_new_cmds='true'
8812      # FIXME: Should let the user specify the lib program.
8813      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8814      fix_srcfile_path='`cygpath -w "$srcfile"`'
8815      enable_shared_with_static_runtimes=yes
8816      ;;
8817
8818    darwin* | rhapsody*)
8819      case $host_os in
8820        rhapsody* | darwin1.[012])
8821         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8822         ;;
8823       *) # Darwin 1.3 on
8824         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8825           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8826         else
8827           case ${MACOSX_DEPLOYMENT_TARGET} in
8828             10.[012])
8829               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8830               ;;
8831             10.*)
8832               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8833               ;;
8834           esac
8835         fi
8836         ;;
8837      esac
8838      archive_cmds_need_lc=no
8839      hardcode_direct=no
8840      hardcode_automatic=yes
8841      hardcode_shlibpath_var=unsupported
8842      whole_archive_flag_spec=''
8843      link_all_deplibs=yes
8844    if test "$GCC" = yes ; then
8845        output_verbose_link_cmd='echo'
8846        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8847      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8848      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8849      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}'
8850      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}'
8851    else
8852      case $cc_basename in
8853        xlc*)
8854         output_verbose_link_cmd='echo'
8855         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8856         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8857          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8858         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}'
8859          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}'
8860          ;;
8861       *)
8862         ld_shlibs=no
8863          ;;
8864      esac
8865    fi
8866      ;;
8867
8868    dgux*)
8869      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8870      hardcode_libdir_flag_spec='-L$libdir'
8871      hardcode_shlibpath_var=no
8872      ;;
8873
8874    freebsd1*)
8875      ld_shlibs=no
8876      ;;
8877
8878    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8879    # support.  Future versions do this automatically, but an explicit c++rt0.o
8880    # does not break anything, and helps significantly (at the cost of a little
8881    # extra space).
8882    freebsd2.2*)
8883      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8884      hardcode_libdir_flag_spec='-R$libdir'
8885      hardcode_direct=yes
8886      hardcode_shlibpath_var=no
8887      ;;
8888
8889    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8890    freebsd2*)
8891      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8892      hardcode_direct=yes
8893      hardcode_minus_L=yes
8894      hardcode_shlibpath_var=no
8895      ;;
8896
8897    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8898    freebsd* | kfreebsd*-gnu | dragonfly*)
8899      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8900      hardcode_libdir_flag_spec='-R$libdir'
8901      hardcode_direct=yes
8902      hardcode_shlibpath_var=no
8903      ;;
8904
8905    hpux9*)
8906      if test "$GCC" = yes; then
8907        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'
8908      else
8909        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'
8910      fi
8911      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8912      hardcode_libdir_separator=:
8913      hardcode_direct=yes
8914
8915      # hardcode_minus_L: Not really in the search PATH,
8916      # but as the default location of the library.
8917      hardcode_minus_L=yes
8918      export_dynamic_flag_spec='${wl}-E'
8919      ;;
8920
8921    hpux10*)
8922      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8923        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8924      else
8925        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8926      fi
8927      if test "$with_gnu_ld" = no; then
8928        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8929        hardcode_libdir_separator=:
8930
8931        hardcode_direct=yes
8932        export_dynamic_flag_spec='${wl}-E'
8933
8934        # hardcode_minus_L: Not really in the search PATH,
8935        # but as the default location of the library.
8936        hardcode_minus_L=yes
8937      fi
8938      ;;
8939
8940    hpux11*)
8941      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8942        case $host_cpu in
8943        hppa*64*)
8944          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8945          ;;
8946        ia64*)
8947          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8948          ;;
8949        *)
8950          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8951          ;;
8952        esac
8953      else
8954        case $host_cpu in
8955        hppa*64*)
8956          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957          ;;
8958        ia64*)
8959          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8960          ;;
8961        *)
8962          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8963          ;;
8964        esac
8965      fi
8966      if test "$with_gnu_ld" = no; then
8967        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8968        hardcode_libdir_separator=:
8969
8970        case $host_cpu in
8971        hppa*64*|ia64*)
8972          hardcode_libdir_flag_spec_ld='+b $libdir'
8973          hardcode_direct=no
8974          hardcode_shlibpath_var=no
8975          ;;
8976        *)
8977          hardcode_direct=yes
8978          export_dynamic_flag_spec='${wl}-E'
8979
8980          # hardcode_minus_L: Not really in the search PATH,
8981          # but as the default location of the library.
8982          hardcode_minus_L=yes
8983          ;;
8984        esac
8985      fi
8986      ;;
8987
8988    irix5* | irix6* | nonstopux*)
8989      if test "$GCC" = yes; then
8990        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'
8991      else
8992        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'
8993        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8994      fi
8995      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8996      hardcode_libdir_separator=:
8997      link_all_deplibs=yes
8998      ;;
8999
9000    netbsd*)
9001      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9002        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9003      else
9004        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9005      fi
9006      hardcode_libdir_flag_spec='-R$libdir'
9007      hardcode_direct=yes
9008      hardcode_shlibpath_var=no
9009      ;;
9010
9011    newsos6)
9012      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013      hardcode_direct=yes
9014      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015      hardcode_libdir_separator=:
9016      hardcode_shlibpath_var=no
9017      ;;
9018
9019    openbsd*)
9020      hardcode_direct=yes
9021      hardcode_shlibpath_var=no
9022      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9023        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9024        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9025        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9026        export_dynamic_flag_spec='${wl}-E'
9027      else
9028       case $host_os in
9029         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9030           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9031           hardcode_libdir_flag_spec='-R$libdir'
9032           ;;
9033         *)
9034           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9035           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9036           ;;
9037       esac
9038      fi
9039      ;;
9040
9041    os2*)
9042      hardcode_libdir_flag_spec='-L$libdir'
9043      hardcode_minus_L=yes
9044      allow_undefined_flag=unsupported
9045      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'
9046      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9047      ;;
9048
9049    osf3*)
9050      if test "$GCC" = yes; then
9051        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9052        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'
9053      else
9054        allow_undefined_flag=' -expect_unresolved \*'
9055        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'
9056      fi
9057      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9058      hardcode_libdir_separator=:
9059      ;;
9060
9061    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9062      if test "$GCC" = yes; then
9063        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9064        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'
9065        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9066      else
9067        allow_undefined_flag=' -expect_unresolved \*'
9068        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'
9069        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9070        $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'
9071
9072        # Both c and cxx compiler support -rpath directly
9073        hardcode_libdir_flag_spec='-rpath $libdir'
9074      fi
9075      hardcode_libdir_separator=:
9076      ;;
9077
9078    solaris*)
9079      no_undefined_flag=' -z text'
9080      if test "$GCC" = yes; then
9081        wlarc='${wl}'
9082        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9083        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9084          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9085      else
9086        wlarc=''
9087        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9089        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9090      fi
9091      hardcode_libdir_flag_spec='-R$libdir'
9092      hardcode_shlibpath_var=no
9093      case $host_os in
9094      solaris2.[0-5] | solaris2.[0-5].*) ;;
9095      *)
9096        # The compiler driver will combine linker options so we
9097        # cannot just pass the convience library names through
9098        # without $wl, iff we do not link with $LD.
9099        # Luckily, gcc supports the same syntax we need for Sun Studio.
9100        # Supported since Solaris 2.6 (maybe 2.5.1?)
9101        case $wlarc in
9102        '')
9103          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9104        *)
9105          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' ;;
9106        esac ;;
9107      esac
9108      link_all_deplibs=yes
9109      ;;
9110
9111    sunos4*)
9112      if test "x$host_vendor" = xsequent; then
9113        # Use $CC to link under sequent, because it throws in some extra .o
9114        # files that make .init and .fini sections work.
9115        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9116      else
9117        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9118      fi
9119      hardcode_libdir_flag_spec='-L$libdir'
9120      hardcode_direct=yes
9121      hardcode_minus_L=yes
9122      hardcode_shlibpath_var=no
9123      ;;
9124
9125    sysv4)
9126      case $host_vendor in
9127        sni)
9128          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9129          hardcode_direct=yes # is this really true???
9130        ;;
9131        siemens)
9132          ## LD is ld it makes a PLAMLIB
9133          ## CC just makes a GrossModule.
9134          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9135          reload_cmds='$CC -r -o $output$reload_objs'
9136          hardcode_direct=no
9137        ;;
9138        motorola)
9139          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9141        ;;
9142      esac
9143      runpath_var='LD_RUN_PATH'
9144      hardcode_shlibpath_var=no
9145      ;;
9146
9147    sysv4.3*)
9148      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9149      hardcode_shlibpath_var=no
9150      export_dynamic_flag_spec='-Bexport'
9151      ;;
9152
9153    sysv4*MP*)
9154      if test -d /usr/nec; then
9155        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9156        hardcode_shlibpath_var=no
9157        runpath_var=LD_RUN_PATH
9158        hardcode_runpath_var=yes
9159        ld_shlibs=yes
9160      fi
9161      ;;
9162
9163    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9164      no_undefined_flag='${wl}-z,text'
9165      archive_cmds_need_lc=no
9166      hardcode_shlibpath_var=no
9167      runpath_var='LD_RUN_PATH'
9168
9169      if test "$GCC" = yes; then
9170        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9171        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9172      else
9173        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9174        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9175      fi
9176      ;;
9177
9178    sysv5* | sco3.2v5* | sco5v6*)
9179      # Note: We can NOT use -z defs as we might desire, because we do not
9180      # link with -lc, and that would cause any symbols used from libc to
9181      # always be unresolved, which means just about no library would
9182      # ever link correctly.  If we're not using GNU ld we use -z text
9183      # though, which does catch some bad symbols but isn't as heavy-handed
9184      # as -z defs.
9185      no_undefined_flag='${wl}-z,text'
9186      allow_undefined_flag='${wl}-z,nodefs'
9187      archive_cmds_need_lc=no
9188      hardcode_shlibpath_var=no
9189      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9190      hardcode_libdir_separator=':'
9191      link_all_deplibs=yes
9192      export_dynamic_flag_spec='${wl}-Bexport'
9193      runpath_var='LD_RUN_PATH'
9194
9195      if test "$GCC" = yes; then
9196        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9197        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9198      else
9199        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9200        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9201      fi
9202      ;;
9203
9204    uts4*)
9205      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9206      hardcode_libdir_flag_spec='-L$libdir'
9207      hardcode_shlibpath_var=no
9208      ;;
9209
9210    *)
9211      ld_shlibs=no
9212      ;;
9213    esac
9214  fi
9215
9216echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9217echo "${ECHO_T}$ld_shlibs" >&6
9218test "$ld_shlibs" = no && can_build_shared=no
9219
9220#
9221# Do we need to explicitly link libc?
9222#
9223case "x$archive_cmds_need_lc" in
9224x|xyes)
9225  # Assume -lc should be added
9226  archive_cmds_need_lc=yes
9227
9228  if test "$enable_shared" = yes && test "$GCC" = yes; then
9229    case $archive_cmds in
9230    *'~'*)
9231      # FIXME: we may have to deal with multi-command sequences.
9232      ;;
9233    '$CC '*)
9234      # Test whether the compiler implicitly links with -lc since on some
9235      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9236      # to ld, don't add -lc before -lgcc.
9237      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9238echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9239      $rm conftest*
9240      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9241
9242      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9243  (eval $ac_compile) 2>&5
9244  ac_status=$?
9245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246  (exit $ac_status); } 2>conftest.err; then
9247        soname=conftest
9248        lib=conftest
9249        libobjs=conftest.$ac_objext
9250        deplibs=
9251        wl=$lt_prog_compiler_wl
9252        pic_flag=$lt_prog_compiler_pic
9253        compiler_flags=-v
9254        linker_flags=-v
9255        verstring=
9256        output_objdir=.
9257        libname=conftest
9258        lt_save_allow_undefined_flag=$allow_undefined_flag
9259        allow_undefined_flag=
9260        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9261  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9262  ac_status=$?
9263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264  (exit $ac_status); }
9265        then
9266          archive_cmds_need_lc=no
9267        else
9268          archive_cmds_need_lc=yes
9269        fi
9270        allow_undefined_flag=$lt_save_allow_undefined_flag
9271      else
9272        cat conftest.err 1>&5
9273      fi
9274      $rm conftest*
9275      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9276echo "${ECHO_T}$archive_cmds_need_lc" >&6
9277      ;;
9278    esac
9279  fi
9280  ;;
9281esac
9282
9283echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9284echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9285library_names_spec=
9286libname_spec='lib$name'
9287soname_spec=
9288shrext_cmds=".so"
9289postinstall_cmds=
9290postuninstall_cmds=
9291finish_cmds=
9292finish_eval=
9293shlibpath_var=
9294shlibpath_overrides_runpath=unknown
9295version_type=none
9296dynamic_linker="$host_os ld.so"
9297sys_lib_dlsearch_path_spec="/lib /usr/lib"
9298if test "$GCC" = yes; then
9299  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9300  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9301    # if the path contains ";" then we assume it to be the separator
9302    # otherwise default to the standard path separator (i.e. ":") - it is
9303    # assumed that no part of a normal pathname contains ";" but that should
9304    # okay in the real world where ";" in dirpaths is itself problematic.
9305    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9306  else
9307    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9308  fi
9309else
9310  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9311fi
9312need_lib_prefix=unknown
9313hardcode_into_libs=no
9314
9315# when you set need_version to no, make sure it does not cause -set_version
9316# flags to be left without arguments
9317need_version=unknown
9318
9319case $host_os in
9320aix3*)
9321  version_type=linux
9322  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9323  shlibpath_var=LIBPATH
9324
9325  # AIX 3 has no versioning support, so we append a major version to the name.
9326  soname_spec='${libname}${release}${shared_ext}$major'
9327  ;;
9328
9329aix4* | aix5*)
9330  version_type=linux
9331  need_lib_prefix=no
9332  need_version=no
9333  hardcode_into_libs=yes
9334  if test "$host_cpu" = ia64; then
9335    # AIX 5 supports IA64
9336    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9337    shlibpath_var=LD_LIBRARY_PATH
9338  else
9339    # With GCC up to 2.95.x, collect2 would create an import file
9340    # for dependence libraries.  The import file would start with
9341    # the line `#! .'.  This would cause the generated library to
9342    # depend on `.', always an invalid library.  This was fixed in
9343    # development snapshots of GCC prior to 3.0.
9344    case $host_os in
9345      aix4 | aix4.[01] | aix4.[01].*)
9346      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9347           echo ' yes '
9348           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9349        :
9350      else
9351        can_build_shared=no
9352      fi
9353      ;;
9354    esac
9355    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9356    # soname into executable. Probably we can add versioning support to
9357    # collect2, so additional links can be useful in future.
9358    if test "$aix_use_runtimelinking" = yes; then
9359      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9360      # instead of lib<name>.a to let people know that these are not
9361      # typical AIX shared libraries.
9362      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363    else
9364      # We preserve .a as extension for shared libraries through AIX4.2
9365      # and later when we are not doing run time linking.
9366      library_names_spec='${libname}${release}.a $libname.a'
9367      soname_spec='${libname}${release}${shared_ext}$major'
9368    fi
9369    shlibpath_var=LIBPATH
9370  fi
9371  ;;
9372
9373amigaos*)
9374  library_names_spec='$libname.ixlibrary $libname.a'
9375  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9376  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'
9377  ;;
9378
9379beos*)
9380  library_names_spec='${libname}${shared_ext}'
9381  dynamic_linker="$host_os ld.so"
9382  shlibpath_var=LIBRARY_PATH
9383  ;;
9384
9385bsdi[45]*)
9386  version_type=linux
9387  need_version=no
9388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389  soname_spec='${libname}${release}${shared_ext}$major'
9390  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9391  shlibpath_var=LD_LIBRARY_PATH
9392  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9393  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9394  # the default ld.so.conf also contains /usr/contrib/lib and
9395  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9396  # libtool to hard-code these into programs
9397  ;;
9398
9399cygwin* | mingw* | pw32*)
9400  version_type=windows
9401  shrext_cmds=".dll"
9402  need_version=no
9403  need_lib_prefix=no
9404
9405  case $GCC,$host_os in
9406  yes,cygwin* | yes,mingw* | yes,pw32*)
9407    library_names_spec='$libname.dll.a'
9408    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9409    postinstall_cmds='base_file=`basename \${file}`~
9410      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9411      dldir=$destdir/`dirname \$dlpath`~
9412      test -d \$dldir || mkdir -p \$dldir~
9413      $install_prog $dir/$dlname \$dldir/$dlname~
9414      chmod a+x \$dldir/$dlname'
9415    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9416      dlpath=$dir/\$dldll~
9417       $rm \$dlpath'
9418    shlibpath_overrides_runpath=yes
9419
9420    case $host_os in
9421    cygwin*)
9422      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9423      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9424      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9425      ;;
9426    mingw*)
9427      # MinGW DLLs use traditional 'lib' prefix
9428      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9429      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9430      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9431        # It is most probably a Windows format PATH printed by
9432        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9433        # path with ; separators, and with drive letters. We can handle the
9434        # drive letters (cygwin fileutils understands them), so leave them,
9435        # especially as we might pass files found there to a mingw objdump,
9436        # which wouldn't understand a cygwinified path. Ahh.
9437        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9438      else
9439        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9440      fi
9441      ;;
9442    pw32*)
9443      # pw32 DLLs use 'pw' prefix rather than 'lib'
9444      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9445      ;;
9446    esac
9447    ;;
9448
9449  *)
9450    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9451    ;;
9452  esac
9453  dynamic_linker='Win32 ld.exe'
9454  # FIXME: first we should search . and the directory the executable is in
9455  shlibpath_var=PATH
9456  ;;
9457
9458darwin* | rhapsody*)
9459  dynamic_linker="$host_os dyld"
9460  version_type=darwin
9461  need_lib_prefix=no
9462  need_version=no
9463  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9464  soname_spec='${libname}${release}${major}$shared_ext'
9465  shlibpath_overrides_runpath=yes
9466  shlibpath_var=DYLD_LIBRARY_PATH
9467  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9468  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9469  if test "$GCC" = yes; then
9470    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"`
9471  else
9472    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9473  fi
9474  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9475  ;;
9476
9477dgux*)
9478  version_type=linux
9479  need_lib_prefix=no
9480  need_version=no
9481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9482  soname_spec='${libname}${release}${shared_ext}$major'
9483  shlibpath_var=LD_LIBRARY_PATH
9484  ;;
9485
9486freebsd1*)
9487  dynamic_linker=no
9488  ;;
9489
9490kfreebsd*-gnu)
9491  version_type=linux
9492  need_lib_prefix=no
9493  need_version=no
9494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9495  soname_spec='${libname}${release}${shared_ext}$major'
9496  shlibpath_var=LD_LIBRARY_PATH
9497  shlibpath_overrides_runpath=no
9498  hardcode_into_libs=yes
9499  dynamic_linker='GNU ld.so'
9500  ;;
9501
9502freebsd* | dragonfly*)
9503  # DragonFly does not have aout.  When/if they implement a new
9504  # versioning mechanism, adjust this.
9505  if test -x /usr/bin/objformat; then
9506    objformat=`/usr/bin/objformat`
9507  else
9508    case $host_os in
9509    freebsd[123]*) objformat=aout ;;
9510    *) objformat=elf ;;
9511    esac
9512  fi
9513  version_type=freebsd-$objformat
9514  case $version_type in
9515    freebsd-elf*)
9516      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9517      need_version=no
9518      need_lib_prefix=no
9519      ;;
9520    freebsd-*)
9521      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9522      need_version=yes
9523      ;;
9524  esac
9525  shlibpath_var=LD_LIBRARY_PATH
9526  case $host_os in
9527  freebsd2*)
9528    shlibpath_overrides_runpath=yes
9529    ;;
9530  freebsd3.[01]* | freebsdelf3.[01]*)
9531    shlibpath_overrides_runpath=yes
9532    hardcode_into_libs=yes
9533    ;;
9534  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9535  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9536    shlibpath_overrides_runpath=no
9537    hardcode_into_libs=yes
9538    ;;
9539  freebsd*) # from 4.6 on
9540    shlibpath_overrides_runpath=yes
9541    hardcode_into_libs=yes
9542    ;;
9543  esac
9544  ;;
9545
9546gnu*)
9547  version_type=linux
9548  need_lib_prefix=no
9549  need_version=no
9550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9551  soname_spec='${libname}${release}${shared_ext}$major'
9552  shlibpath_var=LD_LIBRARY_PATH
9553  hardcode_into_libs=yes
9554  ;;
9555
9556hpux9* | hpux10* | hpux11*)
9557  # Give a soname corresponding to the major version so that dld.sl refuses to
9558  # link against other versions.
9559  version_type=sunos
9560  need_lib_prefix=no
9561  need_version=no
9562  case $host_cpu in
9563  ia64*)
9564    shrext_cmds='.so'
9565    hardcode_into_libs=yes
9566    dynamic_linker="$host_os dld.so"
9567    shlibpath_var=LD_LIBRARY_PATH
9568    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9569    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570    soname_spec='${libname}${release}${shared_ext}$major'
9571    if test "X$HPUX_IA64_MODE" = X32; then
9572      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9573    else
9574      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9575    fi
9576    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9577    ;;
9578   hppa*64*)
9579     shrext_cmds='.sl'
9580     hardcode_into_libs=yes
9581     dynamic_linker="$host_os dld.sl"
9582     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9583     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9584     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585     soname_spec='${libname}${release}${shared_ext}$major'
9586     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9587     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9588     ;;
9589   *)
9590    shrext_cmds='.sl'
9591    dynamic_linker="$host_os dld.sl"
9592    shlibpath_var=SHLIB_PATH
9593    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9594    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9595    soname_spec='${libname}${release}${shared_ext}$major'
9596    ;;
9597  esac
9598  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9599  postinstall_cmds='chmod 555 $lib'
9600  ;;
9601
9602interix3*)
9603  version_type=linux
9604  need_lib_prefix=no
9605  need_version=no
9606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9607  soname_spec='${libname}${release}${shared_ext}$major'
9608  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9609  shlibpath_var=LD_LIBRARY_PATH
9610  shlibpath_overrides_runpath=no
9611  hardcode_into_libs=yes
9612  ;;
9613
9614irix5* | irix6* | nonstopux*)
9615  case $host_os in
9616    nonstopux*) version_type=nonstopux ;;
9617    *)
9618        if test "$lt_cv_prog_gnu_ld" = yes; then
9619                version_type=linux
9620        else
9621                version_type=irix
9622        fi ;;
9623  esac
9624  need_lib_prefix=no
9625  need_version=no
9626  soname_spec='${libname}${release}${shared_ext}$major'
9627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9628  case $host_os in
9629  irix5* | nonstopux*)
9630    libsuff= shlibsuff=
9631    ;;
9632  *)
9633    case $LD in # libtool.m4 will add one of these switches to LD
9634    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9635      libsuff= shlibsuff= libmagic=32-bit;;
9636    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9637      libsuff=32 shlibsuff=N32 libmagic=N32;;
9638    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9639      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9640    *) libsuff= shlibsuff= libmagic=never-match;;
9641    esac
9642    ;;
9643  esac
9644  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9645  shlibpath_overrides_runpath=no
9646  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9647  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9648  hardcode_into_libs=yes
9649  ;;
9650
9651# No shared lib support for Linux oldld, aout, or coff.
9652linux*oldld* | linux*aout* | linux*coff*)
9653  dynamic_linker=no
9654  ;;
9655
9656# This must be Linux ELF.
9657linux*)
9658  version_type=linux
9659  need_lib_prefix=no
9660  need_version=no
9661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662  soname_spec='${libname}${release}${shared_ext}$major'
9663  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9664  shlibpath_var=LD_LIBRARY_PATH
9665  shlibpath_overrides_runpath=no
9666  # This implies no fast_install, which is unacceptable.
9667  # Some rework will be needed to allow for fast_install
9668  # before this can be enabled.
9669  hardcode_into_libs=yes
9670
9671  # Append ld.so.conf contents to the search path
9672  if test -f /etc/ld.so.conf; then
9673    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' ' '`
9674    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9675  fi
9676
9677  # We used to test for /lib/ld.so.1 and disable shared libraries on
9678  # powerpc, because MkLinux only supported shared libraries with the
9679  # GNU dynamic linker.  Since this was broken with cross compilers,
9680  # most powerpc-linux boxes support dynamic linking these days and
9681  # people can always --disable-shared, the test was removed, and we
9682  # assume the GNU/Linux dynamic linker is in use.
9683  dynamic_linker='GNU/Linux ld.so'
9684  ;;
9685
9686knetbsd*-gnu)
9687  version_type=linux
9688  need_lib_prefix=no
9689  need_version=no
9690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9691  soname_spec='${libname}${release}${shared_ext}$major'
9692  shlibpath_var=LD_LIBRARY_PATH
9693  shlibpath_overrides_runpath=no
9694  hardcode_into_libs=yes
9695  dynamic_linker='GNU ld.so'
9696  ;;
9697
9698netbsd*)
9699  version_type=sunos
9700  need_lib_prefix=no
9701  need_version=no
9702  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9703    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9704    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9705    dynamic_linker='NetBSD (a.out) ld.so'
9706  else
9707    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9708    soname_spec='${libname}${release}${shared_ext}$major'
9709    dynamic_linker='NetBSD ld.elf_so'
9710  fi
9711  shlibpath_var=LD_LIBRARY_PATH
9712  shlibpath_overrides_runpath=yes
9713  hardcode_into_libs=yes
9714  ;;
9715
9716newsos6)
9717  version_type=linux
9718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9719  shlibpath_var=LD_LIBRARY_PATH
9720  shlibpath_overrides_runpath=yes
9721  ;;
9722
9723nto-qnx*)
9724  version_type=linux
9725  need_lib_prefix=no
9726  need_version=no
9727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728  soname_spec='${libname}${release}${shared_ext}$major'
9729  shlibpath_var=LD_LIBRARY_PATH
9730  shlibpath_overrides_runpath=yes
9731  ;;
9732
9733openbsd*)
9734  version_type=sunos
9735  sys_lib_dlsearch_path_spec="/usr/lib"
9736  need_lib_prefix=no
9737  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9738  case $host_os in
9739    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9740    *)                         need_version=no  ;;
9741  esac
9742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9743  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9744  shlibpath_var=LD_LIBRARY_PATH
9745  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9746    case $host_os in
9747      openbsd2.[89] | openbsd2.[89].*)
9748        shlibpath_overrides_runpath=no
9749        ;;
9750      *)
9751        shlibpath_overrides_runpath=yes
9752        ;;
9753      esac
9754  else
9755    shlibpath_overrides_runpath=yes
9756  fi
9757  ;;
9758
9759os2*)
9760  libname_spec='$name'
9761  shrext_cmds=".dll"
9762  need_lib_prefix=no
9763  library_names_spec='$libname${shared_ext} $libname.a'
9764  dynamic_linker='OS/2 ld.exe'
9765  shlibpath_var=LIBPATH
9766  ;;
9767
9768osf3* | osf4* | osf5*)
9769  version_type=osf
9770  need_lib_prefix=no
9771  need_version=no
9772  soname_spec='${libname}${release}${shared_ext}$major'
9773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9774  shlibpath_var=LD_LIBRARY_PATH
9775  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9776  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9777  ;;
9778
9779solaris*)
9780  version_type=linux
9781  need_lib_prefix=no
9782  need_version=no
9783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784  soname_spec='${libname}${release}${shared_ext}$major'
9785  shlibpath_var=LD_LIBRARY_PATH
9786  shlibpath_overrides_runpath=yes
9787  hardcode_into_libs=yes
9788  # ldd complains unless libraries are executable
9789  postinstall_cmds='chmod +x $lib'
9790  ;;
9791
9792sunos4*)
9793  version_type=sunos
9794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9795  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9796  shlibpath_var=LD_LIBRARY_PATH
9797  shlibpath_overrides_runpath=yes
9798  if test "$with_gnu_ld" = yes; then
9799    need_lib_prefix=no
9800  fi
9801  need_version=yes
9802  ;;
9803
9804sysv4 | sysv4.3*)
9805  version_type=linux
9806  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807  soname_spec='${libname}${release}${shared_ext}$major'
9808  shlibpath_var=LD_LIBRARY_PATH
9809  case $host_vendor in
9810    sni)
9811      shlibpath_overrides_runpath=no
9812      need_lib_prefix=no
9813      export_dynamic_flag_spec='${wl}-Blargedynsym'
9814      runpath_var=LD_RUN_PATH
9815      ;;
9816    siemens)
9817      need_lib_prefix=no
9818      ;;
9819    motorola)
9820      need_lib_prefix=no
9821      need_version=no
9822      shlibpath_overrides_runpath=no
9823      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9824      ;;
9825  esac
9826  ;;
9827
9828sysv4*MP*)
9829  if test -d /usr/nec ;then
9830    version_type=linux
9831    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9832    soname_spec='$libname${shared_ext}.$major'
9833    shlibpath_var=LD_LIBRARY_PATH
9834  fi
9835  ;;
9836
9837sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9838  version_type=freebsd-elf
9839  need_lib_prefix=no
9840  need_version=no
9841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9842  soname_spec='${libname}${release}${shared_ext}$major'
9843  shlibpath_var=LD_LIBRARY_PATH
9844  hardcode_into_libs=yes
9845  if test "$with_gnu_ld" = yes; then
9846    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9847    shlibpath_overrides_runpath=no
9848  else
9849    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9850    shlibpath_overrides_runpath=yes
9851    case $host_os in
9852      sco3.2v5*)
9853        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9854        ;;
9855    esac
9856  fi
9857  sys_lib_dlsearch_path_spec='/usr/lib'
9858  ;;
9859
9860uts4*)
9861  version_type=linux
9862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863  soname_spec='${libname}${release}${shared_ext}$major'
9864  shlibpath_var=LD_LIBRARY_PATH
9865  ;;
9866
9867*)
9868  dynamic_linker=no
9869  ;;
9870esac
9871echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9872echo "${ECHO_T}$dynamic_linker" >&6
9873test "$dynamic_linker" = no && can_build_shared=no
9874
9875variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9876if test "$GCC" = yes; then
9877  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9878fi
9879
9880echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9881echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9882hardcode_action=
9883if test -n "$hardcode_libdir_flag_spec" || \
9884   test -n "$runpath_var" || \
9885   test "X$hardcode_automatic" = "Xyes" ; then
9886
9887  # We can hardcode non-existant directories.
9888  if test "$hardcode_direct" != no &&
9889     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9890     # have to relink, otherwise we might link with an installed library
9891     # when we should be linking with a yet-to-be-installed one
9892     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9893     test "$hardcode_minus_L" != no; then
9894    # Linking always hardcodes the temporary library directory.
9895    hardcode_action=relink
9896  else
9897    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9898    hardcode_action=immediate
9899  fi
9900else
9901  # We cannot hardcode anything, or else we can only hardcode existing
9902  # directories.
9903  hardcode_action=unsupported
9904fi
9905echo "$as_me:$LINENO: result: $hardcode_action" >&5
9906echo "${ECHO_T}$hardcode_action" >&6
9907
9908if test "$hardcode_action" = relink; then
9909  # Fast installation is not supported
9910  enable_fast_install=no
9911elif test "$shlibpath_overrides_runpath" = yes ||
9912     test "$enable_shared" = no; then
9913  # Fast installation is not necessary
9914  enable_fast_install=needless
9915fi
9916
9917striplib=
9918old_striplib=
9919echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9920echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9921if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9922  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9923  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9924  echo "$as_me:$LINENO: result: yes" >&5
9925echo "${ECHO_T}yes" >&6
9926else
9927# FIXME - insert some real tests, host_os isn't really good enough
9928  case $host_os in
9929   darwin*)
9930       if test -n "$STRIP" ; then
9931         striplib="$STRIP -x"
9932         echo "$as_me:$LINENO: result: yes" >&5
9933echo "${ECHO_T}yes" >&6
9934       else
9935  echo "$as_me:$LINENO: result: no" >&5
9936echo "${ECHO_T}no" >&6
9937fi
9938       ;;
9939   *)
9940  echo "$as_me:$LINENO: result: no" >&5
9941echo "${ECHO_T}no" >&6
9942    ;;
9943  esac
9944fi
9945
9946if test "x$enable_dlopen" != xyes; then
9947  enable_dlopen=unknown
9948  enable_dlopen_self=unknown
9949  enable_dlopen_self_static=unknown
9950else
9951  lt_cv_dlopen=no
9952  lt_cv_dlopen_libs=
9953
9954  case $host_os in
9955  beos*)
9956    lt_cv_dlopen="load_add_on"
9957    lt_cv_dlopen_libs=
9958    lt_cv_dlopen_self=yes
9959    ;;
9960
9961  mingw* | pw32*)
9962    lt_cv_dlopen="LoadLibrary"
9963    lt_cv_dlopen_libs=
9964   ;;
9965
9966  cygwin*)
9967    lt_cv_dlopen="dlopen"
9968    lt_cv_dlopen_libs=
9969   ;;
9970
9971  darwin*)
9972  # if libdl is installed we need to link against it
9973    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9974echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9975if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9976  echo $ECHO_N "(cached) $ECHO_C" >&6
9977else
9978  ac_check_lib_save_LIBS=$LIBS
9979LIBS="-ldl  $LIBS"
9980cat >conftest.$ac_ext <<_ACEOF
9981/* confdefs.h.  */
9982_ACEOF
9983cat confdefs.h >>conftest.$ac_ext
9984cat >>conftest.$ac_ext <<_ACEOF
9985/* end confdefs.h.  */
9986
9987/* Override any gcc2 internal prototype to avoid an error.  */
9988#ifdef __cplusplus
9989extern "C"
9990#endif
9991/* We use char because int might match the return type of a gcc2
9992   builtin and then its argument prototype would still apply.  */
9993char dlopen ();
9994int
9995main ()
9996{
9997dlopen ();
9998  ;
9999  return 0;
10000}
10001_ACEOF
10002rm -f conftest.$ac_objext conftest$ac_exeext
10003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004  (eval $ac_link) 2>conftest.er1
10005  ac_status=$?
10006  grep -v '^ *+' conftest.er1 >conftest.err
10007  rm -f conftest.er1
10008  cat conftest.err >&5
10009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010  (exit $ac_status); } &&
10011         { ac_try='test -z "$ac_c_werror_flag"
10012                         || test ! -s conftest.err'
10013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10014  (eval $ac_try) 2>&5
10015  ac_status=$?
10016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017  (exit $ac_status); }; } &&
10018         { ac_try='test -s conftest$ac_exeext'
10019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020  (eval $ac_try) 2>&5
10021  ac_status=$?
10022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023  (exit $ac_status); }; }; then
10024  ac_cv_lib_dl_dlopen=yes
10025else
10026  echo "$as_me: failed program was:" >&5
10027sed 's/^/| /' conftest.$ac_ext >&5
10028
10029ac_cv_lib_dl_dlopen=no
10030fi
10031rm -f conftest.err conftest.$ac_objext \
10032      conftest$ac_exeext conftest.$ac_ext
10033LIBS=$ac_check_lib_save_LIBS
10034fi
10035echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10036echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10037if test $ac_cv_lib_dl_dlopen = yes; then
10038  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10039else
10040
10041    lt_cv_dlopen="dyld"
10042    lt_cv_dlopen_libs=
10043    lt_cv_dlopen_self=yes
10044
10045fi
10046
10047   ;;
10048
10049  *)
10050    echo "$as_me:$LINENO: checking for shl_load" >&5
10051echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10052if test "${ac_cv_func_shl_load+set}" = set; then
10053  echo $ECHO_N "(cached) $ECHO_C" >&6
10054else
10055  cat >conftest.$ac_ext <<_ACEOF
10056/* confdefs.h.  */
10057_ACEOF
10058cat confdefs.h >>conftest.$ac_ext
10059cat >>conftest.$ac_ext <<_ACEOF
10060/* end confdefs.h.  */
10061/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10062   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10063#define shl_load innocuous_shl_load
10064
10065/* System header to define __stub macros and hopefully few prototypes,
10066    which can conflict with char shl_load (); below.
10067    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10068    <limits.h> exists even on freestanding compilers.  */
10069
10070#ifdef __STDC__
10071# include <limits.h>
10072#else
10073# include <assert.h>
10074#endif
10075
10076#undef shl_load
10077
10078/* Override any gcc2 internal prototype to avoid an error.  */
10079#ifdef __cplusplus
10080extern "C"
10081{
10082#endif
10083/* We use char because int might match the return type of a gcc2
10084   builtin and then its argument prototype would still apply.  */
10085char shl_load ();
10086/* The GNU C library defines this for functions which it implements
10087    to always fail with ENOSYS.  Some functions are actually named
10088    something starting with __ and the normal name is an alias.  */
10089#if defined (__stub_shl_load) || defined (__stub___shl_load)
10090choke me
10091#else
10092char (*f) () = shl_load;
10093#endif
10094#ifdef __cplusplus
10095}
10096#endif
10097
10098int
10099main ()
10100{
10101return f != shl_load;
10102  ;
10103  return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext conftest$ac_exeext
10107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108  (eval $ac_link) 2>conftest.er1
10109  ac_status=$?
10110  grep -v '^ *+' conftest.er1 >conftest.err
10111  rm -f conftest.er1
10112  cat conftest.err >&5
10113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114  (exit $ac_status); } &&
10115         { ac_try='test -z "$ac_c_werror_flag"
10116                         || test ! -s conftest.err'
10117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118  (eval $ac_try) 2>&5
10119  ac_status=$?
10120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121  (exit $ac_status); }; } &&
10122         { ac_try='test -s conftest$ac_exeext'
10123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124  (eval $ac_try) 2>&5
10125  ac_status=$?
10126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127  (exit $ac_status); }; }; then
10128  ac_cv_func_shl_load=yes
10129else
10130  echo "$as_me: failed program was:" >&5
10131sed 's/^/| /' conftest.$ac_ext >&5
10132
10133ac_cv_func_shl_load=no
10134fi
10135rm -f conftest.err conftest.$ac_objext \
10136      conftest$ac_exeext conftest.$ac_ext
10137fi
10138echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10139echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10140if test $ac_cv_func_shl_load = yes; then
10141  lt_cv_dlopen="shl_load"
10142else
10143  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10144echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10145if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10146  echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148  ac_check_lib_save_LIBS=$LIBS
10149LIBS="-ldld  $LIBS"
10150cat >conftest.$ac_ext <<_ACEOF
10151/* confdefs.h.  */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h.  */
10156
10157/* Override any gcc2 internal prototype to avoid an error.  */
10158#ifdef __cplusplus
10159extern "C"
10160#endif
10161/* We use char because int might match the return type of a gcc2
10162   builtin and then its argument prototype would still apply.  */
10163char shl_load ();
10164int
10165main ()
10166{
10167shl_load ();
10168  ;
10169  return 0;
10170}
10171_ACEOF
10172rm -f conftest.$ac_objext conftest$ac_exeext
10173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174  (eval $ac_link) 2>conftest.er1
10175  ac_status=$?
10176  grep -v '^ *+' conftest.er1 >conftest.err
10177  rm -f conftest.er1
10178  cat conftest.err >&5
10179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180  (exit $ac_status); } &&
10181         { ac_try='test -z "$ac_c_werror_flag"
10182                         || test ! -s conftest.err'
10183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184  (eval $ac_try) 2>&5
10185  ac_status=$?
10186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187  (exit $ac_status); }; } &&
10188         { ac_try='test -s conftest$ac_exeext'
10189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190  (eval $ac_try) 2>&5
10191  ac_status=$?
10192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193  (exit $ac_status); }; }; then
10194  ac_cv_lib_dld_shl_load=yes
10195else
10196  echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199ac_cv_lib_dld_shl_load=no
10200fi
10201rm -f conftest.err conftest.$ac_objext \
10202      conftest$ac_exeext conftest.$ac_ext
10203LIBS=$ac_check_lib_save_LIBS
10204fi
10205echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10206echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10207if test $ac_cv_lib_dld_shl_load = yes; then
10208  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10209else
10210  echo "$as_me:$LINENO: checking for dlopen" >&5
10211echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10212if test "${ac_cv_func_dlopen+set}" = set; then
10213  echo $ECHO_N "(cached) $ECHO_C" >&6
10214else
10215  cat >conftest.$ac_ext <<_ACEOF
10216/* confdefs.h.  */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
10220/* end confdefs.h.  */
10221/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10222   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10223#define dlopen innocuous_dlopen
10224
10225/* System header to define __stub macros and hopefully few prototypes,
10226    which can conflict with char dlopen (); below.
10227    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10228    <limits.h> exists even on freestanding compilers.  */
10229
10230#ifdef __STDC__
10231# include <limits.h>
10232#else
10233# include <assert.h>
10234#endif
10235
10236#undef dlopen
10237
10238/* Override any gcc2 internal prototype to avoid an error.  */
10239#ifdef __cplusplus
10240extern "C"
10241{
10242#endif
10243/* We use char because int might match the return type of a gcc2
10244   builtin and then its argument prototype would still apply.  */
10245char dlopen ();
10246/* The GNU C library defines this for functions which it implements
10247    to always fail with ENOSYS.  Some functions are actually named
10248    something starting with __ and the normal name is an alias.  */
10249#if defined (__stub_dlopen) || defined (__stub___dlopen)
10250choke me
10251#else
10252char (*f) () = dlopen;
10253#endif
10254#ifdef __cplusplus
10255}
10256#endif
10257
10258int
10259main ()
10260{
10261return f != dlopen;
10262  ;
10263  return 0;
10264}
10265_ACEOF
10266rm -f conftest.$ac_objext conftest$ac_exeext
10267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10268  (eval $ac_link) 2>conftest.er1
10269  ac_status=$?
10270  grep -v '^ *+' conftest.er1 >conftest.err
10271  rm -f conftest.er1
10272  cat conftest.err >&5
10273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274  (exit $ac_status); } &&
10275         { ac_try='test -z "$ac_c_werror_flag"
10276                         || test ! -s conftest.err'
10277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278  (eval $ac_try) 2>&5
10279  ac_status=$?
10280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281  (exit $ac_status); }; } &&
10282         { ac_try='test -s conftest$ac_exeext'
10283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284  (eval $ac_try) 2>&5
10285  ac_status=$?
10286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287  (exit $ac_status); }; }; then
10288  ac_cv_func_dlopen=yes
10289else
10290  echo "$as_me: failed program was:" >&5
10291sed 's/^/| /' conftest.$ac_ext >&5
10292
10293ac_cv_func_dlopen=no
10294fi
10295rm -f conftest.err conftest.$ac_objext \
10296      conftest$ac_exeext conftest.$ac_ext
10297fi
10298echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10299echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10300if test $ac_cv_func_dlopen = yes; then
10301  lt_cv_dlopen="dlopen"
10302else
10303  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10304echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10305if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10306  echo $ECHO_N "(cached) $ECHO_C" >&6
10307else
10308  ac_check_lib_save_LIBS=$LIBS
10309LIBS="-ldl  $LIBS"
10310cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h.  */
10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h.  */
10316
10317/* Override any gcc2 internal prototype to avoid an error.  */
10318#ifdef __cplusplus
10319extern "C"
10320#endif
10321/* We use char because int might match the return type of a gcc2
10322   builtin and then its argument prototype would still apply.  */
10323char dlopen ();
10324int
10325main ()
10326{
10327dlopen ();
10328  ;
10329  return 0;
10330}
10331_ACEOF
10332rm -f conftest.$ac_objext conftest$ac_exeext
10333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334  (eval $ac_link) 2>conftest.er1
10335  ac_status=$?
10336  grep -v '^ *+' conftest.er1 >conftest.err
10337  rm -f conftest.er1
10338  cat conftest.err >&5
10339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340  (exit $ac_status); } &&
10341         { ac_try='test -z "$ac_c_werror_flag"
10342                         || test ! -s conftest.err'
10343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344  (eval $ac_try) 2>&5
10345  ac_status=$?
10346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347  (exit $ac_status); }; } &&
10348         { ac_try='test -s conftest$ac_exeext'
10349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350  (eval $ac_try) 2>&5
10351  ac_status=$?
10352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353  (exit $ac_status); }; }; then
10354  ac_cv_lib_dl_dlopen=yes
10355else
10356  echo "$as_me: failed program was:" >&5
10357sed 's/^/| /' conftest.$ac_ext >&5
10358
10359ac_cv_lib_dl_dlopen=no
10360fi
10361rm -f conftest.err conftest.$ac_objext \
10362      conftest$ac_exeext conftest.$ac_ext
10363LIBS=$ac_check_lib_save_LIBS
10364fi
10365echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10366echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10367if test $ac_cv_lib_dl_dlopen = yes; then
10368  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10369else
10370  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10371echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10372if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10373  echo $ECHO_N "(cached) $ECHO_C" >&6
10374else
10375  ac_check_lib_save_LIBS=$LIBS
10376LIBS="-lsvld  $LIBS"
10377cat >conftest.$ac_ext <<_ACEOF
10378/* confdefs.h.  */
10379_ACEOF
10380cat confdefs.h >>conftest.$ac_ext
10381cat >>conftest.$ac_ext <<_ACEOF
10382/* end confdefs.h.  */
10383
10384/* Override any gcc2 internal prototype to avoid an error.  */
10385#ifdef __cplusplus
10386extern "C"
10387#endif
10388/* We use char because int might match the return type of a gcc2
10389   builtin and then its argument prototype would still apply.  */
10390char dlopen ();
10391int
10392main ()
10393{
10394dlopen ();
10395  ;
10396  return 0;
10397}
10398_ACEOF
10399rm -f conftest.$ac_objext conftest$ac_exeext
10400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10401  (eval $ac_link) 2>conftest.er1
10402  ac_status=$?
10403  grep -v '^ *+' conftest.er1 >conftest.err
10404  rm -f conftest.er1
10405  cat conftest.err >&5
10406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407  (exit $ac_status); } &&
10408         { ac_try='test -z "$ac_c_werror_flag"
10409                         || test ! -s conftest.err'
10410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411  (eval $ac_try) 2>&5
10412  ac_status=$?
10413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414  (exit $ac_status); }; } &&
10415         { ac_try='test -s conftest$ac_exeext'
10416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417  (eval $ac_try) 2>&5
10418  ac_status=$?
10419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420  (exit $ac_status); }; }; then
10421  ac_cv_lib_svld_dlopen=yes
10422else
10423  echo "$as_me: failed program was:" >&5
10424sed 's/^/| /' conftest.$ac_ext >&5
10425
10426ac_cv_lib_svld_dlopen=no
10427fi
10428rm -f conftest.err conftest.$ac_objext \
10429      conftest$ac_exeext conftest.$ac_ext
10430LIBS=$ac_check_lib_save_LIBS
10431fi
10432echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10433echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10434if test $ac_cv_lib_svld_dlopen = yes; then
10435  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10436else
10437  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10438echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10439if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10440  echo $ECHO_N "(cached) $ECHO_C" >&6
10441else
10442  ac_check_lib_save_LIBS=$LIBS
10443LIBS="-ldld  $LIBS"
10444cat >conftest.$ac_ext <<_ACEOF
10445/* confdefs.h.  */
10446_ACEOF
10447cat confdefs.h >>conftest.$ac_ext
10448cat >>conftest.$ac_ext <<_ACEOF
10449/* end confdefs.h.  */
10450
10451/* Override any gcc2 internal prototype to avoid an error.  */
10452#ifdef __cplusplus
10453extern "C"
10454#endif
10455/* We use char because int might match the return type of a gcc2
10456   builtin and then its argument prototype would still apply.  */
10457char dld_link ();
10458int
10459main ()
10460{
10461dld_link ();
10462  ;
10463  return 0;
10464}
10465_ACEOF
10466rm -f conftest.$ac_objext conftest$ac_exeext
10467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468  (eval $ac_link) 2>conftest.er1
10469  ac_status=$?
10470  grep -v '^ *+' conftest.er1 >conftest.err
10471  rm -f conftest.er1
10472  cat conftest.err >&5
10473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); } &&
10475         { ac_try='test -z "$ac_c_werror_flag"
10476                         || test ! -s conftest.err'
10477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478  (eval $ac_try) 2>&5
10479  ac_status=$?
10480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481  (exit $ac_status); }; } &&
10482         { ac_try='test -s conftest$ac_exeext'
10483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484  (eval $ac_try) 2>&5
10485  ac_status=$?
10486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487  (exit $ac_status); }; }; then
10488  ac_cv_lib_dld_dld_link=yes
10489else
10490  echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493ac_cv_lib_dld_dld_link=no
10494fi
10495rm -f conftest.err conftest.$ac_objext \
10496      conftest$ac_exeext conftest.$ac_ext
10497LIBS=$ac_check_lib_save_LIBS
10498fi
10499echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10500echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10501if test $ac_cv_lib_dld_dld_link = yes; then
10502  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10503fi
10504
10505
10506fi
10507
10508
10509fi
10510
10511
10512fi
10513
10514
10515fi
10516
10517
10518fi
10519
10520    ;;
10521  esac
10522
10523  if test "x$lt_cv_dlopen" != xno; then
10524    enable_dlopen=yes
10525  else
10526    enable_dlopen=no
10527  fi
10528
10529  case $lt_cv_dlopen in
10530  dlopen)
10531    save_CPPFLAGS="$CPPFLAGS"
10532    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10533
10534    save_LDFLAGS="$LDFLAGS"
10535    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10536
10537    save_LIBS="$LIBS"
10538    LIBS="$lt_cv_dlopen_libs $LIBS"
10539
10540    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10541echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10542if test "${lt_cv_dlopen_self+set}" = set; then
10543  echo $ECHO_N "(cached) $ECHO_C" >&6
10544else
10545          if test "$cross_compiling" = yes; then :
10546  lt_cv_dlopen_self=cross
10547else
10548  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10549  lt_status=$lt_dlunknown
10550  cat > conftest.$ac_ext <<EOF
10551#line 10551 "configure"
10552#include "confdefs.h"
10553
10554#if HAVE_DLFCN_H
10555#include <dlfcn.h>
10556#endif
10557
10558#include <stdio.h>
10559
10560#ifdef RTLD_GLOBAL
10561#  define LT_DLGLOBAL           RTLD_GLOBAL
10562#else
10563#  ifdef DL_GLOBAL
10564#    define LT_DLGLOBAL         DL_GLOBAL
10565#  else
10566#    define LT_DLGLOBAL         0
10567#  endif
10568#endif
10569
10570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10571   find out it does not work in some platform. */
10572#ifndef LT_DLLAZY_OR_NOW
10573#  ifdef RTLD_LAZY
10574#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10575#  else
10576#    ifdef DL_LAZY
10577#      define LT_DLLAZY_OR_NOW          DL_LAZY
10578#    else
10579#      ifdef RTLD_NOW
10580#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10581#      else
10582#        ifdef DL_NOW
10583#          define LT_DLLAZY_OR_NOW      DL_NOW
10584#        else
10585#          define LT_DLLAZY_OR_NOW      0
10586#        endif
10587#      endif
10588#    endif
10589#  endif
10590#endif
10591
10592#ifdef __cplusplus
10593extern "C" void exit (int);
10594#endif
10595
10596void fnord() { int i=42;}
10597int main ()
10598{
10599  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10600  int status = $lt_dlunknown;
10601
10602  if (self)
10603    {
10604      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10605      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10606      /* dlclose (self); */
10607    }
10608  else
10609    puts (dlerror ());
10610
10611    exit (status);
10612}
10613EOF
10614  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10615  (eval $ac_link) 2>&5
10616  ac_status=$?
10617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10619    (./conftest; exit; ) >&5 2>/dev/null
10620    lt_status=$?
10621    case x$lt_status in
10622      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10623      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10624      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10625    esac
10626  else :
10627    # compilation failed
10628    lt_cv_dlopen_self=no
10629  fi
10630fi
10631rm -fr conftest*
10632
10633
10634fi
10635echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10636echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10637
10638    if test "x$lt_cv_dlopen_self" = xyes; then
10639      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10640      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10641echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10642if test "${lt_cv_dlopen_self_static+set}" = set; then
10643  echo $ECHO_N "(cached) $ECHO_C" >&6
10644else
10645          if test "$cross_compiling" = yes; then :
10646  lt_cv_dlopen_self_static=cross
10647else
10648  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10649  lt_status=$lt_dlunknown
10650  cat > conftest.$ac_ext <<EOF
10651#line 10651 "configure"
10652#include "confdefs.h"
10653
10654#if HAVE_DLFCN_H
10655#include <dlfcn.h>
10656#endif
10657
10658#include <stdio.h>
10659
10660#ifdef RTLD_GLOBAL
10661#  define LT_DLGLOBAL           RTLD_GLOBAL
10662#else
10663#  ifdef DL_GLOBAL
10664#    define LT_DLGLOBAL         DL_GLOBAL
10665#  else
10666#    define LT_DLGLOBAL         0
10667#  endif
10668#endif
10669
10670/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10671   find out it does not work in some platform. */
10672#ifndef LT_DLLAZY_OR_NOW
10673#  ifdef RTLD_LAZY
10674#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10675#  else
10676#    ifdef DL_LAZY
10677#      define LT_DLLAZY_OR_NOW          DL_LAZY
10678#    else
10679#      ifdef RTLD_NOW
10680#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10681#      else
10682#        ifdef DL_NOW
10683#          define LT_DLLAZY_OR_NOW      DL_NOW
10684#        else
10685#          define LT_DLLAZY_OR_NOW      0
10686#        endif
10687#      endif
10688#    endif
10689#  endif
10690#endif
10691
10692#ifdef __cplusplus
10693extern "C" void exit (int);
10694#endif
10695
10696void fnord() { int i=42;}
10697int main ()
10698{
10699  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10700  int status = $lt_dlunknown;
10701
10702  if (self)
10703    {
10704      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10705      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10706      /* dlclose (self); */
10707    }
10708  else
10709    puts (dlerror ());
10710
10711    exit (status);
10712}
10713EOF
10714  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10715  (eval $ac_link) 2>&5
10716  ac_status=$?
10717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10719    (./conftest; exit; ) >&5 2>/dev/null
10720    lt_status=$?
10721    case x$lt_status in
10722      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10723      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10724      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10725    esac
10726  else :
10727    # compilation failed
10728    lt_cv_dlopen_self_static=no
10729  fi
10730fi
10731rm -fr conftest*
10732
10733
10734fi
10735echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10736echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10737    fi
10738
10739    CPPFLAGS="$save_CPPFLAGS"
10740    LDFLAGS="$save_LDFLAGS"
10741    LIBS="$save_LIBS"
10742    ;;
10743  esac
10744
10745  case $lt_cv_dlopen_self in
10746  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10747  *) enable_dlopen_self=unknown ;;
10748  esac
10749
10750  case $lt_cv_dlopen_self_static in
10751  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10752  *) enable_dlopen_self_static=unknown ;;
10753  esac
10754fi
10755
10756
10757# Report which library types will actually be built
10758echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10759echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10760echo "$as_me:$LINENO: result: $can_build_shared" >&5
10761echo "${ECHO_T}$can_build_shared" >&6
10762
10763echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10764echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10765test "$can_build_shared" = "no" && enable_shared=no
10766
10767# On AIX, shared libraries and static libraries use the same namespace, and
10768# are all built from PIC.
10769case $host_os in
10770aix3*)
10771  test "$enable_shared" = yes && enable_static=no
10772  if test -n "$RANLIB"; then
10773    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10774    postinstall_cmds='$RANLIB $lib'
10775  fi
10776  ;;
10777
10778aix4* | aix5*)
10779  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10780    test "$enable_shared" = yes && enable_static=no
10781  fi
10782    ;;
10783esac
10784echo "$as_me:$LINENO: result: $enable_shared" >&5
10785echo "${ECHO_T}$enable_shared" >&6
10786
10787echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10788echo $ECHO_N "checking wh