source: ThirdParty/Blas/trunk/configure @ 161

Last change on this file since 161 was 161, checked in by andreasw, 15 years ago

included latest changes from coin.m4

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